summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-12-04 05:16:54 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-12-04 05:16:54 +0000
commita2fbc74f74c8c393129ef8b0b02693a4887107f7 (patch)
tree36661915ea3a775c0f1c665881f7f9aa78921a02 /source3/utils
parent6f0e7b69b72738214bf6657bcfbe941415da533b (diff)
downloadsamba-a2fbc74f74c8c393129ef8b0b02693a4887107f7.tar.gz
samba-a2fbc74f74c8c393129ef8b0b02693a4887107f7.tar.bz2
samba-a2fbc74f74c8c393129ef8b0b02693a4887107f7.zip
smbpasswd is *ugly*!
However this looks like the best spot to init the account policy db... (fix segfaults on all local smbpasswd ops) Andrew Bartlett (This used to be commit 3f3bb62ba63373c3cdf2495f97c7461ed5b373ef)
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbpasswd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c
index 92136bea7a..b129268f34 100644
--- a/source3/utils/smbpasswd.c
+++ b/source3/utils/smbpasswd.c
@@ -221,6 +221,8 @@ static BOOL password_change(const char *remote_machine, char *user_name,
return ret;
}
+ init_account_policy();
+
ret = local_password_change(user_name, local_flags, new_passwd,
err_str, sizeof(err_str), msg_str, sizeof(msg_str));