mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
ndn & strcasecmp cleanup
This commit is contained in:
parent
ed0ae4ef14
commit
f9b416ea7c
4 changed files with 7 additions and 6 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue