From 9c5b7aa29dde252610c543dc9ae4eb837dc2dc6a Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 21 Oct 1999 18:27:23 +0000 Subject: [PATCH] Fix parsing of descrete attributes. --- servers/slapd/aclparse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 { -- 2.39.5