Class: IControl::Management::UserManagement
- Inherits:
-
Base
- Object
- Base
- IControl::Management::UserManagement
- Defined in:
- lib/icontrol/management/user_management.rb,
lib/icontrol/management.rb
Overview
The UserManagement interface deals with adding/deleting and modifying users and user permission.
Defined Under Namespace
Classes: PasswordInfo, PasswordInfoSequence, UserID, UserIDSequence, UserInfo, UserInfo2, UserInfo2Sequence, UserInfo3, UserInfo3Sequence, UserInfoSequence, UserPermission, UserPermissionSequence, UserPermissionSequenceSequence, UserRole, UserRoleSequence
Instance Method Summary (collapse)
-
- (AuthenticationMethod) authentication_method
Get the authentication method that the system will use to authenticate user.
-
- (Object) change_my_password(opts)
Change the password of the user making the request.
-
- (Object) change_password(opts)
Change the user's password.
-
- (Object) change_password_2(opts)
Change the user's password.
-
- (Object) create_user(opts)
Note: this method is deprecated; please use create_user_3 and associated data.
-
- (Object) create_user_2(opts)
Note: this method is deprecated; please use create_user_3 and associated data.
-
- (Object) create_user_3(opts)
Create this new user.
-
- (String) default_partition
Get the default user partition for the device.
-
- (UserRole) default_role
Get the default user role for the device.
-
- (Object) delete_user
Delete this user.
-
- (String) encrypted_password
Gets the encrypted passwords of this user.
-
- (String) fullname
Get the full names for the given user.
-
- (long) group_id
Get the Group IDs for the given usernames.
-
- (String) home_directory
Get the default home directories for the given usernames.
-
- (boolean) is_locked_out
Checks to see if a user is locked out due to exceeding the maximum number of allowed login failures.
-
- (UserID) list
List all user.
-
- (String) login_shell
Get the login shells for the given usernames.
-
- (UserPermission) my_permission
Gets the credentials of the user making the request.
-
- (boolean) remote_console_access
Get the user remote console access for the device.
-
- (Object) reset_locked_out
Resets the lockout status of a user that has exceeded the maximum number of allowed login failures.
-
- (UserRole) role
This method is now deprecated.
-
- (Object) set_authentication_method(opts)
Sets the authentication method that the system will use to authenticate user.
-
- (Object) set_default_partition(opts)
Sets the default user partition for the device if the user does not have an explicit partition.
-
- (Object) set_default_role(opts)
Sets the default user role for the device if the user does not have an explicit role.
-
- (Object) set_fullname(opts)
Sets the full names for this user.
-
- (Object) set_group_id(opts)
This method is deprecated, as the operation is not allowed (and will return an error).
-
- (Object) set_home_directory(opts)
This method is deprecated, as the operation is not allowed (and will return an error).
-
- (Object) set_login_shell(opts)
Sets the login shells for this user.
-
- (Object) set_remote_console_access(opts)
Sets the user remote console access for the device if the user does not have an explicit remote console access.
-
- (Object) set_role(opts)
This method is now deprecated.
-
- (Object) set_user_id(opts)
This method is deprecated, as the operation is not allowed (and will return an error).
-
- (Object) set_user_permission(opts)
Sets the permissions of this user.
-
- (long) user_id
Get the User IDs for the given usernames.
-
- (UserPermission[]) user_permission
Gets the permissions of this user.
-
- (String) version
Gets the version information for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
- (AuthenticationMethod) authentication_method
Get the authentication method that the system will use to authenticate user.
127 128 129 |
# File 'lib/icontrol/management/user_management.rb', line 127 def authentication_method super end |
- (Object) change_my_password(opts)
Change the password of the user making the request.
33 34 35 36 |
# File 'lib/icontrol/management/user_management.rb', line 33 def change_my_password(opts) check_params(opts,[:password]) super end |
- (Object) change_password(opts)
Change the user's password.
46 47 48 49 |
# File 'lib/icontrol/management/user_management.rb', line 46 def change_password(opts) check_params(opts,[:passwords]) super end |
- (Object) change_password_2(opts)
Change the user's password.
59 60 61 62 |
# File 'lib/icontrol/management/user_management.rb', line 59 def change_password_2(opts) check_params(opts,[:passwords]) super end |
- (Object) create_user(opts)
Note: this method is deprecated; please use create_user_3 and associated data. (home directory, user id, and group id are now computed by the system, and there is now a choice of whether the password is encrypted) Create this new user. Note: as of v10.1.0, this method will silently ignore any of user id, group id, and home directory passed in.
76 77 78 79 |
# File 'lib/icontrol/management/user_management.rb', line 76 def create_user(opts) check_params(opts,[:users]) super end |
- (Object) create_user_2(opts)
Note: this method is deprecated; please use create_user_3 and associated data. (home directory, user id, and group id are now computed by the system) Create this new user. Note: as of v10.1.0, this method will silently ignore any of user id, group id, and home directory passed in.
92 93 94 95 |
# File 'lib/icontrol/management/user_management.rb', line 92 def create_user_2(opts) check_params(opts,[:users]) super end |
- (Object) create_user_3(opts)
Create this new user.
105 106 107 108 |
# File 'lib/icontrol/management/user_management.rb', line 105 def create_user_3(opts) check_params(opts,[:users]) super end |
- (String) default_partition
Get the default user partition for the device.
138 139 140 |
# File 'lib/icontrol/management/user_management.rb', line 138 def default_partition super end |
- (UserRole) default_role
Get the default user role for the device.
149 150 151 |
# File 'lib/icontrol/management/user_management.rb', line 149 def default_role super end |
- (Object) delete_user
Delete this user.
116 117 118 |
# File 'lib/icontrol/management/user_management.rb', line 116 def delete_user super end |
- (String) encrypted_password
Gets the encrypted passwords of this user.
160 161 162 |
# File 'lib/icontrol/management/user_management.rb', line 160 def encrypted_password super end |
- (String) fullname
Get the full names for the given user.
171 172 173 |
# File 'lib/icontrol/management/user_management.rb', line 171 def fullname super end |
- (long) group_id
Get the Group IDs for the given usernames.
182 183 184 |
# File 'lib/icontrol/management/user_management.rb', line 182 def group_id super end |
- (String) home_directory
Get the default home directories for the given usernames.
193 194 195 |
# File 'lib/icontrol/management/user_management.rb', line 193 def home_directory super end |
- (boolean) is_locked_out
Checks to see if a user is locked out due to exceeding the maximum number of allowed login failures. Return whether the user is locked out.
295 296 297 |
# File 'lib/icontrol/management/user_management.rb', line 295 def is_locked_out super end |
- (UserID) list
List all user.
204 205 206 |
# File 'lib/icontrol/management/user_management.rb', line 204 def list super end |
- (String) login_shell
Get the login shells for the given usernames.
215 216 217 |
# File 'lib/icontrol/management/user_management.rb', line 215 def login_shell super end |
- (UserPermission) my_permission
Gets the credentials of the user making the request. This is useful in getting your own permission information (regardless of which partitions you may otherwise read). The results indicate what role you have on a what partitions.
228 229 230 |
# File 'lib/icontrol/management/user_management.rb', line 228 def super end |
- (boolean) remote_console_access
Get the user remote console access for the device.
239 240 241 |
# File 'lib/icontrol/management/user_management.rb', line 239 def remote_console_access super end |
- (Object) reset_locked_out
Resets the lockout status of a user that has exceeded the maximum number of allowed login failures. Unlocks all user provided in user_names unless an error occurs where it may unlock up to that user that caused the error.
307 308 309 |
# File 'lib/icontrol/management/user_management.rb', line 307 def reset_locked_out super end |
- (UserRole) role
This method is now deprecated. Please use get_user_permission in its stead, which uses a larger concept of user roles. Gets the roles of this user.
251 252 253 |
# File 'lib/icontrol/management/user_management.rb', line 251 def role super end |
- (Object) set_authentication_method(opts)
Sets the authentication method that the system will use to authenticate user.
319 320 321 322 |
# File 'lib/icontrol/management/user_management.rb', line 319 def set_authentication_method(opts) check_params(opts,[:auth_method]) super end |
- (Object) set_default_partition(opts)
Sets the default user partition for the device if the user does not have an explicit partition.
333 334 335 336 |
# File 'lib/icontrol/management/user_management.rb', line 333 def set_default_partition(opts) check_params(opts,[:partition]) super end |
- (Object) set_default_role(opts)
Sets the default user role for the device if the user does not have an explicit role.
346 347 348 349 |
# File 'lib/icontrol/management/user_management.rb', line 346 def set_default_role(opts) check_params(opts,[:role]) super end |
- (Object) set_fullname(opts)
Sets the full names for this user.
359 360 361 362 |
# File 'lib/icontrol/management/user_management.rb', line 359 def set_fullname(opts) check_params(opts,[:fullnames]) super end |
- (Object) set_group_id(opts)
This method is deprecated, as the operation is not allowed (and will return an error). Sets the Group IDs for this user.
373 374 375 376 |
# File 'lib/icontrol/management/user_management.rb', line 373 def set_group_id(opts) check_params(opts,[:gids]) super end |
- (Object) set_home_directory(opts)
This method is deprecated, as the operation is not allowed (and will return an error). Sets the home directories for this user.
387 388 389 390 |
# File 'lib/icontrol/management/user_management.rb', line 387 def set_home_directory(opts) check_params(opts,[:directories]) super end |
- (Object) set_login_shell(opts)
Sets the login shells for this user.
400 401 402 403 |
# File 'lib/icontrol/management/user_management.rb', line 400 def set_login_shell(opts) check_params(opts,[:shells]) super end |
- (Object) set_remote_console_access(opts)
Sets the user remote console access for the device if the user does not have an explicit remote console access.
414 415 416 417 |
# File 'lib/icontrol/management/user_management.rb', line 414 def set_remote_console_access(opts) check_params(opts,[:enabled]) super end |
- (Object) set_role(opts)
This method is now deprecated. Please use set_user_permission in its stead, which uses a larger concept of user roles. Change the user's role.
428 429 430 431 |
# File 'lib/icontrol/management/user_management.rb', line 428 def set_role(opts) check_params(opts,[:roles]) super end |
- (Object) set_user_id(opts)
This method is deprecated, as the operation is not allowed (and will return an error). Sets the User IDs for this user.
442 443 444 445 |
# File 'lib/icontrol/management/user_management.rb', line 442 def set_user_id(opts) check_params(opts,[:uids]) super end |
- (Object) set_user_permission(opts)
Sets the permissions of this user. The permission basically indicates what role a user has on a given partition. A user could have one role on a partition, and a different role on another partition, hence the permission list is a sequence of sequence.
457 458 459 460 |
# File 'lib/icontrol/management/user_management.rb', line 457 def (opts) check_params(opts,[:permissions]) super end |
- (long) user_id
Get the User IDs for the given usernames.
262 263 264 |
# File 'lib/icontrol/management/user_management.rb', line 262 def user_id super end |
- (UserPermission[]) user_permission
Gets the permissions of this user. The permission basically indicates what role a user has on a given partition. A user could have one role on a partition, and a different role on another partition, hence the return list is a sequence of sequence.
275 276 277 |
# File 'lib/icontrol/management/user_management.rb', line 275 def super end |
- (String) version
Gets the version information for this interface.
283 284 285 |
# File 'lib/icontrol/management/user_management.rb', line 283 def version super end |