Browse Source

Bug: 179810
Description: crash: modify/delete when attr name doesn't match database
Reviewed by: All (Thanks!)
Fix description: Use case insensitive comparison for attribute names.

Rich Megginson 20 years ago
parent
commit
4f2a6163a6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/slapd/attr.c

+ 1 - 1
ldap/servers/slapd/attr.c

@@ -112,7 +112,7 @@ slapi_attr_type_cmp( const char *a1, const char *a2, int opt )
 
 
     switch ( opt ) {
     switch ( opt ) {
     case SLAPI_TYPE_CMP_EXACT: /* compare base name + options as given */
     case SLAPI_TYPE_CMP_EXACT: /* compare base name + options as given */
-        rc = strcmp( a1, a2 );
+        rc = strcasecmp( a1, a2 );
 		break;
 		break;
 
 
     case SLAPI_TYPE_CMP_BASE: /* ignore options on both names - compare base names only */
     case SLAPI_TYPE_CMP_BASE: /* ignore options on both names - compare base names only */