diff options
-rw-r--r-- | source4/libcli/auth/kerberos_verify.c | 2 | ||||
-rw-r--r-- | source4/libcli/ldap/ldap.c | 2 |
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; } |