Lin.DS.Group.AddObject
Top  Previous  Next


Adds Linux user object to supplementary group

Depending on the Linux.Version setting, this command edits either the multi valued "memberUid" or "member" property of a group.

Linux.Version
Schema
Property edited
1 (default)
nis.schema
memberUid
2
rfc2307bis.schema
member
 

Notice that the "gidNumber" property of an account contains the main group, the "memberUid" or "member" property of a group only contains supplementary groups.  

A connection must be established with Lin.DS.Logon before any other Lin.DS.x command can be used.

Use Lin.DS.Group.RemoveObject to remove a member from a group.

Requirements
·Linux server with OpenLDAP 2.0 or higher, configured to accept SSL connections on port 636.  
·A locally installed SSL certificate.  

Category
Linux

Script section
All

Lin.DS.Group.AddObject
GroupPath, ObjectPath

GroupPath
Full directory path to group to which to add account  

ObjectPath
Full directory path to account to add to group  

Examples
1) Add account steve in people OU to group MyGroup in OU OUinMyOU in OU MyOU

Lin.DS.Group.AddObject dc=com/dc=my-domain/ou=MyOU/ou=OUinMyOU/cn=MyGroup, dc=com/dc=my-domain/ou=people/uid=steve

2) Add account steve in people OU to group MyGroup in OU OUinMyOU in OU MyOU with Linux.Version=2.

[Settings_Begin]
.
Linux.Version=2
.
[Settings_End]

[Batch_Begin]
.
Lin.DS.Group.AddObject dc=com/dc=my-domain/ou=MyOU/ou=OUinMyOU/cn=MyGroup, dc=com/dc=my-domain/ou=people/uid=steve
.
[Batch_End]