[Proftpd-user] mod_auth_web
Brad Knorr <[email protected]> Wed, 3 Dec 2025 10:12:09 -0800
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <[email protected]> |
--===============8024122390730145124==
Content-Type: multipart/alternative; boundary="000000000000ac242a06451026e8"
--000000000000ac242a06451026e8
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Trying to understand,
So the basic functionality of this module is to receive two parameters
Username and password. If the endpoint returns a 200, we are good, if it
returns
403 we are not good. Pretty simple.
Where I am struggling, is about how to direct proftp to allow the permitted
user to only access their files.
The files are in a dir structure as follows:
/userdata/jimmy
/bob
Jimmy and bobs files have a uid and gid of 1000,1001 respectively.
How does proftp know which dir to authorized the user to?
If this mod doesn=E2=80=99t support this, I have a mongo db auth db. If I w=
ere to
write
A mod that will auth to mongo, can I send proftpd, this relevant
information?
Thanks
Brad
--000000000000ac242a06451026e8
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3Dus-ascii"><meta name=3D"Generator" content=3D"Microsoft Word 15 (filtere=
d medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=3D"EN-CA" link=3D"#467886" vlink=3D"#96607D" s=
tyle=3D"word-wrap:break-word"><div class=3D"WordSection1"><p class=3D"MsoNo=
rmal"><span lang=3D"EN-US">Trying to understand,</span></p><p class=3D"MsoN=
ormal"><span lang=3D"EN-US">=C2=A0</span></p><p class=3D"MsoNormal"><span l=
ang=3D"EN-US">So the basic functionality of this module is to receive two p=
arameters</span></p><p class=3D"MsoNormal"><span lang=3D"EN-US">Username an=
d password.=C2=A0 If the endpoint returns a 200, we are good, if it returns=
</span></p><p class=3D"MsoNormal"><span lang=3D"EN-US">403 we are not good.=
=C2=A0 Pretty simple.</span></p><p class=3D"MsoNormal"><span lang=3D"EN-US"=
>=C2=A0</span></p><p class=3D"MsoNormal"><span lang=3D"EN-US">Where I am st=
ruggling, is about how to direct proftp to allow the permitted user to only=
access their files.</span></p><p class=3D"MsoNormal"><span lang=3D"EN-US">=
The files are in a dir structure as follows:</span></p><p class=3D"MsoNorma=
l"><span lang=3D"EN-US">=C2=A0</span></p><p class=3D"MsoNormal"><span lang=
=3D"EN-US">/userdata/jimmy</span></p><p class=3D"MsoNormal"><span lang=3D"E=
N-US">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /bob</span></p><p class=3D"Ms=
oNormal"><span lang=3D"EN-US">=C2=A0</span></p><p class=3D"MsoNormal"><span=
lang=3D"EN-US">Jimmy and bobs files have a uid and gid of 1000,1001 respec=
tively.</span></p><p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span>=
</p><p class=3D"MsoNormal"><span lang=3D"EN-US">How does proftp know which =
dir to authorized the user to?</span></p><p class=3D"MsoNormal"><span lang=
=3D"EN-US">=C2=A0</span></p><p class=3D"MsoNormal"><span lang=3D"EN-US">If =
this mod doesn=E2=80=99t support this, I have a mongo db auth db. If I were=
to write</span></p><p class=3D"MsoNormal"><span lang=3D"EN-US">A mod that =
will auth to mongo, can I send proftpd, this relevant information?</span></=
p><p class=3D"MsoNormal"><span lang=3D"EN-US">=C2=A0</span></p><p class=3D"=
MsoNormal"><span lang=3D"EN-US">Thanks</span></p><p class=3D"MsoNormal"><sp=
an lang=3D"EN-US">Brad</span></p></div></body></html>
--000000000000ac242a06451026e8--
--===============8024122390730145124==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============8024122390730145124==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ProFTPD Users List <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
--===============8024122390730145124==--