Lin.DS.OU.MoveObject
Top  Previous  Next


Moves Linux object (user, group) between organizational units and/or renames object

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

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.OU.MoveObject
SrcPath, DstPath

SrcPath
Directory path to object to move  

DestPath
Destination directory path  

Examples
1) Move MyAccount from OU People to OU MyOU

Lin.DS.OU.MoveObject dc=com/dc=my-domain/ou=People/uid=MyAccount, dc=com/dc=my-domain/ou=MyOU/uid=MyAccount

2) Rename MyAccount to MyAccount2

Lin.DS.OU.MoveObject dc=com/dc=my-domain/ou=MyOU/uid=MyAccount, dc=com/dc=my-domain/ou=MyOU/uid=MyAccount2   
Lin.DS.Op.Init Modify, dc=com/dc=my-domain/ou=MyOU/uid=MyAccount2   
Lin.DS.Op.SetProperty cn, MyAccount2   
Lin.DS.Op.Commit

(Lin.DS.OU.MoveObject only changes uid for account objects, cn must be changed separately with Lin.DS.Op.)