[Date Prev][Date Next] [Chronological] [Thread] [Top]

OpenLDAP crashing on search...



Hi everyone!

I have a problem with a search string crashing my OpenLDAP server, the reason 
I am doing the search is to try and locate any entries where the qmailUID is 
set to 500 (they should be set to 503) so I have a list that I can go in and 
change later.

The search that is being performed is this one :

ldapsearch -h localhost -D "cn=administrator,o=oldhammbc,c=uk" -W -L -b 
"o=oldhammbc,c=uk" -x "qmailUID=500" mail >/tmp/gfuid500

Here is a log of what happens at the command line:

saturn:~ # ldapsearch -h localhost -D "cn=administrator,o=oldhammbc,c=uk" -W 
-L -b "o=oldhammbc,c=uk" -x "qmailUID=500" mail >/tmp/gfuid500
Enter LDAP Password:
ldap_result: Can't contact LDAP server

As you can see, the server crashes straight away.

I put the loglevel up to -1 to try and work out whats happening, but I can't 
see anything, here is the last few lines of my log file :

Jul 25 09:42:49 saturn slapd[24196]: <= root access granted
Jul 25 09:42:49 saturn slapd[24196]: <= test_filter 5
Jul 25 09:42:49 saturn slapd[24196]: ldbm_search: candidate 6 does not match 
filter
Jul 25 09:42:49 saturn slapd[24196]: entry_rdwr_runlock: ID: 6
Jul 25 09:42:49 saturn slapd[24196]: ====> cache_return_entry_r( 6 ): created 
(0)
Jul 25 09:42:49 saturn slapd[24196]: => id2entry_r( 7 )
Jul 25 09:42:49 saturn slapd[24196]: => ldbm_cache_open( 
"/var/lib/ldap/id2entry.dbb", 7, 600 )
Jul 25 09:42:49 saturn slapd[24196]: <= ldbm_cache_open (cache 1)
Jul 25 09:42:49 saturn slapd[24196]: => str2entry
Jul 25 09:42:49 saturn slapd[24196]: <= str2entry(ou=gallery oldham, 
o=oldhammbc, c=uk) -> -1 (0x80e10f0)
Jul 25 09:42:49 saturn slapd[24196]: entry_rdwr_rlock: ID: 7
Jul 25 09:42:49 saturn slapd[24196]: <= id2entry_r( 7 ) 0x80e10f0 (disk)
Jul 25 09:42:49 saturn slapd[24196]: => test_filter
Jul 25 09:42:49 saturn slapd[24196]:     EQUALITY
Jul 25 09:42:49 saturn slapd[24196]: => access_allowed: search access to "ou=gallery oldham, o=oldhammbc, c=uk" "qmailUID" requested
Jul 25 09:42:49 saturn slapd[24196]: <= root access granted
Jul 25 09:42:49 saturn slapd[24196]: <= test_filter 5
Jul 25 09:42:49 saturn slapd[24196]: ldbm_search: candidate 7 does not match 
filter
Jul 25 09:42:49 saturn slapd[24196]: entry_rdwr_runlock: ID: 7
Jul 25 09:42:49 saturn slapd[24196]: ====> cache_return_entry_r( 7 ): created 
(0)
Jul 25 09:42:49 saturn slapd[24196]: => id2entry_r( 8 )
Jul 25 09:42:49 saturn slapd[24196]: => ldbm_cache_open( 
"/var/lib/ldap/id2entry.dbb", 7, 600 )
Jul 25 09:42:49 saturn slapd[24196]: <= ldbm_cache_open (cache 1)
Jul 25 09:42:49 saturn slapd[24196]: => str2entry
Jul 25 09:42:49 saturn slapd[24196]: <= str2entry(ou=Directory Administrators, 
o=oldhammbc,c=uk) -> -1 (0x80e1270)
Jul 25 09:42:49 saturn slapd[24196]: entry_rdwr_rlock: ID: 8
Jul 25 09:42:49 saturn slapd[24196]: <= id2entry_r( 8 ) 0x80e1270 (disk)
Jul 25 09:42:49 saturn slapd[24196]: => test_filter
Jul 25 09:42:49 saturn slapd[24196]:     EQUALITY
Jul 25 09:42:49 saturn slapd[24196]: => access_allowed: search access to "ou=Directory Administrators, o=oldhammbc,c=uk" "qmailUID" requested
Jul 25 09:42:49 saturn slapd[24196]: <= root access granted

I presume that its at this point the server crashes totally, and I have to start it again :(

I can't work out what is up with it at all. I didn't actually need the OU Directory Administrators, so I deleted that and the few unused users in there 
thinking that perhaps there was a corrupt entry or something, but the search 
still crashes the server.

Can anyone tell me whats up?

I am using the default OpenLDAP of SuSE Linux 7.2 Professional, with the 
latest update run so that its pretty current, here is a list of the ldap 
packages installed :

openldap2-client-2.0.11-39
openldap2-devel-2.0.11-39
openldap2-2.0.11-39

Thanks go out in advance to anyone who is able to shed any light....

-- 
Thanks

Andrew McCall
Internet System Administrator
I.C.T. Division
Oldham MBC
Civic Centre
West Street
Oldham
OL1 1UU

Tel : 0161 911 3990
Fax : 0161 911 3998
Email : it.andrew.mccall@oldham.gov.uk


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.oldham.gov.uk
**********************************************************************