You can remove i-Planet users from the system in three different ways: by user ID, by user's last login time (if any), or by reading a list of login IDs from a text file.
If you provide the -srclogin LOGINID switch, the login ID LOGINID will be deleted.
If you specify the -older N switch, then users who have not logged in for N days will be deleted.
If you specify the -nologin switch, then users who have never logged in will be deleted.
If you provide none of the above switches, UserAdminCL reads a list of users to delete from a text file.
If you specify the -interactive switch, you will not be asked if you want to delete the user first.
In addition to any specific i-Planet user being deleted, all i-Planet users "aliased" to this user are also removed.
If you specify the -srclogin LOGINID switch after the delete action, then the login ID LOGINID will be removed from the i-Planet database.
Type the following command to delete a specific i-Planet user, for example:
# java com.sun.stnr.useradmin.UserAdminCL +action delete -interactive \ -srclogin jb34290 |
This command returns the confirmation that the user indicated in the command was deleted:
+ deleted login=jb34290 |
If you specify either the -nologin or -older N switches, i-Planet users are removed based on their last update time (stored as the value for the i-Planet user's Common.UpdateTime property). You can view this property with the get action.
If you specify -nologin, then users who have not yet logged in will be deleted (Common.UpdateTime property is null).
If you specify -older N, then users with an update time of more than N days from the present are deleted.
Any user that is deleted with the -nologin switch is also removed by the -older N switch. Specifying -older 0 selects all users.
Type the following to delete i-Planet users based on last login time using the -older N switch, for example:
# java com.sun.stnr.useradmin.UserAdminCL +action -interactive delete -older 30 |
Confirm that you want the user indicated deleted by typing y or n:
+ delete login=bob [yes/no] y + deleted login=bob + delete login=bill [yes/no] y + deleted login=bill + delete login=bob [yes/no] n + no action for login=jan |
Type the following to delete i-Planet users based on last login time using the -nologin switch, for example:
# java com.sun.stnr.useradmin.UserAdminCL +action delete -interactive -nologin |
Confirm that you want the user indicated deleted by typing y or n:
+ delete login=bob [yes/no] y + deleted login=bob |
If you do not specify -older N, -nologin, or -srclogin switches with the delete action, a list of i-Planet users to be removed will be read from a text file. You can provide the file name on the command line to identify the file to be used. If you do not specify a file, ./users will be used.
UserAdminCL reads a list of login IDs from the users file and deletes each one from the system.
The format of this users file is identical to the users file described in the section "Creating New i-Planet Users From a Text File". However, only the session.uid property is used and all other content is ignored.
Type the following to delete i-Planet users according to a list, for example:
# java com.sun.stnr.useradmin.UserAdminCL +action delete -interactive |
This command returns confirmation that the users who meet the criterion in the command are deleted:
+ deleted login=bob + deleted login=bill + deleted login=jab |
You can specify the -interactive switch to prevent prompting.