cancel
Showing results for 
Search instead for 
Did you mean: 

Data from AD -> WebDynpro Java

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

problem solved

Former Member
0 Kudos

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

http://www.sam-solutions.net