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
pdb_set_domain(sampass, domain, PDB_DEFAULT);
pdb_set_nt_username(sampass, nt_username, PDB_SET);
-
+
/* deal with different attributes between the schema first */
if ( ldap_state->schema_ver == SCHEMAVER_SAMBASAMACCOUNT )