LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-25-2008, 02:36 AM   #1
t0bias
Member
 
Registered: Aug 2005
Distribution: Fedora 13, RHEL 5.3, Ubuntu 10.04, Debian Lenny
Posts: 128

Rep: Reputation: 16
LDAP Authentication not working


Hi,

I have an OpenLDAP-Server running and now am trying to authenticate clients against it. The clients are running Debian Lenny.
Executing "id USERNAME" or "getent passwd" works, but I just cannot log in, even though "su - USERNAME" works as well.
These are the config files I think are important for the authentication:

/etc/pam.d/common-account
Code:
account  sufficient pam_unix.so
account  sufficient pam_ldap.so
account  required   pam_deny.so
/etc/pam.d/common-auth
Code:
auth     sufficient pam_ldap.so
auth     sufficient pam_unix.so shadow use_first_pass
auth     required   pam_deny.so
/etc/pam.d/common-session
Code:
session  sufficient pam_ldap.so
session  required   pam_unix.so
/etc/pam.d/common-password
Code:
password sufficient pam_ldap.so     type=network use_authtok first_pass
password sufficient pam_unix.so     type=machine use_authtok md5
password required   pam_deny.so
/etc/pam_ldap.conf
Code:
host ldap.samba.local
base dc=samba,dc=local
ldap_version 3
binddn cn=Replicator,ou=Users,dc=samba,dc=local
pam_filter &(objectclass=posixAccount)(!(uidNumber=0))
pam_password exop
/etc/nsswitch.conf
Code:
passwd: compat ldap
group:  compat ldap
shadow: compat ldap
/etc/libnss-ldap.conf
Code:
host 10.0.10.10
uri ldap://ldap.samba.local
base dc=samba,dc=local
Thanks,

Toby
 
Old 09-25-2008, 09:02 AM   #2
t0bias
Member
 
Registered: Aug 2005
Distribution: Fedora 13, RHEL 5.3, Ubuntu 10.04, Debian Lenny
Posts: 128

Original Poster
Rep: Reputation: 16
I found the problem myself: the samba-password and the unix-password were not the same. But how can I make them be the same and become changed at the same time?

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help in LDAP authentication chickenjoy Linux - Server 3 06-14-2007 05:28 AM
ldap authentication goestin Linux - Networking 2 12-27-2005 11:27 AM
LDAP Authentication and su da_kidd_er Linux - Networking 1 12-27-2005 11:24 AM
Ldap Authentication joeyBig Programming 1 08-25-2004 10:00 AM
ldap authentication box_l Mandriva 0 03-22-2004 03:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration