mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
s3-smbd: Increase debug level von context messages.
This commit is contained in:
parent
d4867ef838
commit
b181cd8465
@ -91,7 +91,7 @@ static bool get_privileges( const struct dom_sid *sid, uint64_t *mask )
|
||||
data = dbwrap_fetch_bystring( db, talloc_tos(), keystr );
|
||||
|
||||
if ( !data.dptr ) {
|
||||
DEBUG(3, ("get_privileges: No privileges assigned to SID "
|
||||
DEBUG(4, ("get_privileges: No privileges assigned to SID "
|
||||
"[%s]\n", sid_string_dbg(sid)));
|
||||
return False;
|
||||
}
|
||||
|
@ -168,11 +168,11 @@ static int get_current_groups(gid_t gid, uint32_t *p_ngroups, gid_t **p_groups)
|
||||
(*p_ngroups) = ngroups;
|
||||
(*p_groups) = groups;
|
||||
|
||||
DEBUG( 3, ( "get_current_groups: user is in %u groups: ", ngroups));
|
||||
DEBUG( 4, ( "get_current_groups: user is in %u groups: ", ngroups));
|
||||
for (i = 0; i < ngroups; i++ ) {
|
||||
DEBUG( 3, ( "%s%d", (i ? ", " : ""), (int)groups[i] ) );
|
||||
DEBUG( 4, ( "%s%d", (i ? ", " : ""), (int)groups[i] ) );
|
||||
}
|
||||
DEBUG( 3, ( "\n" ) );
|
||||
DEBUG( 4, ( "\n" ) );
|
||||
|
||||
return ngroups;
|
||||
|
||||
@ -207,7 +207,7 @@ bool push_sec_ctx(void)
|
||||
ctx_p->ut.uid = geteuid();
|
||||
ctx_p->ut.gid = getegid();
|
||||
|
||||
DEBUG(3, ("push_sec_ctx(%u, %u) : sec_ctx_stack_ndx = %d\n",
|
||||
DEBUG(4, ("push_sec_ctx(%u, %u) : sec_ctx_stack_ndx = %d\n",
|
||||
(unsigned int)ctx_p->ut.uid, (unsigned int)ctx_p->ut.gid, sec_ctx_stack_ndx ));
|
||||
|
||||
ctx_p->token = dup_nt_token(NULL,
|
||||
@ -307,7 +307,7 @@ void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, struct securi
|
||||
|
||||
/* Set the security context */
|
||||
|
||||
DEBUG(3, ("setting sec ctx (%u, %u) - sec_ctx_stack_ndx = %d\n",
|
||||
DEBUG(4, ("setting sec ctx (%u, %u) - sec_ctx_stack_ndx = %d\n",
|
||||
(unsigned int)uid, (unsigned int)gid, sec_ctx_stack_ndx));
|
||||
|
||||
security_token_debug(DBGC_CLASS, 5, token);
|
||||
@ -415,7 +415,7 @@ bool pop_sec_ctx(void)
|
||||
current_user.ut.groups = prev_ctx_p->ut.groups;
|
||||
current_user.nt_user_token = prev_ctx_p->token;
|
||||
|
||||
DEBUG(3, ("pop_sec_ctx (%u, %u) - sec_ctx_stack_ndx = %d\n",
|
||||
DEBUG(4, ("pop_sec_ctx (%u, %u) - sec_ctx_stack_ndx = %d\n",
|
||||
(unsigned int)geteuid(), (unsigned int)getegid(), sec_ctx_stack_ndx));
|
||||
|
||||
return True;
|
||||
|
@ -427,7 +427,7 @@ static void push_conn_ctx(void)
|
||||
ctx_p->conn = current_user.conn;
|
||||
ctx_p->vuid = current_user.vuid;
|
||||
|
||||
DEBUG(3, ("push_conn_ctx(%u) : conn_ctx_stack_ndx = %d\n",
|
||||
DEBUG(4, ("push_conn_ctx(%u) : conn_ctx_stack_ndx = %d\n",
|
||||
(unsigned int)ctx_p->vuid, conn_ctx_stack_ndx ));
|
||||
|
||||
conn_ctx_stack_ndx++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user