Need Help to access the active directory
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Todd
Posted On:   Friday, May 21, 2004 05:26 PM

Hi. I have WinXP and I want to connect to its active directory using JNDI to get the users informations.. I have read from sun tutorial the following : Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory"); env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial"); but the problem is I have never used win active directory before, so I don't know its syntax inside my system. what should I put instead of : ldap://localhost:389/o=JNDITutorial to access the MS active directory ? what should I put instead of o=JNDITutorial to access the users informations ? should   More>>

Hi.
I have WinXP and I want to connect to its active directory using JNDI to get the users informations..
I have read from sun tutorial the following :


Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://localhost:389/o=JNDITutorial");


but the problem is I have never used win active directory before, so I don't know its syntax inside my system.
what should I put instead of :


ldap://localhost:389/o=JNDITutorial
to access the MS active directory ?
what should I put instead of o=JNDITutorial to access the users informations ?
should I modify com.sun.jndi.ldap.LdapCtxFactory ?
should I download LDAP server for windows ?
your help is really appreciated ....
   <<Less
About | Sitemap | Contact