Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PROFTPD] LDAP et PathDenyFilter
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Fri Aug 19, 2005 3:49 am    Post subject: [PROFTPD] LDAP et PathDenyFilter Reply with quote

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
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Fri Aug 19, 2005 8:34 am    Post subject: Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Fri Aug 19, 2005 3:20 pm    Post subject: Reply with quote

merci, tres bonnes explications :P



Phil
_________________
http://tilde.club/~geforce/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
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