1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r16681: Fix bug #3899 reported by jason@ncac.gwu.edu.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-06-29 17:05:18 +00:00 committed by Gerald (Jerry) Carter
parent 5c5ea3152f
commit 1cd9a0ef83

View File

@ -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);