From 44090f273c612a9a2131ef49cea553850dbad2ad Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 20 Sep 2004 07:22:00 +0000 Subject: r2431: got rid of strnequal() in a couple of places (This used to be commit a1b5880b2e548832eaf4a136aab1aead525c938f) --- source4/auth/auth_builtin.c | 2 +- source4/libads/ldap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/auth/auth_builtin.c b/source4/auth/auth_builtin.c index d890b0ec72..002f9f7190 100644 --- a/source4/auth/auth_builtin.c +++ b/source4/auth/auth_builtin.c @@ -88,7 +88,7 @@ static NTSTATUS check_name_to_ntstatus_security(const struct auth_context *auth_ long error_num; fstrcpy(user, user_info->smb_name.str); - if (strnequal("NT_STATUS", user, strlen("NT_STATUS"))) { + if (strncasecmp("NT_STATUS", user, strlen("NT_STATUS")) == 0) { strupper_m(user); return nt_status_string_to_code(user); } diff --git a/source4/libads/ldap.c b/source4/libads/ldap.c index 8992cb9dcf..9ada5acd77 100644 --- a/source4/libads/ldap.c +++ b/source4/libads/ldap.c @@ -1653,7 +1653,7 @@ char **ads_pull_strings_range(ADS_STRUCT *ads, attr; attr = ldap_next_attribute(ads->ld, (LDAPMessage *)msg, ptr)) { /* we ignore the fact that this is utf8, as all attributes are ascii... */ - if (strnequal(attr, expected_range_attrib, strlen(expected_range_attrib))) { + if (strncasecmp(attr, expected_range_attrib, strlen(expected_range_attrib)) == 0) { range_attr = attr; break; } -- cgit