SUMMARY: Adding new LDAP group

From: Dave Martini <>
Date: Wed Jan 11 2006 - 18:02:34 EST
Looks like most are using command line and not the Directory
Console GUI to add groups. I see the group now in Directory Server 
Console although don't see how within the console to add someone to the 
new group but I'm sure it can be done via command line.


James Scott provided me with the commands to create the groups. Thanks 

Another way to look these objects is:
  ldapaddent -d group  [ |grep GROUP ]
                passwd  [ |grep USER ]

Run these from a ldapclient machine:

To add a group:
  1. Create file
     vi /tmp/j

  2. Add file to LDAP
      ldapaddent -D "cn=directory manager" -f /tmp/j group
      ldapaddent -d group |grep admin

To add a user, it would be easier create a file with the format setup 
like /etc/passwd and add it to the LDAP server

  1. Create file(s)
     vi /tmp/k
         NUSER:x:1001:12:New User:/home/NUSER:/bin/ksh
     vi /tmp/l

  2. Add file(s) to LDAP
   ldapaddent -D "cn=directory manager" -f /tmp/k passwd
   ldapaddent -D "cn=directory manager" -f /tmp/l shadow
   ldapaddent -d passwd |grep NUSER

  3. Change password in ldap

  4. Create directory and change ownership

Below is my original question

I'm using SunOne Directory Server 5.2 on Solaris 9.
Client is Solaris 9.

Trying to get a posixgroup setup but can't see the group with ldaplist.

ldapclient# ldaplist -l group
ldaplist: Object not found

I have a basic question of the right way to create this group with id 777.

When I create a new user I go under

object pull down menu

Then I click on

Add Value

Then I  click on

Add Value

Then I click on
Add attribute

What's the correct way to add a group??

I tried doing this:

object pull down menu

but still can't see it with a ldaplist -l group

Do I need to add values/attributes like I did for the account above?
Is there a mechanism for adding people to the group once I create it?

Thank You.
Dave Martini
sunmanagers mailing list
Received on Wed Jan 11 18:03:06 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:54 EST