LDAP How-to: create a new People entry and place it in a group?

O

ozgwei

I'm not familiar with LDAP except using JNDI to look up EJB homes and
data sources.

Now I have a task to create a People entry and put it in a group in
Java.

The entry should be:
dn: uid=user-id, ou=People, dc=company, dc=com
uid: user-id
givenName: given-name
objectClass: top
objectClass: person
objectClass: organizationPerson
objectClass: inetorgperson
sn: surname
cn: something
userPassword: password

And the new entry should be put into a group:
dn: cn=group-name, ou=People, ou=somename, dc=company, dc=com

All these dn, cn, sn, ou, dc things look strange to me as a novice.

Would anyone please kindly show me how to accomplish this in J2SE?

Thanks.
 
R

Roland

I'm not familiar with LDAP except using JNDI to look up EJB homes and
data sources.

Now I have a task to create a People entry and put it in a group in
Java.

The entry should be:
dn: uid=user-id, ou=People, dc=company, dc=com
uid: user-id
givenName: given-name
objectClass: top
objectClass: person
objectClass: organizationPerson
objectClass: inetorgperson
sn: surname
cn: something
userPassword: password

And the new entry should be put into a group:
dn: cn=group-name, ou=People, ou=somename, dc=company, dc=com

All these dn, cn, sn, ou, dc things look strange to me as a novice.

Would anyone please kindly show me how to accomplish this in J2SE?

Thanks.
Here's a link to an article describing how to manipulate LDAP through JNDI:
<http://www.javaworld.com/javaworld/jw-03-2000/jw-0324-ldap.html>

In the past I've used Netscape's LDAP JDK, which can manipulate LDAP
directly (i.e. not through JNDI). Use Google to find any references to
this Netscape JDK.

--
Regards,

Roland de Ruiter
` ___ ___
`/__/ w_/ /__/
/ \ /_/ / \
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top