/* * * Get User Authorization Information ($GETUAI) data identifier definitions */ #ifndef _UAIDEF_H #define _UAIDEF_H #define UAI$_RTYPE 1 /* UAF record type */ #define UAI$_VERSION 2 /* UAF format version */ #define UAI$_USRDATOFF 3 /* offset of counted string of user data */ #define UAI$_USERNAME 4 /* username */ #define UAI$_USERNAME_TAG 5 /* tag to differentiate records */ #define UAI$_UIC 6 /* user ID code */ #define UAI$_MEM 7 /* member subfield */ #define UAI$_GRP 8 /* group subfield */ #define UAI$_SUB_ID 9 /* user sub-identifier */ #define UAI$_PARENT_ID 10 /* identifier of owner of this account */ #define UAI$_ACCOUNT 11 /* account name */ #define UAI$_OWNER 12 /* owner's name */ #define UAI$_DEFDEV 13 /* default device */ #define UAI$_DEFDIR 14 /* default directory */ #define UAI$_LGICMD 15 /* login command file */ #define UAI$_DEFCLI 16 /* default command interpreter */ #define UAI$_CLITABLES 17 /* user CLI tables */ #define UAI$_PWD 18 /* hashed password */ #define UAI$_PWD2 19 /* second password */ #define UAI$_LOGFAILS 20 /* count of login failures */ #define UAI$_SALT 21 /* random password salt */ #define UAI$_ENCRYPT 22 /* primary password hash algorithm */ #define UAI$_ENCRYPT2 23 /* secondary password hash algorithm */ #define UAI$_PWD_LENGTH 24 /* minimum password length */ #define UAI$_EXPIRATION 25 /* expiration date for account */ #define UAI$_PWD_LIFETIME 26 /* password lifetime */ #define UAI$_PWD_DATE 27 /* date of password change */ #define UAI$_PWD2_DATE 28 /* date of 2nd password change */ #define UAI$_LASTLOGIN_I 29 /* date of last interactive login */ #define UAI$_LASTLOGIN_N 30 /* date of last non-interactive login */ #define UAI$_PRIV 31 /* process privilege vector */ #define UAI$_DEF_PRIV 32 /* default process privileges */ #define UAI$_MIN_CLASS 33 /* minimum security class */ #define UAI$_MAX_CLASS 34 /* maximum security class */ #define UAI$_FLAGS 35 /* user flags longword */ #define UAI$_NETWORK_ACCESS_P 36 /* hourly network access, primary */ #define UAI$_NETWORK_ACCESS_S 37 /* hourly network access, secondary */ #define UAI$_BATCH_ACCESS_P 38 /* hourly batch access, primary */ #define UAI$_BATCH_ACCESS_S 39 /* hourly batch access, secondary */ #define UAI$_LOCAL_ACCESS_P 40 /* hourly local access, primary */ #define UAI$_LOCAL_ACCESS_S 41 /* hourly local access, secondary */ #define UAI$_DIALUP_ACCESS_P 42 /* hourly dialup access, primary */ #define UAI$_DIALUP_ACCESS_S 43 /* hourly dialup access, secondary */ #define UAI$_REMOTE_ACCESS_P 44 /* hourly remote access, primary */ #define UAI$_REMOTE_ACCESS_S 45 /* hourly remote access, secondary */ #define UAI$_PRIMEDAYS 46 /* bits representing primary days */ #define UAI$_PRI 47 /* base process priority */ #define UAI$_QUEPRI 48 /* maximum job queuing priority */ #define UAI$_MAXJOBS 49 /* maximum jobs for UIC allowed */ #define UAI$_MAXACCTJOBS 50 /* maximum jobs for account allowed */ #define UAI$_MAXDETACH 51 /* maximum detached processes for UIC */ #define UAI$_PRCCNT 52 /* subprocess creation limit */ #define UAI$_BIOLM 53 /* buffered I/O limit */ #define UAI$_DIOLM 54 /* direct I/O limit */ #define UAI$_TQCNT 55 /* timer queue entry limit */ #define UAI$_ASTLM 56 /* AST queue limit */ #define UAI$_ENQLM 57 /* enqueue limit */ #define UAI$_FILLM 58 /* open file limit */ #define UAI$_SHRFILLM 59 /* shared file limit */ #define UAI$_WSQUOTA 60 /* working set size quota */ #define UAI$_DFWSCNT 61 /* default working set size */ #define UAI$_WSEXTENT 62 /* working set size limit */ #define UAI$_PGFLQUOTA 63 /* page file quota */ #define UAI$_CPUTIM 64 /* CPU time quota */ #define UAI$_BYTLM 65 /* buffered I/O byte count limit */ #define UAI$_PBYTLM 66 /* paged buffer I/O byte count limit */ #define UAI$_JTQUOTA 67 /* job-wide logical name table creation quota */ #define UAI$_PROXY_LIM 68 /* number of proxies user can grant */ #define UAI$_PROXIES 69 /* number of proxies granted */ #define UAI$_ACCOUNT_LIM 70 /* number of sub-accounts allowed */ #define UAI$_ACCOUNTS 71 /* number of sub-accounts in use */ #define UAI$_USER_DATA 72 /* user data area */ #define UAI$_PASSWORD 73 /* plaintext primary password */ #define UAI$_PASSWORD2 74 /* plaintext secondary password */ #ifndef NO_VMS_V6 #define UAI$_DEF_CLASS 75 /* default security classification */ #define UAI$_MAX_ITEM_CODE 76 /* maximum legal item code + 1 */ #define UAI$_DEFCHARGE_CODE 11 /* default charge code (alias for account) */ #else #define UAI$_MAX_ITEM_CODE 75 /* maximum legal item code + 1 */ #endif /* define the various password hash algorithms. */ #define UAI$C_AD_II 0 /* AUTODIN-II 32 bit crc code */ #define UAI$C_PURDY 1 /* Purdy polynomial over salted input */ #define UAI$C_PURDY_V 2 /* Purdy polynomial + variable length username */ #define UAI$C_PURDY_S 3 /* PURDY_V folded into password length */ #ifndef NO_VMS_V6 #define UAI$C_PREFERED_ALGORITHM 127 /* preferred hash algorithm - use current */ #define UAI$C_PREFERRED_ALGORITHM UAI$C_PREFERED_ALGORITHM #else #define UAI$C_PREFERED_ALGORITHM 3 /* prefered hash algorithm (subject to change) */ #endif #define UAI$C_CUST_ALGORITHM 128 /* customer algorithm division */ #define UAI$C_MAX_PWD_LENGTH 32 /* maximum plaintext password */ /* define the flags for the user flags longword. */ #define UAI$V_DISCTLY 0 #define UAI$V_DEFCLI 1 #define UAI$V_LOCKPWD 2 #define UAI$V_RESTRICTED 3 #define UAI$V_DISACNT 4 #define UAI$V_DISWELCOM 5 #define UAI$V_DISMAIL 6 #define UAI$V_NOMAIL 7 #define UAI$V_GENPWD 8 #define UAI$V_PWD_EXPIRED 9 #define UAI$V_PWD2_EXPIRED 10 #define UAI$V_AUDIT 11 #define UAI$V_DISREPORT 12 #define UAI$V_DISRECONNECT 13 #define UAI$V_AUTOLOGIN 14 #define UAI$V_DISFORCE_PWD_CHANGE 15 #define UAI$V_CAPTIVE 16 #define UAI$V_DISIMAGE 17 #define UAI$V_DISPWDDIC 18 #define UAI$V_DISPWDHIS 19 #define UAI$V_DEFCLSVAL 20 #define UAI$M_DISCTLY (1<