Lin.DS.Group.RemoveObject
Top  Previous  Next


Removes Linux user object from 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.AddObject to add a member to 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.RemoveObject
GroupPath, ObjectPath

GroupPath
Full directory path to group from which to remove account  

ObjectPath
Full directory path to account to remove  

Example
Remove account steve in people OU from group MyGroup in OU OUinMyOU in OU MyOU

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