diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-01-13 04:46:53 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:48 -0500 |
commit | 025bf43aa001ef30c106a33124148c3085f96122 (patch) | |
tree | 58a8542f2281ae9801df7df4745e88a2dda59dc8 /source4/libnet/libnet_passwd.h | |
parent | 17725e5fd1649203fcf97a2ec41deb7fc7038efa (diff) | |
download | samba-025bf43aa001ef30c106a33124148c3085f96122.tar.gz samba-025bf43aa001ef30c106a33124148c3085f96122.tar.bz2 samba-025bf43aa001ef30c106a33124148c3085f96122.zip |
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)
Diffstat (limited to 'source4/libnet/libnet_passwd.h')
-rw-r--r-- | source4/libnet/libnet_passwd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/libnet/libnet_passwd.h b/source4/libnet/libnet_passwd.h index f3b0f76e57..d7b284cb74 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 @@ -94,6 +99,17 @@ union libnet_SetPassword { 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; struct _libnet_SetPassword_out out; } samr; |