From 025bf43aa001ef30c106a33124148c3085f96122 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 13 Jan 2005 04:46:53 +0000 Subject: r4721: Changes to libnet_passwd to take advantage of the new easier to call RPC client libs, and to make the fallback between the various SAMR levels easier to manage. I'm starting to enjoy the structure that libnet has actually, and I'm about to build 'net join' on that basis (and I didn't want to have to duplicate the password set code). Andrew Bartlett (This used to be commit f1dd179a50d2c9c81b90a621459c93b0d60e2609) --- source4/libnet/libnet_passwd.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source4/libnet/libnet_passwd.h') diff --git a/source4/libnet/libnet_passwd.h b/source4/libnet/libnet_passwd.h index f3b0f76e572..d7b284cb74b 100644 --- a/source4/libnet/libnet_passwd.h +++ b/source4/libnet/libnet_passwd.h @@ -72,6 +72,11 @@ union libnet_ChangePassword { enum libnet_SetPassword_level { LIBNET_SET_PASSWORD_GENERIC, LIBNET_SET_PASSWORD_SAMR, + LIBNET_SET_PASSWORD_SAMR_HANDLE, + LIBNET_SET_PASSWORD_SAMR_HANDLE_26, + LIBNET_SET_PASSWORD_SAMR_HANDLE_25, + LIBNET_SET_PASSWORD_SAMR_HANDLE_24, + LIBNET_SET_PASSWORD_SAMR_HANDLE_23, LIBNET_SET_PASSWORD_KRB5, LIBNET_SET_PASSWORD_LDAP, LIBNET_SET_PASSWORD_RAP @@ -92,6 +97,17 @@ union libnet_SetPassword { } out; } generic; + struct { + enum libnet_SetPassword_level level; + struct _libnet_SetPassword_samr_handle_in { + const char *account_name; /* for debug only */ + struct policy_handle *user_handle; + struct dcerpc_pipe *dcerpc_pipe; + const char *newpassword; + } in; + struct _libnet_SetPassword_out out; + } samr_handle; + struct { enum libnet_SetPassword_level level; struct _libnet_SetPassword_in in; -- cgit