1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

fix bug #108; sambaSambaAccount string attributes are case insensitive; don't try to change a string that only differs in case

This commit is contained in:
Gerald Carter -
parent bf20976e5a
commit 01ef083520

View 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