summaryrefslogtreecommitdiffstats
path: root/source4/libnet
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-11-05 01:28:49 +0100
committerGünther Deschner <gd@samba.org>2008-11-10 21:46:27 +0100
commitf42f1ae5a8e914790a9ac8fefe7cee3ec8988508 (patch)
treeb48bc3553f53f3e0a657c5d5d1c19f30d71d4fc4 /source4/libnet
parent94b7db1fb49e1811af002163f9818706e1ea7f7a (diff)
downloadsamba-f42f1ae5a8e914790a9ac8fefe7cee3ec8988508.tar.gz
samba-f42f1ae5a8e914790a9ac8fefe7cee3ec8988508.tar.xz
samba-f42f1ae5a8e914790a9ac8fefe7cee3ec8988508.zip
s4-samr: merge samr_GetUserPwInfo from s3 idl. (fixme: python)
Guenther
Diffstat (limited to 'source4/libnet')
-rw-r--r--source4/libnet/libnet_join.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libnet/libnet_join.c b/source4/libnet/libnet_join.c
index 0ed5e8ae26..e18797c3d5 100644
--- a/source4/libnet/libnet_join.c
+++ b/source4/libnet/libnet_join.c
@@ -451,6 +451,7 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru
struct samr_UserInfo21 u_info21;
union libnet_SetPassword r2;
struct samr_GetUserPwInfo pwp;
+ struct samr_PwInfo info;
struct lsa_String samr_account_name;
uint32_t acct_flags, old_acct_flags;
@@ -778,10 +779,11 @@ NTSTATUS libnet_JoinDomain(struct libnet_context *ctx, TALLOC_CTX *mem_ctx, stru
/* Find out what password policy this user has */
pwp.in.user_handle = u_handle;
+ pwp.out.info = &info;
status = dcerpc_samr_GetUserPwInfo(samr_pipe, tmp_ctx, &pwp);
if (NT_STATUS_IS_OK(status)) {
- policy_min_pw_len = pwp.out.info.min_password_length;
+ policy_min_pw_len = pwp.out.info->min_password_length;
}
/* Grab a password of that minimum length */