jndi lookup for Active Directory 2003 server
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, July 20, 2007 10:21 AM

Hi All, I am facing a problem while looking up / fetching the information from the Active Directory 2003 Server. Let me expalin the whole scenario once. I am able to fetch the list of the groups from the Windows 2003 Active directory server. The groups are in english, arabic and Chinese. The problem is when we are selecting the arabic group from our interface which is displaying the group list fetched from ADS and trying to fetch the members of that arabic group we are getting an exception. The parameters which we are passing to the ADS server are : object name : name="ldap://192.168.5.237:389/CN= ,CN=Users,DC=sus,DC=in"; search filter: i have tried the following otion for that -   More>>
			
Hi All,
I am facing a problem while looking up / fetching the information from the Active Directory 2003 Server.
Let me expalin the whole scenario once.
I am able to fetch the list of the groups from the Windows 2003 Active directory server. The groups are in english, arabic and Chinese. The problem is when we are selecting the arabic group from our interface which is displaying the group list fetched from ADS and trying to fetch the members of that arabic group we are getting an exception.
The parameters which we are passing to the ADS server are :

object name :
name="ldap://192.168.5.237:389/CN= ,CN=Users,DC=sus,DC=in";
search filter:
i have tried the following otion for that --

filter="objectClass=*"
filter="objectClass=group;lang-ar-ae"
filter="objectClass=group;lang-ar"
filter="objectClass=group";

none of the above is working

SearchControls srchCtrls = new SearchControls();
srchCtrls.setReturningObjFlag (true);
srchCtrls.setSearchScope(SearchControls.SUBTREE_SCOPE);
String[] attList = {"members"};
srchCtrls.setReturningAttributes(attList);

now what I am doing is I am invoking the search method of DirContext as :

DirContext.search(name,filter,srchCtrls);

this method call is throwing the above mentioned exception as

javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DS
ID-031001CD, problem 2001 (NO_OBJECT), data 0, best match of:
'CN=Users,DC=boston,DC=us'
]; remaining name 'CN=DB-1,CN=Users,DC=boston,DC=us'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2942)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2863)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2669)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1757)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1680)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_search(ComponentDirCon
text.java:368)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.search(PartialCom
positeDirContext.java:328)
at com.sun.jndi.toolkit.url.GenericURLDirContext.search(GenericURLDirCon
text.java:340)
at com.sun.jndi.url.ldap.ldapURLContext.search(ldapURLContext.java:494)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.jav
a:238)
at ProcessRequest.searchGroup(ProcessRequest.java:1331)
at ProcessRequest.getGroupMembers(ProcessRequest.java:791)
at ProcessRequest.executeXml(ProcessRequest.java:126)
at ClientSocket.run(ClientSocket.java:103)

Is there anyone who have faced similar problem earlier or know the answer to the above mentioned problem ??

Regards,
Vibhor
   <<Less

Re: jndi lookup for Active Directory 2003 server

Posted By:   Satish_Chandra  
Posted On:   Thursday, September 6, 2007 06:41 PM

Even i am facing the same issue...

did you find any solution???
About | Sitemap | Contact