Skip to content
Snippets Groups Projects
Commit f9b416ea authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ndn & strcasecmp cleanup

parent ed0ae4ef
No related branches found
No related tags found
No related merge requests found
......@@ -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) >=
......
......@@ -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"
......
......@@ -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 );
}
}
......
......@@ -229,7 +229,7 @@ dn_issuffix(
return( 0 );
}
return( strcasecmp( dn + dnlen - suffixlen, suffix ) == 0 );
return( strcmp( dn + dnlen - suffixlen, suffix ) == 0 );
}
/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment