Lin.DS.Group.Create
Top  Previous  Next


Creates Linux group

Depending on the Linux.Version setting, this command sets "objectClass" to either "posixGroup" or both "top", "posixGroup" and "Namedobject".

Linux.Version
Schema
objectClass
1 (default)
nis.schema
posixGroup
2
rfc2307bis.schema
top, posixGroup and Namedobject
 
 
Notice that it is possible to create a group with any objectClass setting by using Lin.DS.Op, see Lin.DS.Op.SetProperty for an example.  

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

Use Lin.DS.Object.Delete to delete 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.Create
ObjectPath

ObjectPath
Full directory path to group to create  

Examples
1) Create group MyGroup in OU OUinMyOU in OU MyOU

Lin.DS.Group.Create dc=com/dc=my-domain/ou=MyOU/ou=OUinMyOU/cn=MyGroup

2) Create group MyGroup in OU OUinMyOU in OU MyOU with Linux.Version=2.

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

[Batch_Begin]
.
Lin.DS.Group.Create dc=com/dc=my-domain/ou=MyOU/ou=OUinMyOU/cn=MyGroup
.
[Batch_End]