diff options
author | Andreas Schneider <asn@samba.org> | 2011-04-01 11:55:27 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-04-11 22:56:12 +0200 |
commit | e3c3b4daa425fede17203b474fa35493afbda2a9 (patch) | |
tree | e6e7a6b2889220f906778ce6c80c36df9e9c9242 | |
parent | b137156acbf7c39c86f306100cccc65b441a3209 (diff) | |
download | samba-e3c3b4daa425fede17203b474fa35493afbda2a9.tar.gz samba-e3c3b4daa425fede17203b474fa35493afbda2a9.tar.bz2 samba-e3c3b4daa425fede17203b474fa35493afbda2a9.zip |
s3-printing: Use become_user_by_session() function.
We create a fake connection here and don't have an vuid. So work with
the session_info directly here.
Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr 11 22:56:12 CEST 2011 on sn-devel-104
-rw-r--r-- | source3/printing/nt_printing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 46cfdb3b3a..a7539f6478 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -636,7 +636,7 @@ static uint32 get_correct_cversion(struct pipes_struct *p, goto error_free_conn; } - if (!become_user(conn, get_current_vuid(conn))) { + if (!become_user_by_session(conn, p->session_info)) { DEBUG(0, ("failed to become user\n")); *perr = WERR_ACCESS_DENIED; goto error_free_conn; @@ -1019,7 +1019,7 @@ WERROR move_driver_to_download_area(struct pipes_struct *p, goto err_free_conn; } - if (!become_user(conn, get_current_vuid(conn))) { + if (!become_user_by_session(conn, p->session_info)) { DEBUG(0, ("failed to become user\n")); err = WERR_ACCESS_DENIED; goto err_free_conn; @@ -1948,7 +1948,7 @@ bool delete_driver_files(const struct auth_serversupplied_info *session_info, goto err_free_conn; } - if (!become_user(conn, get_current_vuid(conn))) { + if (!become_user_by_session(conn, session_info)) { DEBUG(0, ("failed to become user\n")); ret = false; goto err_free_conn; |