Skip to Content
avatar image
Former Member

Data from AD -> WebDynpro Java

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    May 11, 2007 at 07:38 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 11, 2007 at 08:34 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 14, 2007 at 02:01 PM

    problem solved

    Add comment
    10|10000 characters needed characters exceeded