git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b176d4a
)
fix bug #108; sambaSambaAccount string attributes are case insensitive; don't try...
author
Gerald Carter
<jerry@samba.org>
Thu, 22 May 2003 17:11:36 +0000
(17:11 +0000)
committer
Gerald 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
patch
|
blob
|
history
diff --git
a/source3/passdb/pdb_ldap.c
b/source3/passdb/pdb_ldap.c
index 0989a1b2efbed56c93ed842c834b9bd0084a6076..ef88c09efa5f3d00a81869fce247129cd524afb4 100644
(file)
--- 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