Results 1 to 1 of 1
Thread: Spring LDAP problem...
- 03-28-2012, 11:56 AM #1
Member
- Join Date
- Mar 2012
- Posts
- 9
- Rep Power
- 0
Spring LDAP problem...
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>
Similar Threads
-
opensso with ldap
By javastuden in forum Advanced JavaReplies: 0Last Post: 12-19-2011, 05:55 AM -
Ldap authentication on Active Directory in Java using Spring Security with Example
By javin.paul in forum Reviews / AdvertisingReplies: 0Last Post: 11-19-2011, 06:25 PM -
do any one has any idea about ldap please help me
By javastuden in forum Advanced JavaReplies: 0Last Post: 10-08-2011, 01:20 PM -
ldap server
By 435.mahesh in forum Java SoftwareReplies: 1Last Post: 05-07-2009, 03:28 PM -
CompositeName with LDAP URL
By Java Tip in forum Java TipReplies: 0Last Post: 01-10-2008, 10:43 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks