View previous topic :: View next topic |
Author |
Message |
geforce l33t
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Fri Aug 19, 2005 3:49 am Post subject: [PROFTPD] LDAP et PathDenyFilter |
|
|
Bonjour,
J'ai 2 questions a propos de ProFTPD:
- Comment Puis-je me connecter a mon serveur LDAP ?
J'ai recupere une config sur internet mais je comprends pas trop comment ca fonctionne
Quote: |
LDAPServer "IP:389"
LDAPUseTLS off
LDAPDoAuth on "ou=people,dc=serveurldap,dn=asdf" "(&(uid=%v)(objectclass=posixAccount))"
LDAPNegativeCache off
|
- J'aimerais simplement savoir si quelqu'un sait si C'est ok comme ca,
Vous comprendrez que je veux bloquer:
- Les fichiers qui commencent par un point ( .bashrc , .icewm , .* )
- les mp3
- Les exe
- Etc.
Quote: |
PathDenyFilter "(\.*$)|(\.mp3$)|(\.exe$)|(\.wma$)|(\.msi$)|(\.iso$)|(\.nrg$)"
|
_________________ http://tilde.club/~geforce/ |
|
Back to top |
|
|
guilc Bodhisattva
Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
Posted: Fri Aug 19, 2005 8:34 am Post subject: |
|
|
Code: | LDAPServer "IP:389"
LDAPUseTLS off |
Bon, jusque la, pas de problème non ?
La, je rajouterais le dn de connexion à ton ldap (utilisateur utilisé pour la connexion et la recherche, typiquement "nss") :
Code: | LDAPDNInfo uid=nss,dc=domain,dc=com password |
Puis la chaine de recherche :
Code: | LDAPDoAuth on "ou=people,dc=domaine,dc=com" "(&(uid=%v)(objectclass=posixAccount))" |
Signifie qu'il faut recherche dans la organisation unit (ou) people ou on mets typiquement les utilisateurs ayant un "posixAccount".
Dans cette ou, on recherche un utilisateur ayant l'objectclass posicAccount ET l'uid fournit par proftpd... _________________ Merci de respecter les règles du forum.
Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing |
|
Back to top |
|
|
geforce l33t
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|