Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.4.4.5
openapi_user_manager.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2018 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 
136 #define OPEN_LOGIN_SIZE 65
138 /*****************************************************************/
164 open_error_t openapiUserSet(openapiClientHandle_t *client_handle,
165  open_buffdesc *userName,
166  open_buffdesc *password);
167 
168 /*****************************************************************/
186  open_buffdesc *username);
187 
188 /*****************************************************************/
208  open_buffdesc *prevUserName,
209  open_buffdesc *nextUserName);
210 
211 /*****************************************************************/
229  OPEN_LOGIN_TYPE_t sessionType,
230  uint32_t *prevSessionID);
231 
232 /*****************************************************************/
247  uint32_t sessionID);
248 
249 /*****************************************************************/
264  uint32_t *maxUsers);
265 
266 /*****************************************************************/
289  open_buffdesc *userName,
291 
292 /*****************************************************************/
313  open_buffdesc *userName,
315 
316 /*****************************************************************/
330  uint32_t *userNameSize);
331 
332 /*****************************************************************/
351  open_buffdesc *userName);
352 
353 /*****************************************************************/
369  uint32_t *passwordMinSize,
370  uint32_t *passwordMaxSize);
371 
372 /*****************************************************************/
394  open_buffdesc *userName);
395 
396 /*****************************************************************/
420  OPEN_ACCESS_LEVEL_t accessLevel,
421  open_buffdesc *authListName);
422 
423 /*****************************************************************/
458  OPEN_ACCESS_LEVEL_t accessLevel,
459  open_buffdesc *authListName,
460  open_buffdesc *authMethod);
461 
462 /*****************************************************************/
486  OPEN_ACCESS_LEVEL_t authLevel,
487  open_buffdesc *authListName,
488  open_buffdesc *methodList);
489 
490 /*****************************************************************/
509  OPEN_ACCESS_LEVEL_t authLevel,
510  open_buffdesc *authListName);
511 
512 /*****************************************************************/
533  OPEN_ACCESS_LEVEL_t authLevel,
534  open_buffdesc *prevAuthListName,
535  open_buffdesc *nextAuthListName);
536 /*****************************************************************/
558  OPEN_ACCESS_LEVEL_t accessLevel,
559  open_buffdesc *authListName);
560 
561 /*****************************************************************/
585  OPEN_ACCESS_LINE_t accessLine,
586  OPEN_ACCESS_LEVEL_t accessLevel,
587  open_buffdesc *authListName);
588 
589 /*****************************************************************/
609  OPEN_ACCESS_LINE_t accessLine,
610  OPEN_ACCESS_LEVEL_t accessLevel,
611  open_buffdesc *authListName);
612 
613 /*****************************************************************/
632  OPEN_ACCESS_LINE_t accessLine,
633  OPEN_ACCESS_LEVEL_t accessLevel);
634 
635 /*****************************************************************/
652  uint32_t *authListNameSize);
653 
654 /*****************************************************************/
673  uint32_t *maxAuthMethods);
674 
675 
676 /*****************************************************************/
695  open_buffdesc *authListName);
696 
697 /*****************************************************************/
716  open_buffdesc *acctListName);
717 
718 /*****************************************************************/
737  open_buffdesc *authorListName);
738 
739 /*****************************************************************/
763  open_buffdesc *authorListName);
764 
765 /*****************************************************************/
796  open_buffdesc *authorListName,
797  open_buffdesc *authorMethod);
798 
799 /*****************************************************************/
816  uint32_t *authorListNameSize);
817 
818 /*****************************************************************/
836  uint32_t *maxAuthorMethods);
837 
838 /*****************************************************************/
862  open_buffdesc *authorListName);
863 
864 /*****************************************************************/
885  open_buffdesc *authorListName);
886 
887 /*****************************************************************/
912  open_buffdesc *prevAuthorListName,
913  open_buffdesc *nextAuthorListName);
914 
915 /*****************************************************************/
941  open_buffdesc *authorListName,
942  open_buffdesc *authorMethodList);
943 
944 /*****************************************************************/
964  OPEN_ACCESS_LINE_t accessLine,
966  open_buffdesc *authorListName);
967 
968 /*****************************************************************/
988  OPEN_ACCESS_LINE_t accessLine,
990  open_buffdesc *authorListName);
991 
992 /*****************************************************************/
1012  OPEN_ACCESS_LINE_t accessLine,
1014 
1015 /*****************************************************************/
1039  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1040  OPEN_USER_MGR_RECORD_TYPES_t recordType,
1041  open_buffdesc *acctListName);
1042 
1043 /*****************************************************************/
1074  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1075  open_buffdesc *acctListName,
1076  open_buffdesc *acctMethod);
1077 
1078 /*****************************************************************/
1100  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1101  open_buffdesc *acctListName,
1102  open_buffdesc *methodList);
1103 
1104 /*****************************************************************/
1124  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1125  open_buffdesc *acctListName,
1126  OPEN_USER_MGR_RECORD_TYPES_t *recordType);
1127 
1128 /*****************************************************************/
1146  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1147  open_buffdesc *acctListName);
1148 
1149 /*****************************************************************/
1172  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1173  open_buffdesc *prevAcctListName,
1174  open_buffdesc *nextAcctListName);
1175 
1176 /*****************************************************************/
1200  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1201  open_buffdesc *acctListName);
1202 
1203 /*****************************************************************/
1223  OPEN_ACCESS_LINE_t accessLine,
1224  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1225  open_buffdesc *acctListName);
1226 
1227 /*****************************************************************/
1246  OPEN_ACCESS_LINE_t accessLine,
1247  OPEN_USER_MGR_ACCT_TYPES_t acctType,
1248  open_buffdesc *acctListName);
1249 
1250 /*****************************************************************/
1267  OPEN_ACCESS_LINE_t accessLine,
1268  OPEN_USER_MGR_ACCT_TYPES_t acctType);
1269 
1270 /*****************************************************************/
1287  uint32_t *maxAcctMethods);
1288 
1289 /*****************************************************************/
1305  uint32_t *acctListNameSize);
1306 
1307 /*****************************************************************/
1326  open_buffdesc *enablePswd);
1327 
1328 /*****************************************************************/
1344 
1345 /*****************************************************************/
1371  open_buffdesc *userName,
1372  open_buffdesc *password,
1373  OPEN_LOGIN_ACCESS_LEVELS_t *accessLevel);
1374 
1375 /*****************************************************************/
1400  open_buffdesc *userName,
1401  open_buffdesc *password,
1402  open_buffdesc *logintype,
1403  open_buffdesc *inetaddr,
1404  uint32_t *accessLevel,
1405  open_buffdesc *sessionId);
1406 
1407 
1408 /************************************************************************/
1425  open_buffdesc *sessionId,
1426  open_buffdesc *logintype,
1427  open_buffdesc *inetaddr,
1428  uint32_t *accessLevel);
1429 
1430 /************************************************************************/
1444  open_buffdesc *sessionId);
1445 
1446 /*****************************************************************/
1465  OPEN_ACCESS_LINE_t accessLine,
1466  OPEN_ACCESS_LEVEL_t accessLevel,
1467  OPEN_BOOL_t *authStatus);
1468 
1469 /*****************************************************************/
1486  open_buffdesc *userName,
1487  open_buffdesc *userPassword);
1488 
1489 /*****************************************************************/
1507  uint32_t id,
1508  open_buffdesc *name);
1509 
1510 /*****************************************************************/
1526  uint32_t id,
1527  open_inet_addr_t *addr);
1528 
1529 /*****************************************************************/
1545  uint32_t id,
1546  uint32_t *timeVal);
1547 
1548 /*****************************************************************/
1564  uint32_t id,
1565  uint32_t *timeVal);
1566 
1567 /*****************************************************************/
1583  uint32_t id,
1584  OPEN_LOGIN_TYPE_t *type);
1585 
1586 #endif
1587