Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Upgrade openldap data vanishes...
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
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Thu Jul 10, 2003 7:43 pm    Post subject: Upgrade openldap data vanishes... Reply with quote

so I upgrade openldap 2.0.24 to 2.0.27-r4 and the next time I try a ldapsearch I get nothing back
I checked the /etc/ldap.conf file and find that it had been changed (fix that, still get nothing back)
then notice that slapd didn't start listening on the ldap:// ldaps:// so I fix that.
ldapsearch....
nothing

Oddly enough if I do a slapcat I can see all my data is still in there (phew) but the problem is that it's not showing any of it.

Any idea as to where I should look?
EDIT:
command I run is this
Code:
ldapsearch -x -b 'dc=internal,dc=earthguide,dc=ucsd,dc=edu' -s base '(objectclass=*)' namingContexts

I get back
Code:
#
# filter: (objectclass=*)
# requesting: namingContexts
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

Petyr Rahl
Back to top
View user's profile Send private message
Phlaegel
Apprentice
Apprentice


Joined: 22 May 2003
Posts: 156

PostPosted: Thu Jul 10, 2003 11:42 pm    Post subject: Reply with quote

I had (maybe) the same problem yesterday. It turned out to be the permissions on my db directory (the directory setting in slapd.conf). For me, the directory is /var/lib/openldap-ldbm, and it and the .dbb files in it were readable only by root, while the ldap server runs as user 'ldap'. I chmodded the directory 755 and the files 644 and all was well. I'm not sure why this was suddenly a problem though. Did the user slapd runs as change with this update? I wasn't really paying that much attention... :)
Back to top
View user's profile Send private message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Fri Jul 11, 2003 7:43 am    Post subject: Reply with quote

ya know that's probably it...
I was digging around in the startup script and I noticed that. I eventually just gave up on the darn thing and downgraded back to 2.0.25 and had to play with my ldap.conf file a few times to tweak my base dn.
Anyhow I got it working again ^^

Maybe tomorrow when I get back in there I'll upgrade it again and change the permissions on it

Thanks for the idea

Petyr
Back to top
View user's profile Send private message
NrG
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2002
Posts: 83

PostPosted: Fri Jul 11, 2003 9:22 am    Post subject: Reply with quote

I also had a lot of problems with openldap ebuild. First of all the 2.0.27 ebuild had a bug and didnt do any logging and the 2.0.27-r4 has a new startup script so it runs as ldap and not as root anymore. Also the pid file location in the startupscript and in the slapd.conf is diferent which leads in to not being able to shutdown slapd with the ini script (not a real bug but could be fix easely).

You could remove -u ldap -g ldap from the startup script which would make slapd run as root agian or change the permissions of your openldap files (mine also complained about not beeing able to read slapd.conf).

NrG
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