1 1.1 christos /* $NetBSD: ldap_rbac.h,v 1.2 2021/08/14 16:14:53 christos Exp $ */ 2 1.1 christos 3 1.1 christos #ifndef LDAP_RBAC_H 4 1.1 christos #define LDAP_RBAC_H 5 1.1 christos 6 1.1 christos /* extended operations for RBAC */ 7 1.1 christos #define LDAP_RBAC_EXOP_CREATE_SESSION "1.3.6.1.4.1.4203.555.1" /* RFC xxxx */ 8 1.1 christos #define LDAP_RBAC_EXOP_CHECK_ACCESS "1.3.6.1.4.1.4203.555.2" 9 1.1 christos #define LDAP_RBAC_EXOP_ADD_ACTIVE_ROLE "1.3.6.1.4.1.4203.555.3" 10 1.1 christos #define LDAP_RBAC_EXOP_DROP_ACTIVE_ROLE "1.3.6.1.4.1.4203.555.4" 11 1.1 christos #define LDAP_RBAC_EXOP_DELETE_SESSION "1.3.6.1.4.1.4203.555.5" 12 1.1 christos #define LDAP_RBAC_EXOP_SESSION_ROLES "1.3.6.1.4.1.4203.555.6" 13 1.1 christos #define LDAP_RBAC_EXOP_SESSION_PERMISSIONS "1.3.6.1.4.1.4203.555.7" 14 1.1 christos 15 1.1 christos #define LDAP_TAG_EXOP_RBAC_SESSION_ID ((ber_tag_t)0x80U) 16 1.1 christos #define LDAP_TAG_EXOP_RBAC_TENANT_ID ((ber_tag_t)0x81U) 17 1.1 christos #define LDAP_TAG_EXOP_RBAC_USER_ID ((ber_tag_t)0x82U) 18 1.1 christos #define LDAP_TAG_EXOP_RBAC_USER ((ber_tag_t)0x80U) 19 1.1 christos #define LDAP_TAG_EXOP_RBAC_AUTHTOK ((ber_tag_t)0x83U) 20 1.1 christos #define LDAP_TAG_EXOP_RBAC_ACTIVE_ROLE ((ber_tag_t)0xA4U) 21 1.1 christos #define LDAP_TAG_EXOP_RBAC_OPNAME ((ber_tag_t)0x81U) 22 1.1 christos #define LDAP_TAG_EXOP_RBAC_OBJNAME ((ber_tag_t)0x82U) 23 1.1 christos #define LDAP_TAG_EXOP_RBAC_OBJID ((ber_tag_t)0x83U) 24 1.1 christos #define LDAP_TAG_EXOP_RBAC_PWPOLICY_STATE ((ber_tag_t)0x85U) 25 1.1 christos #define LDAP_TAG_EXOP_RBAC_PWPOLICY_VALUE ((ber_tag_t)0x86U) 26 1.1 christos #define LDAP_TAG_EXOP_RBAC_ROLES ((ber_tag_t)0x04U) 27 1.1 christos 28 1.1 christos #define LDAP_TAG_EXOP_RBAC_USER_ID_SESS ((ber_tag_t)0x80U) 29 1.1 christos #define LDAP_TAG_EXOP_RBAC_SESSION_ID_SESS ((ber_tag_t)0x81U) 30 1.1 christos #define LDAP_TAG_EXOP_RBAC_ROLE_NM_SESS ((ber_tag_t)0x82U) 31 1.1 christos 32 1.1 christos #define RBAC_REQ_CREATE_SESSION 0 33 1.1 christos #define RBAC_REQ_CHECK_ACCESS 1 34 1.1 christos #define RBAC_REQ_ADD_ACTIVE_ROLE 2 35 1.1 christos #define RBAC_REQ_DROP_ACTIVE_ROLE 3 36 1.1 christos #define RBAC_REQ_DELETE_SESSION 4 37 1.1 christos #define RBAC_REQ_SESSION_PERMISSIONS 5 38 1.1 christos #define RBAC_REQ_SESSION_ROLES 6 39 1.1 christos 40 1.1 christos /* defines for password policy */ 41 1.1 christos #define RBAC_BIND_NEW_AUTHTOK_REQD 1 42 1.1 christos 43 1.1 christos #define RBAC_PASSWORD_GOOD 0 44 1.1 christos #define RBAC_PASSWORD_EXPIRATION_WARNING 11 45 1.1 christos #define RBAC_PASSWORD_GRACE_WARNING 12 46 1.1 christos #define RBAC_PASSWORD_HAS_EXPIRED 100 47 1.1 christos #define RBAC_ACCOUNT_LOCKED 101 48 1.1 christos #define RBAC_CHANGE_AFTER_RESET 102 49 1.1 christos #define RBAC_NO_MODIFICATIONS 103 50 1.1 christos #define RBAC_MUST_SUPPLY_OLD 104 51 1.1 christos #define RBAC_INSUFFICIENT_QUALITY 105 52 1.1 christos #define RBAC_PASSWORD_TOO_SHORT 106 53 1.1 christos #define RBAC_PASSWORD_TOO_YOUNG 107 54 1.1 christos #define RBAC_HISTORY_VIOLATION 108 55 1.1 christos #define RBAC_ACCOUNT_LOCKED_CONSTRAINTS 109 56 1.1 christos 57 1.1 christos #endif /* LDAP_RBAC_H */ 58