diff options
author | Luke Leighton <lkcl@samba.org> | 2000-01-11 02:00:31 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-01-11 02:00:31 +0000 |
commit | 8433aa437990357a327dbed19afc8033a1ed9be4 (patch) | |
tree | cdbd416168b095f6e31ce557eb89f4e7221dbd14 /source3/rpc_server | |
parent | 0af00edf672eda7556f12745c80873376b85676f (diff) | |
download | samba-8433aa437990357a327dbed19afc8033a1ed9be4.tar.gz samba-8433aa437990357a327dbed19afc8033a1ed9be4.tar.bz2 samba-8433aa437990357a327dbed19afc8033a1ed9be4.zip |
modified smbd/msrpc credential transfer system. user session key
is *missing* from samba cvs main, therefore it is set to all zeros.
this will cause, amongst other things, administrator-changing-user-passwords,
and setting up new accounts, to fail, as the user's password can only be
decoded with the session key (in this case, the administrator's usr sess key).
it's never a perfect world, is it?
(This used to be commit 3362fcdfa492cfd1d9d4ec35ef2108192302b984)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index 46beba6316..736d1435d1 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -136,6 +136,16 @@ pipes_struct *open_rpc_pipe_p(char *pipe_name, vuser->n_groups, vuser->groups); usr.ptr_uxs = 1; + usr.ptr_ssk = 1; + DEBUG(0,("user session key not available (yet).\n")); + DEBUG(0,("password-change operations may fail.\n")); + +#if USER_SESSION_KEY_DEFINED_IN_VUSER_STRUCT + memcpy(usr.usr_sess_key, vuser->usr_sess_key, sizeof(usr.usr_sess_key)); +#else + memset(usr.usr_sess_key, 0, sizeof(usr.usr_sess_key)); +#endif + /* set up nt credentials from the smb side, to feed over the pipe */ /* lkclXXXX todo! make_creds_nt(&usr.ntc); |