[Samba] use of pam_filter with LDAP

Norbert Gomes norbert.gomes at orleans-tours.iufm.fr
Wed Nov 7 08:51:45 GMT 2007


Bjoern Tore Sund a écrit :
> Norbert Gomes wrote:
>
>> OK thank you for your answser. I am a bit confused with nss, pam and 
>> the Samba authentication mechanism...
>>
>> Actually I would like to add filters for authentication of users with 
>> Samba and LDAP :
>>
>> With our production servers I use the 'ldap filter = (MY_FILTERs)' 
>> option in smb.conf (samba-3.0.11) but this option has been removed in 
>> the recent releases. Now I want to upgrade samba and I would like to 
>> use the same filters with the samba-3.0.26a.
>>
>> I read that it was in the ldap.conf file but I don't know how to use 
>> it...
>>
>> If anyone can give me a clue...
>
> The following lines from my ldap.conf might be helpful:
> nss_base_passwd ou=People,dc=Mumle,dc=no??uidNumber>=100
> nss_base_shadow ou=People,dc=Mumble,dc=no??uidNumber>=100
> nss_base_group  ou=group,dc=Mumble,dc=no??gidNumber>=100
>
> 'man nss_ldap' should help you get head and tail on what these lines 
> do and how you can adapt them to your own use.
>
> -BT

I tried this and now I can apply the filters.

Thank you



-- 
Norbert GOMES
IUFM Orléans-Tours
SCIRC
tél : 02 38 79 84 15



More information about the samba mailing list