fix bug #108; sambaSambaAccount string attributes are case insensitive; don't try...
authorGerald Carter <jerry@samba.org>
Thu, 22 May 2003 17:11:36 +0000 (17:11 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 22 May 2003 17:11:36 +0000 (17:11 +0000)
(This used to be commit 60c6bc9883b4b969626da85af834362ca2bfcd54)

source3/passdb/pdb_ldap.c

index 0989a1b2efbed56c93ed842c834b9bd0084a6076..ef88c09efa5f3d00a81869fce247129cd524afb4 100644 (file)
@@ -1198,8 +1198,11 @@ static void make_ldap_mod(LDAP *ldap_struct, LDAPMessage *existing,
                values = ldap_get_values(ldap_struct, existing, attribute);
        }
 
+       /* all of our string attributes are case insensitive */
+       
        if ((values != NULL) && (values[0] != NULL) &&
-           strcmp(values[0], newval) == 0) {
+           StrCaseCmp(values[0], newval) == 0) 
+       {
                
                /* Believe it or not, but LDAP will deny a delete and
                   an add at the same time if the values are the