I have the following code to do a subtree scope search:
This is my TPINAttributesMapperCode:tpinList = ldapTemplate.search("ou=identities","TAPexternalKey="+externalKey,2,new TPINAttributesMapper());
the result in my log is:Code:private static class TPINAttributesMapper implements AttributesMapper { public Object mapFromAttributes(Attributes attrs) throws NamingException { Integer tpin; tpin = (Integer)attrs.get("uid").get(); return tpin; }
but apparently I need it to end up as:SRCH base="ou=identities,o=tap" scope=2 filter="(TAPexternalKey=698574865)" attrs=ALL
I don't really understand this. But that's what I get when I do a search with a gui tool.SRCH base="ou=identities,o=tap" scope=2 filter="(TAPexternalKey=698574865)" attrs="objectClass"
I'd appreciate an explaination (I'm very new to LDAP). And how do I change my call to search?


Reply With Quote