diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-05-26 16:38:45 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-06-03 17:54:37 +0200 |
commit | 75d03970b78538346308c612ca6be15559e15b5b (patch) | |
tree | 889269e996fffd10cfd3b9f0c359b97c48117f4b /source3/rpc_server | |
parent | 356f0336e558465318450da8936ebfef3f1f4eb1 (diff) | |
download | samba-75d03970b78538346308c612ca6be15559e15b5b.tar.gz samba-75d03970b78538346308c612ca6be15559e15b5b.tar.bz2 samba-75d03970b78538346308c612ca6be15559e15b5b.zip |
s3:smbd: move more session specific globals to struct smbd_server_connection
metze
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 26bc44c6ff..b5b5f5e529 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -32,6 +32,7 @@ */ #include "includes.h" +#include "smbd/globals.h" #include "../libcli/auth/libcli_auth.h" #undef DBGC_CLASS @@ -1920,6 +1921,7 @@ NTSTATUS _samr_ChangePasswordUser(pipes_struct *p, NTSTATUS _samr_ChangePasswordUser2(pipes_struct *p, struct samr_ChangePasswordUser2 *r) { + struct smbd_server_connection *sconn = smbd_server_conn; NTSTATUS status; fstring user_name; fstring wks; @@ -1936,7 +1938,7 @@ NTSTATUS _samr_ChangePasswordUser2(pipes_struct *p, * function. */ - (void)map_username(user_name); + (void)map_username(sconn, user_name); /* * UNIX username case mangling not required, pass_oem_change @@ -1966,6 +1968,7 @@ NTSTATUS _samr_ChangePasswordUser2(pipes_struct *p, NTSTATUS _samr_OemChangePasswordUser2(pipes_struct *p, struct samr_OemChangePasswordUser2 *r) { + struct smbd_server_connection *sconn = smbd_server_conn; NTSTATUS status; fstring user_name; const char *wks = NULL; @@ -1984,7 +1987,7 @@ NTSTATUS _samr_OemChangePasswordUser2(pipes_struct *p, * function. */ - (void)map_username(user_name); + (void)map_username(sconn, user_name); /* * UNIX username case mangling not required, pass_oem_change @@ -2018,6 +2021,7 @@ NTSTATUS _samr_OemChangePasswordUser2(pipes_struct *p, NTSTATUS _samr_ChangePasswordUser3(pipes_struct *p, struct samr_ChangePasswordUser3 *r) { + struct smbd_server_connection *sconn = smbd_server_conn; NTSTATUS status; fstring user_name; const char *wks = NULL; @@ -2040,7 +2044,7 @@ NTSTATUS _samr_ChangePasswordUser3(pipes_struct *p, * function. */ - (void)map_username(user_name); + (void)map_username(sconn, user_name); /* * UNIX username case mangling not required, pass_oem_change |