summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_passwd.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-11-28 17:30:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:28:38 -0500
commit542729273c2356abe3637bd65463a20b87b11404 (patch)
tree4ff184b55522598d12042e5006266c64969a37d5 /source4/libnet/libnet_passwd.h
parent8ffc2d47ab5d36750bd4b2f90f94f43a53b04568 (diff)
downloadsamba-542729273c2356abe3637bd65463a20b87b11404.tar.gz
samba-542729273c2356abe3637bd65463a20b87b11404.tar.bz2
samba-542729273c2356abe3637bd65463a20b87b11404.zip
r19934: - allow to pass a samr_UserInfo21 struct to be passed to libnet_SetPassword()
- as the SetUserInfo2() levels 26/25 and 24/23 have the same encryption but 26 and 24 change only the password and 25 and 23 take a info21 and change the password, we now use 26 with fallback to 24 or 25 with fallback to 23. - use samr_SetUserInfo2() to match what w2k3 does (works also against nt4) - pass the info21 to libnet_SetPassword() to set acct_flags and full_name together with the password (to match what w2k3 does) metze (This used to be commit 1b86af32f3069cc75ae645698d3f92a0798e38f7)
Diffstat (limited to 'source4/libnet/libnet_passwd.h')
-rw-r--r--source4/libnet/libnet_passwd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libnet/libnet_passwd.h b/source4/libnet/libnet_passwd.h
index d7b284cb74..52a392f1d6 100644
--- a/source4/libnet/libnet_passwd.h
+++ b/source4/libnet/libnet_passwd.h
@@ -104,6 +104,10 @@ union libnet_SetPassword {
struct policy_handle *user_handle;
struct dcerpc_pipe *dcerpc_pipe;
const char *newpassword;
+ struct samr_UserInfo21 *info21; /* can be NULL,
+ * for level 26,24 it must be NULL
+ * for level 25,23 it must be non-NULL
+ */
} in;
struct _libnet_SetPassword_out out;
} samr_handle;