Hi, I would suggest another error : Error while performing search [LDAP: error code 18 - failed on search operation: No matching rule defined for attribute uniqueMember[2.5.4.50]]
WDYT ? On 10/6/07, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote: > Hi Markus, > > sorry, it should have been obvious to me, but I was deep into the code > when you posted this mail. > > Such search requests (ie, using substring matching with uniqueMember) > is simply not allowed : there is no SUBSTRING MatchingRule defined for > this attribute type, so any attempt to search it using a substring > search will (and must) mail. > > However, you didn't get a failure, just an empty result. > > My question would be : > - should we generate an error like : > Error while performing search > [LDAP: error code 36 - failed on search operation: Normalizer for > OID 2.5.4.50 does not exist!] > ? > > Or should we just return an empty result ? > > On 10/5/07, Markus Pohle <[EMAIL PROTECTED]> wrote: > > > > Hi List Members, > > > > I installed ApacheDS in Version 1.5.1 on Linux (Centos 4.3) with Sun > > JDK 1.5.0_10 with the rpm pachage available as download from > > directory.apache.org. > > > > After installation I configured my own partion in server.xml and > > created a basic ldap structur with some content. (server.xml and ldif > > file can be found here: > > http://www.webunity.de/apacheds1.5.1/uniqueMemberIssue) > > > > When I connect to the server with Apache Directory Studio and do a > > search by hitting control-h and setting search base as > > "dc=douglasholding", filter as "(uid=*kelly*)" and scope as "Subtree" > > I get as result 2 entrys, one real user and the corresponding alias > > object. > > > > When I now try to do a search with the above conditions except that I > > set the search filter to "(uniqueMember=*kelly*)" the Directory Studio > > gives as result: > > Error while performing search > > [LDAP: error code 33 - failed on search operation: Unexpected exception.] > > [LDAP: error code 33 - failed on search operation: Unexpected exception.] > > > > > > Now I tried that from a bash with ldapsearch. Searching for uid > > delivers the following: > > [EMAIL PROTECTED] ~]# ldapsearch -h apacheds2.douglas-informatik.de -p > > 10389 -x -D "uid=admin,ou=system" -w secret -b "dc=DOUGLASHOLDING" -s > > sub "(uid=*kelly*)" > > Result: 2 > > > > But searching for uniqueMember delivers: > > [EMAIL PROTECTED] ~]# ldapsearch -h apacheds2.douglas-informatik.de -p > > 10389 -x -D "uid=admin,ou=system" -w secret -b "dc=DOUGLASHOLDING" -s > > sub "(uniqueMember=*kelly*)" > > # extended LDIF > > # > > # LDAPv3 > > # base <dc=DOUGLASHOLDING> with scope sub > > # filter: (uniqueMember=*kelly*) > > # requesting: ALL > > # > > > > # search result > > search: 2 > > result: 33 Alias problem > > text: failed on search operation: Unexpected exception. > > > > # numResponses: 1 > > > > > > Does anybody know what that happens? Any tip is appreciated! > > > > TIA > > Markus Pohle > > > > > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com > -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com
