mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
improve fix
This commit is contained in:
parent
6868323e17
commit
d508114a9e
1 changed files with 4 additions and 1 deletions
|
|
@ -1181,6 +1181,9 @@ typedef enum slap_access_e {
|
|||
ACL_WRITE,
|
||||
ACL_MANAGE,
|
||||
|
||||
/* always leave at end of levels but not greater than ACL_LEVEL_MASK */
|
||||
ACL_LAST,
|
||||
|
||||
/* ACL level mask and modifiers */
|
||||
ACL_LEVEL_MASK = 0x000f,
|
||||
ACL_QUALIFIER1 = 0x0100,
|
||||
|
|
@ -1299,7 +1302,7 @@ typedef struct slap_access {
|
|||
#define ACL_PRIV_MANAGE ACL_ACCESS2PRIV( ACL_MANAGE )
|
||||
|
||||
/* NOTE: always use the highest level; current: 0x00ffUL */
|
||||
#define ACL_PRIV_MASK (ACL_PRIV_MANAGE | ACL_QUALIFIER_MASK)
|
||||
#define ACL_PRIV_MASK ((ACL_ACCESS2PRIV(ACL_LAST) - 1) | ACL_QUALIFIER_MASK)
|
||||
|
||||
/* priv flags */
|
||||
#define ACL_PRIV_LEVEL 0x1000UL
|
||||
|
|
|
|||
Loading…
Reference in a new issue