Article

aburgemeister's picture
article
Reads:

5358

Score:
0
0
 
Comments:

0

Creating/Modifying Groups using an LDAP Command Line

Author Info

7 March 2007 - 3:01am
Submitted by: aburgemeister

(View Disclaimer)

Problem

A Forum reader recently asked:

"How can I create/modify groups using the command line? I need to figure out how to handle eDirectory groups under LDAP. I have Novell 8.8 installed on Windows server 2003."

And here's the response from Aaron Burgemeister ...

Solution

Hacking groups from the command line (via LDAP) is simple enough. You just need to be sure you modify both the user AND group sides of the link. Given this example:

User:
  groupMembership
  securityEquals

Group:
  members
  equivalentToMe

... you need to modify both a user and group to add these things:

dn: cn=admin,dc=user,dc=system
changetype: modify
add: groupMembership
groupMembership: cn=admingroup,dc=group,dc=system
- -
add: equivalentToMe
equivalentToMe: cn=admingroup,dc=group,dc=system

dn: cn=admingroup,dc=group,dc=system
changetype: modify
add: member
member: cn=admin,dc=user,dc=system
- -
add: securityEquals
securityEquals: cn=admin,dc=user,dc=system


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell