Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Recovering/resetting LDAP password? [solved]
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
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Tue Jan 03, 2006 11:45 am    Post subject: Recovering/resetting LDAP password? [solved] Reply with quote

First of all, why is OpenLDAP so bloody complicated to set up?

Oh well. As far as I can tell, I have set up everything far enough so I could do a little fucking around, but when I try using ldapadd, it borks. Behold:
Code:
# ldapadd -x -v -D cn=admin,dc=foo-bar,dc=com -W < foo.ldif
ldap_initialize( <DEFAULT> )
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

I am really sure that the password I am typing is correct, so either I fucked up while setting it up (twice? in the same way?), or something else is wrong. Personally, I think the following bit should set the admin I am trying to use above up so I can use the command above
Code:
# The admin dn has full write access, everyone else
# can read everything.
access to *
        by dn="cn=admin,dc=kunze-folien,dc=de" write
        by * read

Soo, did I miss anything else? I'm pretty new at this LDAP thing and I hate it already...

Alternatively, do any of you know a nice and easy config/admin tool (text/curses based, please) for OpenLDAP?
Thanks.

EDIT: I have a good admin tool now. Now I just need to reset the damn pw.
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word


Last edited by kamagurka on Tue Jan 03, 2006 3:53 pm; edited 2 times in total
Back to top
View user's profile Send private message
Po0ky
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2005
Posts: 142
Location: Belgium

PostPosted: Tue Jan 03, 2006 12:14 pm    Post subject: Reply with quote

phpldapadmin
or if you want some samba combination use lam (ldap account manager)
_________________
-- I'll eat it--
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Tue Jan 03, 2006 12:33 pm    Post subject: Reply with quote

phpldapadmin (try saying that six times fast) looks good, but it really seems I got my admin pw wrong somehow. Anyway I can fix that?
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
Back to top
View user's profile Send private message
Po0ky
Tux's lil' helper
Tux's lil' helper


Joined: 21 Apr 2005
Posts: 142
Location: Belgium

PostPosted: Tue Jan 03, 2006 12:53 pm    Post subject: Reply with quote

Put your root admin password in your slapd.conf (or do it again if you have done it allready)
Code:
# slappasswd -h {MD5}
New password: <yourpass>
Re-enter new password: <yourpass>
{MD5}CY9rzUYh03PK3k6DJie09g==

Put this string in your config file (INCLUDING the {MD5})
Code:
rootpw "{MD5}CY9rzUYh03PK3k6DJie09g=="

(for the example i used "test" as password)

You could also use slapadd in stead of ldapadd, but then shut down the ldap database first
_________________
-- I'll eat it--
Back to top
View user's profile Send private message
kamagurka
Veteran
Veteran


Joined: 25 Jan 2004
Posts: 1026
Location: /germany/munich

PostPosted: Tue Jan 03, 2006 3:53 pm    Post subject: Reply with quote

Awesome, thanks!
_________________
If you loved me, you'd all kill yourselves today.
--Spider Jerusalem, the Word
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