Re: (bug fix) LDAPClient.java

[email protected]
Newsgroups gmane.comp.java.enhydra.shark
Message-ID <[email protected]>
Hi, 
it is OK that the conditions (you called them state) are the same. They should not be put under comment. They should be the same, because the same action is performed in the same way but for the different group name. To be more precise, the method is called recursively for each subgroup of the group.
If the options are not set this way, the previously set options will not give the correct results. The previously set options are:
ldapOptions.setSearchBase(member_dn);
constraints.setSearchScope(0));
This scope 0 means that only the object with dn "member_dn" will be searched.
If there is structure, for example:

dn: cn=designers, ou=GroupRelations, o=SunsetComputers, c=yu
objectClass: top
objectClass: groupOfNames
cn: designers
member: ou=codeDesigners, ou=Groups, o=SunsetComputers, c=yu
member: ou=developers, ou=Groups, o=SunsetComputers, c=yu

dn: cn=codeDesigners, ou=UserRelations, o=SunsetComputers, c=yu
objectClass: top
objectClass: groupOfNames
cn: codeDesigners
member: userid=pete, ou=Users, o=SunsetComputers, c=yu
member: userid=mark, ou=Users, o=SunsetComputers, c=yu

dn: cn=developers, ou=UserRelations, o=SunsetComputers, c=yu
objectClass: top
objectClass: groupOfNames
cn: developers
member: userid=anna, ou=Users, o=SunsetComputers, c=yu

If the method is called like this:  getAllUserEntries("designers");
with these options put under comment the method would not return any result, which is wrong because there are 3 results: pete, mark and anna.

Best regards,
Tanja
message-footer.txt (text/plain, 271 B)
--
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.