From 901346ef4dca98791bb9ff0c5a9ec53cd0fa3e63 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 22 May 2003 17:11:36 +0000 Subject: 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) --- source3/passdb/pdb_ldap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3') 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 -- cgit