Hi...is there anybody to help...
Iam using Spring LDAP to communicate with AD...in a search query Iam getting null as well as result...i want only the result...not the null value...how to achive this...My code snippet follows...

public List getQList(Integer qid){

String questionSearchKey="(&(objectClass=group)(CN=*.q"+q id+".Responder))";
System.out.println(questionSearchKey);
return ldapTemplate.search("",questionSearchKey,new ContextMapper() {

public Object mapFromContext(Object rctx) {
DirContextAdapter resAdapter=(DirContextAdapter) rctx;

return resAdapter.getStringAttributes("member");

}
});


}

output :
null
<actual result>