mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
r1278: rename struct user_context to smbsrv_user
metze
(This used to be commit a9ba29e00f
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
d4ae6ae74d
commit
0aba9a2e3f
@ -29,7 +29,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* the current user context for a request */
|
/* the current user context for a request */
|
||||||
struct user_context {
|
struct smbsrv_user {
|
||||||
/* the vuid is used to specify the security context for this
|
/* the vuid is used to specify the security context for this
|
||||||
request. Note that this may not be the same vuid as we
|
request. Note that this may not be the same vuid as we
|
||||||
received on the wire (for example, for share mode or guest
|
received on the wire (for example, for share mode or guest
|
||||||
@ -87,7 +87,7 @@ struct request_context {
|
|||||||
struct tcon_context *conn;
|
struct tcon_context *conn;
|
||||||
|
|
||||||
/* the user context is derived from the vuid plus smb.conf options */
|
/* the user context is derived from the vuid plus smb.conf options */
|
||||||
struct user_context *user_ctx;
|
struct smbsrv_user *user_ctx;
|
||||||
|
|
||||||
/* a talloc context for the lifetime of this request */
|
/* a talloc context for the lifetime of this request */
|
||||||
TALLOC_CTX *mem_ctx;
|
TALLOC_CTX *mem_ctx;
|
||||||
|
@ -118,13 +118,13 @@ static struct request_context *receive_smb_request(struct smbsrv_context *smb_ct
|
|||||||
*/
|
*/
|
||||||
static void setup_user_context(struct request_context *req)
|
static void setup_user_context(struct request_context *req)
|
||||||
{
|
{
|
||||||
struct user_context *ctx;
|
struct smbsrv_user *user_ctx;
|
||||||
|
|
||||||
ctx = talloc(req->mem_ctx, sizeof(*ctx));
|
user_ctx = talloc(req->mem_ctx, sizeof(*user_ctx));
|
||||||
ctx->vuid = SVAL(req->in.hdr, HDR_UID);
|
user_ctx->vuid = SVAL(req->in.hdr, HDR_UID);
|
||||||
ctx->vuser = get_valid_user_struct(req->smb_ctx, ctx->vuid);
|
user_ctx->vuser = get_valid_user_struct(req->smb_ctx, user_ctx->vuid);
|
||||||
|
|
||||||
req->user_ctx = ctx;
|
req->user_ctx = user_ctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user