From: Kurt Zeilenga Date: Thu, 21 Oct 1999 18:27:23 +0000 (+0000) Subject: Fix parsing of descrete attributes. X-Git-Tag: UCDATA_2_4~333 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c5b7aa29dde252610c543dc9ae4eb837dc2dc6a;p=thirdparty%2Fopenldap.git Fix parsing of descrete attributes. --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 5b9363714c..362583dbb9 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -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 {