[Samba] Samba+Ldap problems

dogbert at infinito.it dogbert at infinito.it
Wed Jun 3 10:00:58 GMT 2009

Thanks Oliver,
I will check all the files in /etc/pam.d

My problems are with samba, but after a little troubleshooting I think that
some of them are originated at PAM/Ldap level, so I'm checking this first.
I've followed the guide taken from Ubuntu site:

I think that if I can succeed in authenticating via shell or ssh I can then
rule-out pam issues and work on samba configuration.


--------- Original Message --------
Da: Olivier Nicole <on at cs.ait.ac.th>
        Cc: samba at lists.samba.org
Oggetto: Re: [Samba] Samba+Ldap problems
Data: 03/06/09 12:42

> Hi,
> &gt; I'm trying to use it to
> &gt; login via ssh. This user cannot authenticate.
> &gt; Here is the result from auth.log and some configurations files
> This is not a samba problem but a SSH/Ubuntu/Ldap problem :)
> You need both packages pam_ldap AND nss_ldap.
> You need to configure both (configuration is very similar, but there
> may be some differences).
> To give a brief explanation:
> pam_ldap is used by ssh (you need to configure /etc/pam.d/ssh !) to
> accept the username and password
> nss_ldap is used by thing slike getent, or to show your correct
> username and group when you do a &quot;ls -l&quot;
> Now it much depends how your LDAP tree is organized, so I cannot give
> much more advise; what is the objectClass you use for your users? I am
> surprised to see that user and password belongs to different place in
> the LDAP tree. I am also surprised that the /etc/pam.d example you
> give do not contain a single reference to ldap...
> There are good how-to floating on Google, that work you step by step.
> Best regards,
> Olivier

More information about the samba mailing list