summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-20 07:24:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:52 -0500
commitdefe32e9f47d9eca44533056b652f3b1c3f56c8e (patch)
tree9282f8d424a4caa586837b797fe066192e8f2fc9
parent44090f273c612a9a2131ef49cea553850dbad2ad (diff)
downloadsamba-defe32e9f47d9eca44533056b652f3b1c3f56c8e.tar.gz
samba-defe32e9f47d9eca44533056b652f3b1c3f56c8e.tar.bz2
samba-defe32e9f47d9eca44533056b652f3b1c3f56c8e.zip
r2432: more string function updates.
btw, the reason I want to use strncasecmp() instead of StrnCaseCmp() is that the Samba internal functions are built to deal with multi-byte, whereas in the cases I am converting we know we are dealing with solely ascii string constants, so going via the slow conversion libraries is pointless. (This used to be commit cef08d5789277bdaa25d5bf0e7cfca8615230f1b)
-rw-r--r--source4/libcli/auth/kerberos_verify.c2
-rw-r--r--source4/libcli/ldap/ldap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/auth/kerberos_verify.c b/source4/libcli/auth/kerberos_verify.c
index 843189c884..9afc4caacc 100644
--- a/source4/libcli/auth/kerberos_verify.c
+++ b/source4/libcli/auth/kerberos_verify.c
@@ -98,7 +98,7 @@ static BOOL ads_keytab_verify_ticket(krb5_context context, krb5_auth_context aut
goto out;
}
/* Look for a CIFS ticket */
- if (!StrnCaseCmp(princ_name, "cifs/", 5) || (!StrnCaseCmp(princ_name, "host/", 5))) {
+ if (!strncasecmp(princ_name, "cifs/", 5) || (!strncasecmp(princ_name, "host/", 5))) {
#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK
krb5_auth_con_setuseruserkey(context, auth_context, &kt_entry.keyblock);
#else
diff --git a/source4/libcli/ldap/ldap.c b/source4/libcli/ldap/ldap.c
index 7af9ca42c5..72e8f605dc 100644
--- a/source4/libcli/ldap/ldap.c
+++ b/source4/libcli/ldap/ldap.c
@@ -1121,7 +1121,7 @@ BOOL ldap_parse_basic_url(TALLOC_CTX *mem_ctx, const char *url,
const char *p = url;
/* skip leading "URL:" (if any) */
- if ( strnequal( p, "URL:", 4 ) ) {
+ if (strncasecmp( p, "URL:", 4) == 0) {
p += 4;
}