Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > how to create a group in LDAP server and add members to a particular group using JNDI?

Reply
Thread Tools

how to create a group in LDAP server and add members to a particular group using JNDI?

 
 
Akaketwa
Guest
Posts: n/a
 
      09-22-2006
Hi,

I know how to add an entry in LDAP server, but I'd like to know
how
to create a group in LDAP server and add members to a particular group
using JNDI?

Would you please post sample codes here? Or any links for
reference? Thanks for your help in advance!

 
Reply With Quote
 
 
 
 
impaler
Guest
Posts: n/a
 
      09-22-2006

Akaketwa wrote:
> Hi,
>
> I know how to add an entry in LDAP server, but I'd like to know
> how
> to create a group in LDAP server and add members to a particular group
> using JNDI?
>
> Would you please post sample codes here? Or any links for
> reference? Thanks for your help in advance!


Have you tried creating a group with objectClass let's say "group" and
use it as an OU for the child entries?

Let's say you make an OU "MyGroup" of class "group" and then use it as
OU when adding users.

Build the distinguished name like this:
cn=user1, ou=MyGroup, c=country, dc=domain, dc=com
where MyGroup is of objectClass "group" and is previously added to the
AD with distinguished name: cn=MyGroup, c=contry etc

Take a look at http://ldaptemplate.sourceforge.net/quickstart.pdf and
see what ldaptemplate can do for you to ease your work.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Need to wrtie LDAP class to *answer* LDAP queries. junk1@davidbevan.co.uk Java 1 02-21-2006 09:59 PM
Difference between static final members and final static members(if any)? JFCM Java 4 02-07-2006 11:32 AM
LDAP How-to: create a new People entry and place it in a group? ozgwei Java 2 10-22-2005 03:21 AM
using LDAP Controls in ruby-ldap Jason Wold Ruby 5 11-07-2004 03:35 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57