CreateImportPendingUser
Creates a “pending import” user in the zone.
Syntax
IUserInfo CreateImportPendingUser(string source, DateTime timestamp)
Parameters
Specify the following parameters when using this method.
Parameter | Description |
---|---|
source
|
The location of the source data for the user to be imported. |
timestamp
|
The date and time at which the data was retrieved. |
Return value
The newly created pending import user
object.
Discussion
User profiles in a pending import user object need to be mapped to Active Directory groups before they can be used. Users in this state are normally imported from NIS domains or from text files and stored temporarily either in Active Directory or in XML files until they are mapped to Active Directory accounts. For more information about importing and mapping users, see the Administrator’s Guide for Linux and UNIX.
Example
The following code sample illustrates using this method in a script:
...
'Specify the zone you want to work with
set objZone = cims.GetZone("ajax.org/UNIX/Zones/test_lab")
'Create the Pending Import User object
set objPendUsr = objZone.CreateImportPendingUser("script file", now)
objPendiUsr.Uid = 500
objPendUsr.Name = "joe"
objPendUsr.PrimaryGroupId = 500
objPendUsr.HomeDirectory = "/home/joe"
objPendUsr.Shell = "/bin/bash"
objPendUsr.Gecos = "Joe Jane"
objPendUsr.Commit
...