D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Authenticating user logons with LDAP on Ubuntu 8.04

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rob Beard wrote:
>
> Using the second guide I got as far as running 'getent passwd' from a 
> terminal when logged on as a local user and it does list the passwd file 
> (or at least something that looks like the passwd file) on the server.  
> I can also get information about the users with ldapsearch.

> The problem is, when I try and login at the Ubuntu login screen (or at 
> the login prompt on the text console) it doesn't recognise the user, or 
> at least it comes up with an incorrect password.

What do you have in your PAM configuration. Specifically
/etc/pam.d/common-account and /etc/pam.d/common-auth

Unless /etc/pam.d/login has a reference to pam_ldap.so /bin/login isn't
even going to bother to look at any LDAP server.
> 
> I just wondered if anyone had any details of how to set this up.  I'm 
> not sure if it helps but the userPassword is set to crypt (with a load 
> of extra characters next to it, which I presume is the password encrypted).
> 
> Below are details of the /etc/ldap.conf and /etc/ldap/ldap.conf:

If 'getent passwd' is returning something which looks sensible then you
probably do have /etc/ldap.conf and /etc/nsswitch.conf more or less correct.

> I did also try authenticating against a Samba 3 domain (both manually 
> configuring PAM and with Likewise-Open) but that doesn't seem to work 
> either.

It's probably even more important to know what is in your PAM configuration.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI/jwUsoRLMhsZpFcRAnUeAJ0afWXyEdSX+Vr4q7hNNUa3uSvlIACdHuC3
HLKaECeaSnA+MumU5/P4rUA=
=Hdv+
-----END PGP SIGNATURE-----


-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html