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

erroneous attribute values using ldapsearch...



Hello all,


I'm new with ldap and I have a problem with ldapsearch :

Indeed when requesting my ldap server with the following command line :
ldapsearch -x -b 'o=CHAMBAGRI' '(objectclass=*)'
... in order to display all entries, I have some "false" attributes , ie their content is erroneous.


However when I use gq, pressing the find button filling the filter field with (objectclass=*): the result is correct ! All attributes have correct values...

I'm using openldap-2.0.21-4 and gq-0.4.0-5 and I would like to know what happens...

I have attached 2 files :
ldap_result : which is the result of my command
ldap_shouldbe : the result that should be retruned by the same command and correctly seen with gq.


Note that in the ldap_result file, two ":" are return for erroneous attributes...


Thank you for your precious help

Pierre
version: 2

#
# filter: (objectclass=*)
# requesting: ALL
#

# CHAMBAGRI
dn: o=CHAMBAGRI
description: racine annuaire global
objectClass: organization
o: chambagri

# apca, CHAMBAGRI
dn: ou=apca, o=CHAMBAGRI
ou: apca
description: Sites APCA
objectClass: top
objectClass: organizationalUnit

# cra, CHAMBAGRI
dn: ou=cra, o=CHAMBAGRI
ou: cra
description: Chambres departementales
objectClass: top
objectClass: organizationalUnit

# cda, CHAMBAGRI
dn: ou=cda, o=CHAMBAGRI
ou: cda
description: Chambres regionales
objectClass: top
objectClass: organizationalUnit

# suaci, CHAMBAGRI
dn: ou=suaci, o=CHAMBAGRI
ou: suaci
description: SUACI
objectClass: top
objectClass: organizationalUnit

# 57, cda, CHAMBAGRI
dn: ou=57,ou=cda, o=CHAMBAGRI
ou: 57
objectClass: top
objectClass: organizationalUnit
description: Chambre departementale 57

# paris, apca, CHAMBAGRI
dn: ou=paris,ou=apca, o=CHAMBAGRI
ou: paris
objectClass: top
objectClass: organizationalUnit
description: Site APCA - paris

# TEST2 test2, paris, apca, CHAMBAGRI
dn: cn=TEST2 test2,ou=paris,ou=apca, o=CHAMBAGRI
objectClass: person
objectClass: top
objectClass: salarie
objectClass: personneCA
objectClass: personne
objectClass: inetOrgPerson
telephoneNumber: 01 01 01 01 01
givenName:: dGVzdDIg
sn:: VEVTVDIg

# search result
search: 2
result: 0 Success

# numResponses: 9
# numEntries: 8
version: 2

#
# filter: (objectclass=*)
# requesting: ALL
#

# CHAMBAGRI
dn: o=CHAMBAGRI
description: racine annuaire global
objectClass: organization
o: chambagri

# apca, CHAMBAGRI
dn: ou=apca, o=CHAMBAGRI
ou: apca
description: Sites APCA
objectClass: top
objectClass: organizationalUnit

# cra, CHAMBAGRI
dn: ou=cra, o=CHAMBAGRI
ou: cra
description: Chambres departementales
objectClass: top
objectClass: organizationalUnit

# cda, CHAMBAGRI
dn: ou=cda, o=CHAMBAGRI
ou: cda
description: Chambres regionales
objectClass: top
objectClass: organizationalUnit

# suaci, CHAMBAGRI
dn: ou=suaci, o=CHAMBAGRI
ou: suaci
description: SUACI
objectClass: top
objectClass: organizationalUnit

# 57, cda, CHAMBAGRI
dn: ou=57,ou=cda, o=CHAMBAGRI
ou: 57
objectClass: top
objectClass: organizationalUnit
description: Chambre departementale 57

# paris, apca, CHAMBAGRI
dn: ou=paris,ou=apca, o=CHAMBAGRI
ou: paris
objectClass: top
objectClass: organizationalUnit
description: Site APCA - paris

# TEST2 test2, paris, apca, CHAMBAGRI
dn: cn=TEST2 test2,ou=paris,ou=apca, o=CHAMBAGRI
objectClass: person
objectClass: top
objectClass: salarie
objectClass: personneCA
objectClass: personne
objectClass: inetOrgPerson
telephoneNumber: 01 01 01 01 01
givenName: test2
sn: TEST2

# search result
search: 2
result: 0 Success

# numResponses: 9
# numEntries: 8