[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: search not commutative on |
On woensdag 20 oktober 2004 20:27, you wrote:
> That is not OpenLDAP's ldapsearch. (OpenLDAP displays 'attribute: ...',
> not 'attribute=...'. I suggest you use the OpenLDAP version of
> ldapsearch, so we at least know if the problem is in your ldapsearch or
> in OpenLDAP.
you're right, there were 2 ldapsearchs on the system, both of a different
size. so i used the other one now ( the correct one i hope ).
>
> If it is an OpenLDAP problem,
>
> One possibility is that the server simply has a corrupted index which
> needs to be rebuilt.
i did a slapindex already
>
> Otherwise,
>
> you could simplify the search a bit and see if that changes anything
> (would still be a bug, but would narrow it down a bit):
>
> ldapsearch -v -x -b uid=kdeblonde,ou=dekempen,ou=people,dc=bla,dc=bla \
> -s base '(|(gidNumber=15000)(gidNumber=15500))' uid gidNumber
>
> Mention the OpenLDAP version number of both ldapsearch and slapd.
> Also which database slapd is configured to use.
rpm -qf /usr/bin/ldapsearch
openldap2-client-2.1.4-26
rpm -q openldap2
openldap2-2.1.4-26
>
> Can you turn on at least 'statslog' logging (level 256) in the server
> and see what the server does? Actually on Unix boxes, the server logs
> loglevel 256 (statslog) to syslog (typically /var/adm/<something - by
> default 'messages'>). This loglevel shows which operations are done and
> the results.
>
> (BTW, if you are using RedHat's OpenLDAP installation, that may be the
> problem. Apparently they have hacked it to do some strange things, and
> it is both buggy and outdated.)
it's a suse 8.1 prof distri
/usr/bin/ldapsearch -d 256 -v -x -b 'dc=deterp,dc=be' '(&(|(gidNumber=15000)
(gidNumber=15500))(uid=kdeblonde))' uid
ldap_initialize( <DEFAULT> )
ber_flush: 14 bytes to sd 3
request 1 done
filter: (&(|(gidNumber=15000)(gidNumber=15500))(uid=kdeblonde))
requesting: uid
# extended LDIF
#
# LDAPv3
# filter: (&(|(gidNumber=15000)(gidNumber=15500))(uid=kdeblonde))
# requesting: uid
#
ber_flush: 108 bytes to sd 3
# kdeblonde, dekempen, people, deterp.be
dn: uid=kdeblonde,ou=dekempen,ou=people,dc=deterp,dc=be
uid: kdeblonde
request 2 done
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
ber_flush: 7 bytes to sd 3
# /usr/bin/ldapsearch -d 256 -v -x -b 'dc=deterp,dc=be' '(&(|(gidNumber=15500)
(gidNumber=15000))(uid=kdeblonde))' uid
ldap_initialize( <DEFAULT> )
ber_flush: 14 bytes to sd 3
request 1 done
filter: (&(|(gidNumber=15500)(gidNumber=15000))(uid=kdeblonde))
requesting: uid
# extended LDIF
#
# LDAPv3
# filter: (&(|(gidNumber=15500)(gidNumber=15000))(uid=kdeblonde))
# requesting: uid
#
ber_flush: 108 bytes to sd 3
request 2 done
# search result
search: 2
result: 0 Success
# numResponses: 1
ber_flush: 7 bytes to sd 3