I'm preforming a standard search with an ldap template:

Code:
ldapTemplate.search("", "objectClass="group", myAbstractContextMapperImpl)
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.

I tried running ldapsearch on a linux box against the server and i got hte expected output:

# extended LDIF
#
# LDAPv3
# base <ou=a,ou=b,o=c> with scope subtree
# filter: cn=9999
# requesting: ALL
#

# 9999, a, b, c
dn: cn=9999,ou=a,ou=b,o=c
... bunch of attributes, some with 100's of values if that makes a difference
cn: 9999

# search result
search: 2
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.