Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LDAP problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Tue Feb 03, 2004 8:24 pm    Post subject: LDAP problem Reply with quote

Hi,

I'm trying to get LDAP to work as a "replacement" for /etc/passwd etc.
I think I did it. However, If I am root and try to reset someones password with
Code:
passwd username
, I need to know the current password:
Code:
Enter login(LDAP) password:


Can anyone solve this? This is my pam-file in use:
Code:
password   required     /lib/security/pam_cracklib.so retry=3
password   sufficient   /lib/security/pam_ldap.so
password   sufficient   /lib/security/pam_unix.so nullok md5 shadow use_first_pass
password   required     /lib/security/pam_deny.so


I also tried adding 'use_first_pass' and 'try_first_pass' and 'use_authtok' to the module, but no use...
Back to top
View user's profile Send private message
polin8
n00b
n00b


Joined: 03 Oct 2002
Posts: 74
Location: Baltimore, MD USA

PostPosted: Tue Feb 03, 2004 9:30 pm    Post subject: Reply with quote

could you use the rootdn user and pass?
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Tue Feb 03, 2004 10:05 pm    Post subject: Reply with quote

polin8 wrote:
could you use the rootdn user and pass?

if I try that I get:
Code:
LDAP Password incorrect: try again

if I give the old password from the user, it works...
However, as root I want to RESET a password, not change it
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Wed Feb 04, 2004 11:02 am    Post subject: Reply with quote

ok, for those interested: /etc/ldap.conf:
Code:

# The distinguished name to bind to the server with
# if the effective user ID is root. Password is
# stored in /etc/ldap.secret (mode 600)
#rootbinddn cn=manager,dc=padl,dc=com
Back to top
View user's profile Send private message
flowctrl
n00b
n00b


Joined: 18 May 2003
Posts: 53
Location: Banff, Canada

PostPosted: Thu Feb 05, 2004 7:03 pm    Post subject: Reply with quote

nielchiano wrote:
ok, for those interested: /etc/ldap.conf:
Code:

# The distinguished name to bind to the server with
# if the effective user ID is root. Password is
# stored in /etc/ldap.secret (mode 600)
#rootbinddn cn=manager,dc=padl,dc=com


Does this mean that uncommenting the rootbinddn line fixed it?

Another way would be to use:
Code:

ldappasswd -S -D "uid=${USER},ou=people,dc=yourdomain,dc=ca" -x -W


.
Back to top
View user's profile Send private message
nielchiano
Veteran
Veteran


Joined: 11 Nov 2003
Posts: 1287
Location: 50N 3E

PostPosted: Thu Feb 05, 2004 9:33 pm    Post subject: Reply with quote

flowctrl wrote:
nielchiano wrote:
ok, for those interested: /etc/ldap.conf:
Code:

# The distinguished name to bind to the server with
# if the effective user ID is root. Password is
# stored in /etc/ldap.secret (mode 600)
#rootbinddn cn=manager,dc=padl,dc=com


Does this mean that uncommenting the rootbinddn line fixed it?

yes it does (and putting the passwd in /etc/ldap.secret)

flowctrl wrote:

Another way would be to use:
Code:

ldappasswd -S -D "uid=${USER},ou=people,dc=yourdomain,dc=ca" -x -W

thx!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum