• Post Reply Bookmark Topic Watch Topic
  • New Topic

First days with AD  RSS feed

 
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I have WinXP and I want to connect to it 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 download LDAP server for windows ?
your help is really appreciated ....
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i suggest to read the xp-ldap documentation or look at msn.
instead of the localhoststring, try the machinename or networkshare, but it should be better explained in the doc's,
I worked with ldap from java, but only on the same machine or other machines using all linux.

Mike
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!