]> git.sur5r.net Git - openldap/commitdiff
ndn & strcasecmp cleanup
authorKurt Zeilenga <kurt@openldap.org>
Wed, 20 Jan 1999 03:05:35 +0000 (03:05 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 20 Jan 1999 03:05:35 +0000 (03:05 +0000)
servers/slapd/acl.c
servers/slapd/back-ldbm/cache.c
servers/slapd/backend.c
servers/slapd/dn.c

index dc424912891613c96deb1c022ad78a880b10f402..255cf8954586d524e3ce090cd5babfaf48773b73 100644 (file)
@@ -267,7 +267,7 @@ acl_access_allowed(
                        if ( strcasecmp( b->a_dnpat, "self" ) == 0 && 
                                op->o_ndn != NULL && *(op->o_ndn) && e->e_dn != NULL ) 
                        {
-                               if ( strcasecmp( edn, op->o_ndn ) == 0 ) {
+                               if ( strcmp( edn, op->o_ndn ) == 0 ) {
                                        Debug( LDAP_DEBUG_ACL,
                                        "<= acl_access_allowed: matched by clause #%d access %s\n",
                                            i, (b->a_access & ~ACL_SELF) >=
index f83ea50c5402bb74edf4059853c7289f4e35de58..a9c31cc3eb68bff427e6c6193ef39255228d6610 100644 (file)
@@ -3,9 +3,10 @@
 #include "portable.h"
 
 #include <stdio.h>
-int strcasecmp( const char *, const char *);
 
+#include <ac/string.h>
 #include <ac/socket.h>
+
 #include "slap.h"
 
 #include "back-ldbm.h"
index cf485cd0e7879189663e8543776f2b284d2eae26..7d715fe40d200047cd8cf5797af179aac3aa7ed1 100644 (file)
@@ -161,7 +161,7 @@ select_backend( char * dn )
                                continue;
                        }
 
-                       if ( strcasecmp( backends[i].be_suffix[j],
+                       if ( strcmp( backends[i].be_suffix[j],
                            dn + (dnlen - len) ) == 0 ) {
                                return( &backends[i] );
                        }
@@ -181,7 +181,7 @@ select_backend( char * dn )
                                 continue;
                         }
 
-                        if ( strcasecmp( backends[i].be_suffixAlias[j],
+                        if ( strcmp( backends[i].be_suffixAlias[j],
                             dn + (dnlen - len) ) == 0 ) {
                                 return( &backends[i] );
                         }
@@ -214,7 +214,7 @@ be_issuffix(
        int     i;
 
        for ( i = 0; be->be_suffix != NULL && be->be_suffix[i] != NULL; i++ ) {
-               if ( strcasecmp( be->be_suffix[i], suffix ) == 0 ) {
+               if ( strcmp( be->be_suffix[i], suffix ) == 0 ) {
                        return( 1 );
                }
        }
index 52ea2fecd911bac1cfd18c3fc19d5c0f2d575188..ec57f75ec7bd1342048d643c50932aa221cfb31a 100644 (file)
@@ -229,7 +229,7 @@ dn_issuffix(
                return( 0 );
        }
 
-       return( strcasecmp( dn + dnlen - suffixlen, suffix ) == 0 );
+       return( strcmp( dn + dnlen - suffixlen, suffix ) == 0 );
 }
 
 /*