mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
Fix parsing of descrete attributes.
This commit is contained in:
parent
f6829ee903
commit
9c5b7aa29d
1 changed files with 4 additions and 4 deletions
|
|
@ -576,16 +576,16 @@ str2accessmask( const char *str )
|
|||
if( TOLOWER(str[i]) == 'w' ) {
|
||||
ACL_PRIV_SET(mask, ACL_PRIV_WRITE);
|
||||
|
||||
} else if( TOLOWER(str[0]) == 'r' ) {
|
||||
} else if( TOLOWER(str[i]) == 'r' ) {
|
||||
ACL_PRIV_SET(mask, ACL_PRIV_READ);
|
||||
|
||||
} else if( TOLOWER(str[0]) == 's' ) {
|
||||
} else if( TOLOWER(str[i]) == 's' ) {
|
||||
ACL_PRIV_SET(mask, ACL_PRIV_SEARCH);
|
||||
|
||||
} else if( TOLOWER(str[0]) == 'c' ) {
|
||||
} else if( TOLOWER(str[i]) == 'c' ) {
|
||||
ACL_PRIV_SET(mask, ACL_PRIV_COMPARE);
|
||||
|
||||
} else if( TOLOWER(str[0]) == 'x' ) {
|
||||
} else if( TOLOWER(str[i]) == 'x' ) {
|
||||
ACL_PRIV_SET(mask, ACL_PRIV_AUTH);
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue