Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.9.0.2
openapi_user_manager.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2021 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 /*****************************************************************/
176 open_error_t openapiUserSet(openapiClientHandle_t *client_handle,
177  open_buffdesc *userName,
178  open_buffdesc *password);
179 
180 /*****************************************************************/
198  open_buffdesc *username);
199 
200 /*****************************************************************/
220  open_buffdesc *prevUserName,
221  open_buffdesc *nextUserName);
222 
223 /*****************************************************************/
241  OPEN_LOGIN_TYPE_t sessionType,
242  uint32_t *prevSessionID);
243 
244 /*****************************************************************/
259  uint32_t sessionID);
260 
261 /*****************************************************************/
276  uint32_t *maxUsers);
277 
278 /*****************************************************************/
301  open_buffdesc *userName,
303 
304 /*****************************************************************/
325  open_buffdesc *userName,
327 
328 /*****************************************************************/
342  uint32_t *userNameSize);
343 
344 /*****************************************************************/
363  open_buffdesc *userName);
364 
365 /*****************************************************************/
381  uint32_t *passwordMinSize,
382  uint32_t *passwordMaxSize);
383 
384 /*****************************************************************/
406  open_buffdesc *userName);
407 
408 /*****************************************************************/
432  OPEN_ACCESS_LEVEL_t accessLevel,
433  open_buffdesc *authListName);
434 
435 /*****************************************************************/
470  OPEN_ACCESS_LEVEL_t accessLevel,
471  open_buffdesc *authListName,
472  open_buffdesc *authMethod);
473 
474 /*****************************************************************/
498  OPEN_ACCESS_LEVEL_t authLevel,
499  open_buffdesc *authListName,
500  open_buffdesc *methodList);
501 
502 /*****************************************************************/
521  OPEN_ACCESS_LEVEL_t authLevel,
522  open_buffdesc *authListName);
523 
524 /*****************************************************************/
545  OPEN_ACCESS_LEVEL_t authLevel,
546  open_buffdesc *prevAuthListName,
547  open_buffdesc *nextAuthListName);
548 /*****************************************************************/
570  OPEN_ACCESS_LEVEL_t accessLevel,
571  open_buffdesc *authListName);
572 
573 /*****************************************************************/
597  OPEN_ACCESS_LINE_t accessLine,
598  OPEN_ACCESS_LEVEL_t accessLevel,
599  open_buffdesc *authListName);
600 
601 /*****************************************************************/
621  OPEN_ACCESS_LINE_t accessLine,
622  OPEN_ACCESS_LEVEL_t accessLevel,
623  open_buffdesc *authListName);
624 
625 /*****************************************************************/
644  OPEN_ACCESS_LINE_t accessLine,
645  OPEN_ACCESS_LEVEL_t accessLevel);
646 
647 /*****************************************************************/
664  uint32_t *authListNameSize);
665 
666 /*****************************************************************/
685  uint32_t *maxAuthMethods);
686 
687 
688 /*****************************************************************/
707  open_buffdesc *authListName);
708 
709 /*****************************************************************/
728  open_buffdesc *acctListName);
729 
730 /*****************************************************************/
749  open_buffdesc *authorListName);
750 
751 /*****************************************************************/
775  open_buffdesc *authorListName);
776 
777 /*****************************************************************/
808  open_buffdesc *authorListName,
809  open_buffdesc *authorMethod);
810 
811 /*****************************************************************/
828  uint32_t *authorListNameSize);
829 
830 /*****************************************************************/
848  uint32_t *maxAuthorMethods);
849 
850 /*****************************************************************/
874  open_buffdesc *authorListName);
875 
876 /*****************************************************************/
897  open_buffdesc *authorListName);
898 
899 /*****************************************************************/
924  open_buffdesc *prevAuthorListName,
925  open_buffdesc *nextAuthorListName);
926 
927 /*****************************************************************/
953  open_buffdesc *authorListName,
954  open_buffdesc *authorMethodList);
955 
956 /*****************************************************************/
976  OPEN_ACCESS_LINE_t accessLine,
978  open_buffdesc *authorListName);
979 
980 /*****************************************************************/
1000  OPEN_ACCESS_LINE_t accessLine,
1002  open_buffdesc *authorListName);
1003 
1004 /*****************************************************************/
1024  OPEN_ACCESS_LINE_t accessLine,
1026 
1027 /*****************************************************************/
1051  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1052  OPEN_USER_MGR_RECORD_TYPES_t recordType,
1053  open_buffdesc *acctListName);
1054 
1055 /*****************************************************************/
1086  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1087  open_buffdesc *acctListName,
1088  open_buffdesc *acctMethod);
1089 
1090 /*****************************************************************/
1112  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1113  open_buffdesc *acctListName,
1114  open_buffdesc *methodList);
1115 
1116 /*****************************************************************/
1136  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1137  open_buffdesc *acctListName,
1138  OPEN_USER_MGR_RECORD_TYPES_t *recordType);
1139 
1140 /*****************************************************************/
1158  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1159  open_buffdesc *acctListName);
1160 
1161 /*****************************************************************/
1184  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1185  open_buffdesc *prevAcctListName,
1186  open_buffdesc *nextAcctListName);
1187 
1188 /*****************************************************************/
1212  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1213  open_buffdesc *acctListName);
1214 
1215 /*****************************************************************/
1235  OPEN_ACCESS_LINE_t accessLine,
1236  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1237  open_buffdesc *acctListName);
1238 
1239 /*****************************************************************/
1258  OPEN_ACCESS_LINE_t accessLine,
1259  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1260  open_buffdesc *acctListName);
1261 
1262 /*****************************************************************/
1279  OPEN_ACCESS_LINE_t accessLine,
1280  OPEN_USER_MGR_ACCT_TYPES_t acctType);
1281 
1282 /*****************************************************************/
1299  uint32_t *maxAcctMethods);
1300 
1301 /*****************************************************************/
1317  uint32_t *acctListNameSize);
1318 
1319 /*****************************************************************/
1338  open_buffdesc *enablePswd);
1339 
1340 /*****************************************************************/
1356 
1357 /*****************************************************************/
1383  open_buffdesc *userName,
1384  open_buffdesc *password,
1385  OPEN_LOGIN_ACCESS_LEVELS_t *accessLevel);
1386 
1387 /*****************************************************************/
1412  open_buffdesc *userName,
1413  open_buffdesc *password,
1414  open_buffdesc *logintype,
1415  open_buffdesc *inetaddr,
1416  uint32_t *accessLevel,
1417  open_buffdesc *sessionId);
1418 
1419 
1420 /************************************************************************/
1437  open_buffdesc *sessionId,
1438  open_buffdesc *logintype,
1439  open_buffdesc *inetaddr,
1440  uint32_t *accessLevel);
1441 
1442 /************************************************************************/
1456  open_buffdesc *sessionId);
1457 
1458 /*****************************************************************/
1477  OPEN_ACCESS_LINE_t accessLine,
1478  OPEN_ACCESS_LEVEL_t accessLevel,
1479  OPEN_BOOL_t *authStatus);
1480 
1481 /*****************************************************************/
1498  open_buffdesc *userName,
1499  open_buffdesc *userPassword);
1500 
1501 /*****************************************************************/
1519  uint32_t id,
1520  open_buffdesc *name);
1521 
1522 /*****************************************************************/
1538  uint32_t id,
1539  open_inet_addr_t *addr);
1540 
1541 /*****************************************************************/
1557  uint32_t id,
1558  uint32_t *timeVal);
1559 
1560 /*****************************************************************/
1576  uint32_t id,
1577  uint32_t *timeVal);
1578 
1579 /*****************************************************************/
1595  uint32_t id,
1596  OPEN_LOGIN_TYPE_t *type);
1597 
1598 /*****************************************************************/
1628  open_buffdesc *userName,
1629  open_buffdesc *password,
1630  OPEN_ENCRYPT_TYPE_t encryptType,
1631  OPEN_BOOL_t encrypted);
1632 
1633 /*****************************************************************/
1654  open_buffdesc *userName,
1655  OPEN_ENCRYPT_TYPE_t *encryptType);
1656 
1657 /*****************************************************************/
1678  open_buffdesc *enablePswd,
1679  OPEN_ENCRYPT_TYPE_t encryptType,
1680  OPEN_BOOL_t encrypted);
1681 
1682 /*****************************************************************/
1698  OPEN_ENCRYPT_TYPE_t *encryptType);
1699 
1700 #endif
1701