summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-05-22 17:11:36 +0000
committerGerald Carter <jerry@samba.org>2003-05-22 17:11:36 +0000
commit901346ef4dca98791bb9ff0c5a9ec53cd0fa3e63 (patch)
tree9ba5168d4d11164ad7613065c24c910a4023e766
parentb176d4a4e515bde5e75f9ffe5bb239d910f90b92 (diff)
downloadsamba-901346ef4dca98791bb9ff0c5a9ec53cd0fa3e63.tar.gz
samba-901346ef4dca98791bb9ff0c5a9ec53cd0fa3e63.tar.bz2
samba-901346ef4dca98791bb9ff0c5a9ec53cd0fa3e63.zip
fix bug #108; sambaSambaAccount string attributes are case insensitive; don't try to change a string that only differs in case
(This used to be commit 60c6bc9883b4b969626da85af834362ca2bfcd54)
-rw-r--r--source3/passdb/pdb_ldap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 0989a1b2ef..ef88c09efa 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -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