LDAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesLDAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 15th, 2003, 08:46 AM
johan's Avatar
johan johan is offline
Advisor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Stockholm, Sweden
Posts: 446 johan User rank is Private First Class (20 - 50 Reputation Level)johan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 h 39 m 40 sec
Reputation Power: 14
Send a message via ICQ to johan
Linux PAM OpenLDAP problem[solved]

I am trying to get my Linux to authenticate against OpenLDAP....

I've installed OpenLDAP pam_ldap, nss_ldap etc.
My OpenLDAP-database is pouplated... and there are no
problems running ldapadd,ldapsearch etc...

system-auth is configured like this:
PHP Code:
 auth        required      /lib/security/pam_env.so
auth        sufficient    
/lib/security/pam_unix.so likeauth nullok
auth        sufficient    
/lib/security/pam_ldap.so use_first_pass
auth        required      
/lib/security/pam_deny.so

account     required      
/lib/security/pam_unix.so
account     sufficient    
/lib/security/pam_ldap.so

password    required      
/lib/security/pam_cracklib.so retry=3 type=
password    sufficient    /lib/security/pam_unix.so nullok use_authtok md5 shadow
password    sufficient    
/lib/security/pam_ldap.so use_authtok
password    required      
/lib/security/pam_deny.so

session     required      
/lib/security/pam_mkhomedir.so skel=/etc/skelumask=0022
session     required      
/lib/security/pam_limits.so
session     required      
/lib/security/pam_unix.so
session     optional      
/lib/security/pam_ldap.so 


nsswitch.conf looks like this:
PHP Code:
 passwd:     files ldap
shadow
:     files ldap
group
:      files ldap 



I've configured the LDAP -client /etc/ldap.conf
And when running
getent passwd
...I see the user (test) from my LDAP-database att the end of the list...

But the problem is when I'm trying to log in as this user (test)
PHP Code:
# su - test
suuser test does not exist 


It says it doesn't exist... even though getent showed it...

Any clues..?!
__________________
- [ If I cant fix it, ask MacGyver... ] -

Last edited by johan : August 18th, 2003 at 05:49 AM.

Reply With Quote
  #2  
Old August 18th, 2003, 05:49 AM
johan's Avatar
johan johan is offline
Advisor
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: Stockholm, Sweden
Posts: 446 johan User rank is Private First Class (20 - 50 Reputation Level)johan User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 h 39 m 40 sec
Reputation Power: 14
Send a message via ICQ to johan
This is not an issue anymore... I solved it..

The problem was an earlier added user which conflicted with
the uid. 1000...

Well, anyway..... It works now..

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesLDAP Programming > Linux PAM OpenLDAP problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap