I'm preforming a standard search with an ldap template:
and my mapper's doMapFromContext method is being called twice with the same DN but each record hasa different set of attributes. Specifically, the second invocation does not have a 'cn' attribute.
ldapTemplate.search("", "objectClass="group", myAbstractContextMapperImpl)
I tried running ldapsearch on a linux box against the server and i got hte expected output:
# extended LDIF
# base <ou=a,ou=b,o=c> with scope subtree
# filter: cn=9999
# requesting: ALL
# 9999, a, b, c
... bunch of attributes, some with 100's of values if that makes a difference
# search result
result: 0 Success
# numResponses: 2
# numEntries: 1
It seems like spring is doing the wrong thing here but i'm not sure how to go about debugging the issue. Any help is appreciated.