[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
dynlist does not allow me to compare
- To: openldap-software@OpenLDAP.org
- Subject: dynlist does not allow me to compare
- From: "Rosa Lago" <rosa.lago@gmail.com>
- Date: Tue, 14 Mar 2006 18:46:26 +0100
- Content-disposition: inline
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jRgWNuBqdcyKfesQ33qmlOiGht521H3Sv05dbZXk4QuH0jtuib+JVuskcC6hMngD/cyljQy6e8oY9QPDb/4OlHF+towE8xl026yUOVK+g6SFxsFOeH4aKdrf7B4X38VxryKJjR80c8PDF5qgIBI3xpx0PAhQ3xTeS+Lq+p2kRKQ=
Dear all,
I have created a dynlist in my openladp server
first I configured the dynlist overlay like this in the slapd.conf
overlay dynlist
dynlist-attrset groupOfURLs memberURL member
and then I have created several organizational units that holds the
users in the directory server
ou=administrativos,ou=empleados,ou=EmpresaA,ou=empresas,dc=sgp,dc=com
ou=administrativos,ou=empleados,ou=EmpresaB,ou=empresas,dc=sgp,dc=com
and so on
And I have declared a dynlist like this
dn: cn=administrativos,ou=grupos,dc=sisgap,dc=com
objectClass: groupOfURLs
cn: administrativos
memberURL:ldap:///ou=administrativos,ou=empleados,ou=EmpresaA,ou=empresas,dc=sgp,dc=com??sub
memberURL: ldap:///ou=administrativos,ou=empleados,ou=EmpresaB,ou=empresas,dc=sgp,dc=com??sub
The problem is
if I do a search using an ldapsearch like this it shows all the members
# /usr/local/bin/ldapsearch -x -b
"cn=administrativos,ou=grupos,dc=sgp,dc=com" -s sub "(objectclass=*)"
member
it returns all the members without problems
# LDAPv3
# base <cn=administrativos,ou=grupos,dc=sgp,dc=com> with scope subtree
# filter: (objectclass=*)
# requesting: member
#
# administrativos, grupos, sgp.com
dn: cn=administrativos,ou=grupos,dc=sgp,dc=com
member: ou=administrativos,ou=empleados,ou=EmpresaA,ou=empresas,dc=sgp,dc=com
member: uid=rperez,ou=administrativos,ou=empleados,ou=EmpresaA,ou=empresas,dc=sgp,dc=com
member: ou=administrativos,ou=empleados,ou=EmpresaB,ou=empresas,dc=sgp,dc=com
# search result
search: 2
result: 0 Success
# numResponses: 2
# numEntries: 1
but if I do a ldapcompare like this it returns FALSE when the response
must be TRUE due to the search results
#ldapcompare -x -D "cn=Manager,dc=sgp,dc=com" -W
"cn=administrativos,ou=grupos,dc=sgp,dc=com"
member:"uid=rperez,ou=administrativos,ou=empleados,ou=EmpresaA,ou=empresas,dc=sgp,dc=com"
it returns false.
That is a very strange problem and If I do the compare operation from
a java program that I am developing it stays paused (hang like in an
infinity loop)
Do somebody can help me?
Thanks in advance
Rosa