on 05-11-2007 8:29 AM
Hi,
has anyone experience with getting data directly from an active directory with java and then display this data with WebDynpro Java in the portal?
How can I do it?
Links and samples are welcome.
Best regards,
Hartmut
Hi Hartmut,
At a guess I'd say you would be looking to create a webservice to access the active directory, and then create a model based on this service.
Can't guess at anything else though!
Gareth.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
problem solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hartmut,
AD is in fact LDAP server, so you may use built-in JNDI LDAP facilities to search / edit users/groups/roles.
Please read article http://www.javaworld.com/javaworld/jw-03-2000/jw-0324-ldap.html
Just one hint: typical connection to AD looks like:
final Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL,"ldap://your-win-ad-server:389/cn=Users,dc=your-domain,dc=com");
env.put(Context.SECURITY_PRINCIPAL,"cn=Administrator,cn=Users,dc=your-domain,dc=com");
env.put(Context.SECURITY_CREDENTIALS,"password");
DirContext ctxt = new InitialDirContext(env);
/* work with ctx here */
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.