summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-29 17:05:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:07 -0500
commit5e924c39621eacea14be01208a7eec58a0d1681a (patch)
tree4ce0592ef3beef4a00c454c95f8315f032b509b6 /source3
parentb85c276e95208f16d089402e7c43c8ff3fe39b3f (diff)
downloadsamba-5e924c39621eacea14be01208a7eec58a0d1681a.tar.gz
samba-5e924c39621eacea14be01208a7eec58a0d1681a.tar.bz2
samba-5e924c39621eacea14be01208a7eec58a0d1681a.zip
r16681: Fix bug #3899 reported by jason@ncac.gwu.edu.
Jeremy. (This used to be commit 1cd9a0ef834f8062500d1aea6183e147fc5e42f4)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_ldap.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c
index 2b1893e4c0..839822843b 100644
--- a/source3/passdb/pdb_ldap.c
+++ b/source3/passdb/pdb_ldap.c
@@ -3448,8 +3448,6 @@ static NTSTATUS ldapsam_set_account_policy_in_ldap(struct pdb_methods *methods,
struct ldapsam_privates *ldap_state =
(struct ldapsam_privates *)methods->private_data;
- const char *attrs[2];
-
DEBUG(10,("ldapsam_set_account_policy_in_ldap\n"));
if (!ldap_state->domain_dn) {
@@ -3463,9 +3461,6 @@ static NTSTATUS ldapsam_set_account_policy_in_ldap(struct pdb_methods *methods,
return ntstatus;
}
- attrs[0] = policy_attr;
- attrs[1] = NULL;
-
slprintf(value_string, sizeof(value_string) - 1, "%i", value);
smbldap_set_mod(&mods, LDAP_MOD_REPLACE, policy_attr, value_string);