Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.11.1.2
openapi_user_manager.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2023 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_user_manager.h
28 *
29 * @purpose User Manager Configuration and Status
30 *
31 * @component OpEN
32 *
33 * @create 18/01/2013
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_USER_MGR_H_INCLUDED
39 #define OPENAPI_USER_MGR_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
44 typedef enum
45 {
50 
52 typedef enum
53 {
58 
60 typedef enum
61 {
72 
74 typedef enum
75 {
81 
83 typedef enum
84 {
92 
94 typedef enum
95 {
101 
103 typedef enum
104 {
111 
113 typedef enum
114 {
120 
122 typedef enum
123 {
124  OPEN_LOGIN_TYPE_UNKNWN = 0,
125  OPEN_LOGIN_TYPE_SERIAL = 1,
126  OPEN_LOGIN_TYPE_TELNET = 2,
127  OPEN_LOGIN_TYPE_SSH = 3,
128  OPEN_LOGIN_TYPE_HTTP = 4,
129  OPEN_LOGIN_TYPE_HTTPS = 5,
130  OPEN_LOGIN_TYPE_SNMP = 6,
131  OPEN_LOGIN_TYPE_PING = 7,
132  OPEN_LOGIN_TYPE_UDS = 8,
133  OPEN_LOGIN_TYPE_LAST = 9
135 
137 typedef enum
138 {
146 
147 #define OPEN_LOGIN_SIZE 65
148 #define OPEN_PASSWORD_SIZE 65
150 /*****************************************************************/
177 open_error_t openapiUserSet(openapiClientHandle_t *client_handle,
178  open_buffdesc *userName,
179  open_buffdesc *password);
180 
181 /*****************************************************************/
199  open_buffdesc *username);
200 
201 /*****************************************************************/
221  open_buffdesc *prevUserName,
222  open_buffdesc *nextUserName);
223 
224 /*****************************************************************/
242  OPEN_LOGIN_TYPE_t sessionType,
243  uint32_t *prevSessionID);
244 
245 /*****************************************************************/
260  uint32_t sessionID);
261 
262 /*****************************************************************/
277  uint32_t *maxUsers);
278 
279 /*****************************************************************/
302  open_buffdesc *userName,
304 
305 /*****************************************************************/
326  open_buffdesc *userName,
328 
329 /*****************************************************************/
343  uint32_t *userNameSize);
344 
345 /*****************************************************************/
364  open_buffdesc *userName);
365 
366 /*****************************************************************/
382  uint32_t *passwordMinSize,
383  uint32_t *passwordMaxSize);
384 
385 /*****************************************************************/
404  OPEN_BOOL_t isEncrypPswd,
405  uint32_t *pPasswordMinSize,
406  uint32_t *pPasswordMaxSize);
407 
408 /*****************************************************************/
430  open_buffdesc *userName);
431 
432 /*****************************************************************/
456  OPEN_ACCESS_LEVEL_t accessLevel,
457  open_buffdesc *authListName);
458 
459 /*****************************************************************/
501  OPEN_ACCESS_LEVEL_t accessLevel,
502  open_buffdesc *authListName,
503  open_buffdesc *authMethod);
504 
505 /*****************************************************************/
536  OPEN_ACCESS_LEVEL_t authLevel,
537  open_buffdesc *authListName,
538  open_buffdesc *methodList);
539 
540 /*****************************************************************/
559  OPEN_ACCESS_LEVEL_t authLevel,
560  open_buffdesc *authListName);
561 
562 /*****************************************************************/
583  OPEN_ACCESS_LEVEL_t authLevel,
584  open_buffdesc *prevAuthListName,
585  open_buffdesc *nextAuthListName);
586 /*****************************************************************/
608  OPEN_ACCESS_LEVEL_t accessLevel,
609  open_buffdesc *authListName);
610 
611 /*****************************************************************/
635  OPEN_ACCESS_LINE_t accessLine,
636  OPEN_ACCESS_LEVEL_t accessLevel,
637  open_buffdesc *authListName);
638 
639 /*****************************************************************/
659  OPEN_ACCESS_LINE_t accessLine,
660  OPEN_ACCESS_LEVEL_t accessLevel,
661  open_buffdesc *authListName);
662 
663 /*****************************************************************/
682  OPEN_ACCESS_LINE_t accessLine,
683  OPEN_ACCESS_LEVEL_t accessLevel);
684 
685 /*****************************************************************/
702  uint32_t *authListNameSize);
703 
704 /*****************************************************************/
723  uint32_t *maxAuthMethods);
724 
725 
726 /*****************************************************************/
745  open_buffdesc *authListName);
746 
747 /*****************************************************************/
766  open_buffdesc *acctListName);
767 
768 /*****************************************************************/
787  open_buffdesc *authorListName);
788 
789 /*****************************************************************/
813  open_buffdesc *authorListName);
814 
815 /*****************************************************************/
846  open_buffdesc *authorListName,
847  open_buffdesc *authorMethod);
848 
849 /*****************************************************************/
866  uint32_t *authorListNameSize);
867 
868 /*****************************************************************/
886  uint32_t *maxAuthorMethods);
887 
888 /*****************************************************************/
912  open_buffdesc *authorListName);
913 
914 /*****************************************************************/
935  open_buffdesc *authorListName);
936 
937 /*****************************************************************/
962  open_buffdesc *prevAuthorListName,
963  open_buffdesc *nextAuthorListName);
964 
965 /*****************************************************************/
991  open_buffdesc *authorListName,
992  open_buffdesc *authorMethodList);
993 
994 /*****************************************************************/
1014  OPEN_ACCESS_LINE_t accessLine,
1016  open_buffdesc *authorListName);
1017 
1018 /*****************************************************************/
1038  OPEN_ACCESS_LINE_t accessLine,
1040  open_buffdesc *authorListName);
1041 
1042 /*****************************************************************/
1062  OPEN_ACCESS_LINE_t accessLine,
1064 
1065 /*****************************************************************/
1089  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1090  OPEN_USER_MGR_RECORD_TYPES_t recordType,
1091  open_buffdesc *acctListName);
1092 
1093 /*****************************************************************/
1124  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1125  open_buffdesc *acctListName,
1126  open_buffdesc *acctMethod);
1127 
1128 /*****************************************************************/
1150  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1151  open_buffdesc *acctListName,
1152  open_buffdesc *methodList);
1153 
1154 /*****************************************************************/
1174  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1175  open_buffdesc *acctListName,
1176  OPEN_USER_MGR_RECORD_TYPES_t *recordType);
1177 
1178 /*****************************************************************/
1196  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1197  open_buffdesc *acctListName);
1198 
1199 /*****************************************************************/
1222  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1223  open_buffdesc *prevAcctListName,
1224  open_buffdesc *nextAcctListName);
1225 
1226 /*****************************************************************/
1250  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1251  open_buffdesc *acctListName);
1252 
1253 /*****************************************************************/
1273  OPEN_ACCESS_LINE_t accessLine,
1274  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1275  open_buffdesc *acctListName);
1276 
1277 /*****************************************************************/
1296  OPEN_ACCESS_LINE_t accessLine,
1297  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1298  open_buffdesc *acctListName);
1299 
1300 /*****************************************************************/
1317  OPEN_ACCESS_LINE_t accessLine,
1318  OPEN_USER_MGR_ACCT_TYPES_t acctType);
1319 
1320 /*****************************************************************/
1337  uint32_t *maxAcctMethods);
1338 
1339 /*****************************************************************/
1355  uint32_t *acctListNameSize);
1356 
1357 /*****************************************************************/
1376  open_buffdesc *enablePswd);
1377 
1378 /*****************************************************************/
1394 
1395 /*****************************************************************/
1421  open_buffdesc *userName,
1422  open_buffdesc *password,
1423  OPEN_LOGIN_ACCESS_LEVELS_t *accessLevel);
1424 
1425 /*****************************************************************/
1450  open_buffdesc *userName,
1451  open_buffdesc *password,
1452  open_buffdesc *logintype,
1453  open_buffdesc *inetaddr,
1454  uint32_t *accessLevel,
1455  open_buffdesc *sessionId);
1456 
1457 
1458 /************************************************************************/
1475  open_buffdesc *sessionId,
1476  open_buffdesc *logintype,
1477  open_buffdesc *inetaddr,
1478  uint32_t *accessLevel);
1479 
1480 /************************************************************************/
1494  open_buffdesc *sessionId);
1495 
1496 /*****************************************************************/
1515  OPEN_ACCESS_LINE_t accessLine,
1516  OPEN_ACCESS_LEVEL_t accessLevel,
1517  OPEN_BOOL_t *authStatus);
1518 
1519 /*****************************************************************/
1536  open_buffdesc *userName,
1537  open_buffdesc *userPassword);
1538 
1539 /*****************************************************************/
1557  uint32_t id,
1558  open_buffdesc *name);
1559 
1560 /*****************************************************************/
1576  uint32_t id,
1577  open_inet_addr_t *addr);
1578 
1579 /*****************************************************************/
1595  uint32_t id,
1596  uint32_t *timeVal);
1597 
1598 /*****************************************************************/
1614  uint32_t id,
1615  uint32_t *timeVal);
1616 
1617 /*****************************************************************/
1633  uint32_t id,
1634  OPEN_LOGIN_TYPE_t *type);
1635 
1636 /*****************************************************************/
1666  open_buffdesc *userName,
1667  open_buffdesc *password,
1668  OPEN_ENCRYPT_TYPE_t encryptType,
1669  OPEN_BOOL_t encrypted);
1670 
1671 /*****************************************************************/
1692  open_buffdesc *userName,
1693  OPEN_ENCRYPT_TYPE_t *encryptType);
1694 
1695 /*****************************************************************/
1716  open_buffdesc *enablePswd,
1717  OPEN_ENCRYPT_TYPE_t encryptType,
1718  OPEN_BOOL_t encrypted);
1719 
1720 /*****************************************************************/
1736  OPEN_ENCRYPT_TYPE_t *encryptType);
1737 
1738 /*****************************************************************/
1756 
1757 /*************************************************************************/
1776 
1777 /*************************************************************************/
1795 
1796 /*************************************************************************/
1815 
1816 /*************************************************************************/
1833 
1834 /*************************************************************************/
1849 /*************************************************************************/
1875 open_error_t openapiAuthenticationMethodSet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *apl_name, uint32_t order, OPEN_USER_MGR_AUTH_METHOD_t auth_method);
1876 
1877 /*************************************************************************/
1896 open_error_t openapiAuthenticationMethodGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *apl_name, uint32_t order, OPEN_USER_MGR_AUTH_METHOD_t *auth_method);
1897 #endif
1898 
open_error_t openapiUserPasswordGet(openapiClientHandle_t *client_handle, open_buffdesc *userName, open_buffdesc *userPassword)
Get the password for specified user.
open_error_t openapiAuthenticateUser(openapiClientHandle_t *client_handle, open_buffdesc *userName, open_buffdesc *password, OPEN_LOGIN_ACCESS_LEVELS_t *accessLevel)
Authenticate Login User.
open_error_t openapiUserEmailIdGet(openapiClientHandle_t *client_handle, open_buffdesc *pUserName, open_buffdesc *pEmailInfo)
Get user's Configured emailId information.
OPEN_USER_MGR_AUTHOR_TYPES_t
OpEN uses this enumeration to define Authorization types.
open_error_t openapiAccountingListFirstGet(openapiClientHandle_t *client_handle, OPEN_USER_MGR_ACCT_TYPES_t acctType, open_buffdesc *acctListName)
Get the first Accounting List name.
Command Accounting.
open_error_t openapiUserLevelGet(openapiClientHandle_t *client_handle, open_buffdesc *userName, OPEN_LOGIN_ACCESS_LEVELS_t *level)
Get the access level of a user.
open_error_t openapiAuthorizationListFirstGet(openapiClientHandle_t *client_handle, OPEN_USER_MGR_AUTHOR_TYPES_t type, open_buffdesc *authorListName)
Get the first Authorization List name.
Useful to identify maximum Encryption types.
open_error_t openapiAccountingListLineDelete(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_USER_MGR_ACCT_TYPES_t acctType)
Delete Accounting List from an access line.
open_error_t openapiUserNameSizeGet(openapiClientHandle_t *client_handle, uint32_t *userNameSize)
Get the maximum supported size of username.
open_error_t openapiAuthorizationListNextGet(openapiClientHandle_t *client_handle, OPEN_USER_MGR_AUTHOR_TYPES_t type, open_buffdesc *prevAuthorListName, open_buffdesc *nextAuthorListName)
Get the next Authorization List name.
No Authentication Method.
Line Authentication Method.
open_error_t openapiAccountingMethodsAdd(openapiClientHandle_t *client_handle, OPEN_USER_MGR_ACCT_TYPES_t acctType, open_buffdesc *acctListName, open_buffdesc *acctMethod)
Add methods to Accounting List.
open_error_t openapiAuthenticationMethodListGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LEVEL_t authLevel, open_buffdesc *authListName, open_buffdesc *methodList)
Get the method(s) assigned to Authentication List.
RADIUS Accounting Method.
open_error_t openapiAuthorizationListLineDelete(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_USER_MGR_AUTHOR_TYPES_t type)
Delete Authorization List from an access line.
Authorization method local.
Unknown Access Level.
Read-only Login Access.
open_error_t openapiSessionIDNextValidGet(openapiClientHandle_t *client_handle, OPEN_LOGIN_TYPE_t sessionType, uint32_t *prevSessionID)
Search the next valid ID of SSH session.
Authorization method radius.
open_error_t openapiAuthorizationListNameSizeGet(openapiClientHandle_t *client_handle, uint32_t *authorListNameSize)
Get the maximum and minimum size of Authorization List name.
open_error_t openapiAuthorizationListCreate(openapiClientHandle_t *client_handle, OPEN_USER_MGR_AUTHOR_TYPES_t type, open_buffdesc *authorListName)
Create an Authorization List.
open_error_t openapiAuthenticationListCreate(openapiClientHandle_t *client_handle, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *authListName)
Create an Authentication List.
OPEN_LOGIN_TYPE_t
OpEN Session ID list which use to specify the login type.
open_error_t openapiUserPasswordSizeGet(openapiClientHandle_t *pClientHandle, OPEN_BOOL_t isEncrypPswd, uint32_t *pPasswordMinSize, uint32_t *pPasswordMaxSize)
Get the minimum and maximum password size based on encrypted or un-encrypted password.
open_error_t openapiEnablePasswordRemove(openapiClientHandle_t *client_handle)
Delete enable password.
open_error_t openapiAuthenticationMethodSet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *apl_name, uint32_t order, OPEN_USER_MGR_AUTH_METHOD_t auth_method)
Add an authentication method at the specified index in the APL.
open_error_t openapiAuthorizationListDelete(openapiClientHandle_t *client_handle, OPEN_USER_MGR_AUTHOR_TYPES_t type, open_buffdesc *authorListName)
Delete an Authorization List.
SHA512 Salted Hash Encryption type.
open_error_t
OPEN uses these enumerators to indicate the error codes.
Enable Authentication Method.
open_error_t openapiAuthorizationListLineGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_USER_MGR_AUTHOR_TYPES_t type, open_buffdesc *authorListName)
Get the Authorization List name assigned to an access level.
open_error_t openapiLoginSessionTypeGet(openapiClientHandle_t *client_handle, uint32_t id, OPEN_LOGIN_TYPE_t *type)
Get the login session type.
open_error_t openapiPasswordSizeGet(openapiClientHandle_t *client_handle, uint32_t *passwordMinSize, uint32_t *passwordMaxSize)
Get the minimum and maximum supported sizes of encrypted password.
open_error_t openapiAccountingMethodListGet(openapiClientHandle_t *client_handle, OPEN_USER_MGR_ACCT_TYPES_t acctType, open_buffdesc *acctListName, open_buffdesc *methodList)
Get the method(s) assigned to the Accounting List.
open_error_t openapiEnablePasswordEncryptTypeSet(openapiClientHandle_t *client_handle, open_buffdesc *enablePswd, OPEN_ENCRYPT_TYPE_t encryptType, OPEN_BOOL_t encrypted)
Set enable password and encryption type.
open_error_t openapiAuthenticationListLineGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *authListName)
Get Authentication List assigned to an access line.
open_error_t openapiGlobalMultiFactorAuthGet(openapiClientHandle_t *client_handle, OPEN_BOOL_t *pMfaCnfgEnable)
Get global multifactor authentication state.
RADIUS Authentication Method.
open_error_t openapiUserNextGet(openapiClientHandle_t *client_handle, open_buffdesc *prevUserName, open_buffdesc *nextUserName)
Get next user name.
open_error_t openapiUserMultiFactorAuthStateGet(openapiClientHandle_t *client_handle, open_buffdesc *pUserName, OPEN_BOOL_t *pMfaPwdEnable)
Get user's multifactor authentication state.
open_error_t openapiAuthorizationMethodListGet(openapiClientHandle_t *client_handle, OPEN_USER_MGR_AUTHOR_TYPES_t type, open_buffdesc *authorListName, open_buffdesc *authorMethodList)
Get the method(s) assigned to Authorization List.
OPEN_USER_MGR_ACCT_TYPES_t
OpEN uses this enumeration to define Accounting Types.
open_error_t openapiAuthenticationMethodGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *apl_name, uint32_t order, OPEN_USER_MGR_AUTH_METHOD_t *auth_method)
Returns the authentication method at the specified index in the APL.
Undefined Accounting Type.
open_error_t openapiAccountingMethodsMaxGet(openapiClientHandle_t *client_handle, uint32_t *maxAcctMethods)
Get the maximum Accounting Methods supported.
OPEN_USER_MGR_ACCT_METHOD_t
OpEN uses this enumeration to define Accounting Methods.
open_error_t openapiAccountingListNextGet(openapiClientHandle_t *client_handle, OPEN_USER_MGR_ACCT_TYPES_t acctType, open_buffdesc *prevAcctListName, open_buffdesc *nextAcctListName)
Get the next Accounting List name.
open_error_t openapiUserFirstGet(openapiClientHandle_t *client_handle, open_buffdesc *username)
Get the first user.
open_error_t openapiAuthenticationListDelete(openapiClientHandle_t *client_handle, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *authListName)
Delete an Authentication List.
TACACS Authentication Method.
open_error_t openapiWebSessionLogout(openapiClientHandle_t *client_handle, open_buffdesc *sessionId)
End session for an existing user.
open_error_t openapiGlobalMultiFactorAuthSet(openapiClientHandle_t *client_handle, OPEN_BOOL_t mfaCnfgEnable)
Set global multifactor authentication state.
open_error_t openapiUserEmailIdSet(openapiClientHandle_t *client_handle, open_buffdesc *pUserName, open_buffdesc *pEmailInfo)
Set user's emailId information.
Unknown Authorization type.
open_error_t openapiLoginSessionIdleTimeGet(openapiClientHandle_t *client_handle, uint32_t id, uint32_t *timeVal)
Get the login session idle time.
open_error_t openapiAuthenticationListNameSizeGet(openapiClientHandle_t *client_handle, uint32_t *authListNameSize)
Get the maximum size of Authentication List name.
open_error_t openapiAuthenticationListNameValidate(openapiClientHandle_t *client_handle, open_buffdesc *authListName)
Validate Authentication list name.
open_error_t openapiIsAuthenticationRequiredGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_ACCESS_LEVEL_t accessLevel, OPEN_BOOL_t *authStatus)
Get whether Authentication is required.
Read-write Login Access.
Useful to check maximum Authorization types.
open_error_t openapiMaxUsersSupportedGet(openapiClientHandle_t *client_handle, uint32_t *maxUsers)
Get the maximum number of users supported.
Enable Access Level.
Useful to identify maximum Accounting Methods.
open_error_t openapiAuthenticationListFirstGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LEVEL_t authLevel, open_buffdesc *authListName)
Get the first Authentication List name.
OPEN_BOOL_t
OPEN uses these enumerators to indicate true or false for a given config or status parameter...
Reject Authentication.
OPEN_ACCESS_LINE_t
open_error_t openapiEnablePasswordEncryptTypeGet(openapiClientHandle_t *client_handle, OPEN_ENCRYPT_TYPE_t *encryptType)
Get enable password encryption type.
Useful to identify maximum record types supported.
open_error_t openapiAuthorizationListNameValidate(openapiClientHandle_t *client_handle, open_buffdesc *authorListName)
Validate Authorization list name.
Enum to track maximum Authorization methods.
Useful to identify maximum Accounting types supported.
Authorization method undefined.
Command Authorization.
open_error_t openapiUserLevelSet(openapiClientHandle_t *client_handle, open_buffdesc *userName, OPEN_LOGIN_ACCESS_LEVELS_t level)
Set the access level for an existing user.
Undefined Authentication Method.
open_error_t openapiAuthorizationMethodsAdd(openapiClientHandle_t *client_handle, OPEN_USER_MGR_AUTHOR_TYPES_t type, open_buffdesc *authorListName, open_buffdesc *authorMethod)
Add methods to Authorization List.
open_error_t openapiAccountingListRecordTypeGet(openapiClientHandle_t *client_handle, OPEN_USER_MGR_ACCT_TYPES_t acctType, open_buffdesc *acctListName, OPEN_USER_MGR_RECORD_TYPES_t *recordType)
Get the record type assigned to the Accounting List.
OPEN_ENCRYPT_TYPE_t
OpEN uses this enumeration to define password encryption type.
MD5 Salted Hash Encryption type.
open_error_t openapiAccountingListNameSizeGet(openapiClientHandle_t *client_handle, uint32_t *acctListNameSize)
Get the maximum size of Accounting List name.
Exec Authorization.
open_error_t openapiLoginSessionUserGet(openapiClientHandle_t *client_handle, uint32_t id, open_buffdesc *name)
Get the login session username.
open_error_t openapiSessionLogout(openapiClientHandle_t *client_handle, uint32_t sessionID)
Closes the session by ID.
open_error_t openapiWebSessionUserLogin(openapiClientHandle_t *client_handle, open_buffdesc *userName, open_buffdesc *password, open_buffdesc *logintype, open_buffdesc *inetaddr, uint32_t *accessLevel, open_buffdesc *sessionId)
Create session for an existing user.
Login Access Level.
OPEN_AUTHOR_METHOD_t
OpEN uses this enumeration to define Authorization methods.
open_error_t openapiAuthenticationListNextGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LEVEL_t authLevel, open_buffdesc *prevAuthListName, open_buffdesc *nextAuthListName)
Get the next Authentication List name.
open_error_t openapiAuthenticationMethodsAdd(openapiClientHandle_t *client_handle, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *authListName, open_buffdesc *authMethod)
Add methods to the Authentication list.
open_error_t openapiAccountingListCreate(openapiClientHandle_t *client_handle, OPEN_USER_MGR_ACCT_TYPES_t acctType, OPEN_USER_MGR_RECORD_TYPES_t recordType, open_buffdesc *acctListName)
Create an Accounting List.
No Encryption type.
Authorization method none.
open_error_t openapiUserPasswordEncryptTypeGet(openapiClientHandle_t *client_handle, open_buffdesc *userName, OPEN_ENCRYPT_TYPE_t *encryptType)
Get the password encryption type of a user.
Accounting Methods Undefined.
AES Encryption type.
open_error_t openapiLoginSessionTimeGet(openapiClientHandle_t *client_handle, uint32_t id, uint32_t *timeVal)
Get the login session time.
open_error_t openapiUserDelete(openapiClientHandle_t *client_handle, open_buffdesc *userName)
Delete user.
OPEN_ACCESS_LEVEL_t
OpEN uses this enumeration to define access levels.
open_error_t openapiAuthenticationListLineDelete(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_ACCESS_LEVEL_t accessLevel)
Delete Authentication List from an access line.
open_error_t openapiAccountingListLineGet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_USER_MGR_ACCT_TYPES_t acctType, open_buffdesc *acctListName)
Get the Accounting list assigned to an access line.
open_error_t openapiAccountingListLineSet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_USER_MGR_ACCT_TYPES_t acctType, open_buffdesc *acctListName)
Set Accounting List to an access line.
open_error_t openapiAuthenticationMethodsMaxGet(openapiClientHandle_t *client_handle, uint32_t *maxAuthMethods)
Get the maximum Authentication Methods supported.
OPEN_USER_MGR_AUTH_METHOD_t
OpEN uses this enumeration to define Authentication method types.
OPEN_LOGIN_ACCESS_LEVELS_t
OpEN uses this enumeration to define Login Access Permissions.
open_error_t openapiAccountingListNameValidate(openapiClientHandle_t *client_handle, open_buffdesc *acctListName)
Validate Accounting list name.
open_error_t openapiEnablePasswordSet(openapiClientHandle_t *client_handle, open_buffdesc *enablePswd)
Set enable password.
TACACS Accounting Method.
Local Authentication Method.
open_error_t openapiUserNameValidate(openapiClientHandle_t *client_handle, open_buffdesc *userName)
Validate the username string.
open_error_t openapiLoginSessionRemoteIpAddrGet(openapiClientHandle_t *client_handle, uint32_t id, open_inet_addr_t *addr)
Get the login session remote IP address.
open_error_t openapiAuthenticationListLineSet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_ACCESS_LEVEL_t accessLevel, open_buffdesc *authListName)
Set Authentication List to an access line.
open_error_t openapiWebSessionValidate(openapiClientHandle_t *client_handle, open_buffdesc *sessionId, open_buffdesc *logintype, open_buffdesc *inetaddr, uint32_t *accessLevel)
validate session for an existing user.
open_error_t openapiAccountingListDelete(openapiClientHandle_t *client_handle, OPEN_USER_MGR_ACCT_TYPES_t acctType, open_buffdesc *acctListName)
Delete an Accounting List.
OPEN_USER_MGR_RECORD_TYPES_t
OpEN uses this enumeration to define Accounting Record types.
open_error_t openapiUserPasswordEncryptTypeSet(openapiClientHandle_t *client_handle, open_buffdesc *userName, open_buffdesc *password, OPEN_ENCRYPT_TYPE_t encryptType, OPEN_BOOL_t encrypted)
Set the user name, password and encryption type.
SHA256 Salted Hash Encryption type.
open_error_t openapiAuthorizationMethodsMaxGet(openapiClientHandle_t *client_handle, uint32_t *maxAuthorMethods)
Get maximum Authorization Methods supported.
open_error_t openapiUserMultiFactorAuthStateSet(openapiClientHandle_t *client_handle, open_buffdesc *pUserName, OPEN_BOOL_t mfaPwdEnable)
Set user's multifactor authentication state.
Authorization method TACACS.
open_error_t openapiAuthorizationListLineSet(openapiClientHandle_t *client_handle, OPEN_ACCESS_LINE_t accessLine, OPEN_USER_MGR_AUTHOR_TYPES_t type, open_buffdesc *authorListName)
Set Authorization List to an access line.