User manager interface  
 More...
import"UserManager.idl";
◆ createAccount()
      
        
          | int usermgmt::UserManager_1_0_4::createAccount | ( | in string | username, | 
        
          |  |  | in string | password | 
        
          |  | ) |  |  | 
      
 
Create a new account. 
- Parameters
- 
  
    | username | New user name |  | password | New password |  
 
- Returns
- 0 if OK 
- 
1 if a user with the given name already exists 
- 
2 if the maximum number of users is reached 
- 
3 SNMPv3 USM is activated for the user and the password shall be used as auth passphrase. For this case, the password is too short (must be at least 8 characters). 
- 
5 The password must not be empty. 
- 
6 The password is too short. 
- 
7 The password is too long. 
- 
8 The password must not contain control characters. 
- 
9 The password has to contain at least one lower case character. 
- 
10 The password has to contain at least one upper case character. 
- 
11 The password has to contain at least one numeric character. 
- 
12 The password has to contain at least one printable special character. 
- 
18 if the user name is invalid. 
 
 
◆ createAccountFull()
      
        
          | int usermgmt::UserManager_1_0_4::createAccountFull | ( | in string | username, | 
        
          |  |  | in string | password, | 
        
          |  |  | in UserInfo | info | 
        
          |  | ) |  |  | 
      
 
Create a new account with defined settings. 
- Parameters
- 
  
    | username | New user name |  | password | New password |  | info | New user information |  
 
- Returns
- 0 if OK 
- 
1 if a user with the given name already exists 
- 
2 if the maximum number of users is reached 
- 
3 SNMPv3 USM is activated for the user and the password shall be used as auth passphrase. For this case, the password is too short (must be at least 8 characters). 
- 
4 if any value in the user info is invalid. 
- 
5 The password must not be empty. 
- 
6 The password is too short. 
- 
7 The password is too long. 
- 
8 The password must not contain control characters. 
- 
9 The password has to contain at least one lower case character. 
- 
10 The password has to contain at least one upper case character. 
- 
11 The password has to contain at least one numeric character. 
- 
12 The password has to contain at least one printable special character. 
- 
14 The ssh public key data is too large. 
- 
15 The ssh public key is invalid. 
- 
16 The ssh public key is not supported. 
- 
17 The ssh RSA public key is too short. 
- 
18 if the user name is invalid. 
 
 
◆ deleteAccount()
      
        
          | int usermgmt::UserManager_1_0_4::deleteAccount | ( | in string | username | ) |  | 
      
 
Deletes an account. 
- Parameters
- 
  
    | username | Name of user to delete |  
 
- Returns
- 0 if OK 
- 
1 if a user with the given name does not exist 
- 
2 if the user cannot be deleted 
 
 
◆ getAccountNames()
      
        
          | vector<string> usermgmt::UserManager_1_0_4::getAccountNames | ( |  | ) |  | 
      
 
Get a list of account names available on the system. 
- Returns
- List of account names 
 
 
◆ getAccountsByRole()
      
        
          | vector<Account> usermgmt::UserManager_1_0_4::getAccountsByRole | ( | in string | roleName | ) |  | 
      
 
Get a list of accounts that have a given role. 
- Parameters
- 
  
  
- Returns
- List of accounts 
 
 
◆ getAllAccounts()
      
        
          | vector<Account> usermgmt::UserManager_1_0_4::getAllAccounts | ( |  | ) |  | 
      
 
Get information about all available user accounts. 
- Returns
- List of accounts 
 
 
◆ getDefaultPreferences()
      
        
          | Preferences usermgmt::UserManager_1_0_4::getDefaultPreferences | ( |  | ) |  | 
      
 
Get default user preferences. 
- Returns
- Default user preferences. 
 
 
◆ setDefaultPreferences()
      
        
          | int usermgmt::UserManager_1_0_4::setDefaultPreferences | ( | in Preferences | prefs | ) |  | 
      
 
Set default user preferences. 
- Parameters
- 
  
    | prefs | Default user preferences. |  
 
- Returns
- 0 if OK 
 
 
The documentation for this interface was generated from the following file: