summaryrefslogtreecommitdiff
path: root/source/smbd/service.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-08-02 02:11:55 +0000
committerJeremy Allison <jra@samba.org>2000-08-02 02:11:55 +0000
commit5e5cc6efe2e4687be59085f562caea1e2e05d0a8 (patch)
treee43f73d4ee137ec57a339c92b1a66d560746a4f4 /source/smbd/service.c
parentc55bcec817f47d6162466b193d533c877194124a (diff)
downloadsamba-5e5cc6efe2e4687be59085f562caea1e2e05d0a8.tar.gz
Started to canonicalize our handling of uid -> sid code in order to
get ready and fix se_access_check(). Added cannonical lookup_name(), lookup_sid(), uid_to_sid(), gid_to_sid() functions that look via winbind first the fall back on local lookup. All Samba should use these rather than trying to call winbindd code directly. Added NT_USER_TOKEN struct in user_struct, contains list of NT sids associated with this user. se_access_check() should use this (cached) value rather than attempting to do the same thing itself when given a uid/gid pair. More work needs to be done to preserve these things accross security context changes (especially with the tricky pipe problem) but I'm beginning to see how this will be done..... probably by registering a new vuid for an authenticated RPC pipe and not treating the pipe calls specially. More thoughts needed - but we're almost there... Jeremy.
Diffstat (limited to 'source/smbd/service.c')
-rw-r--r--source/smbd/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/service.c b/source/smbd/service.c
index 2eab50c482d..d4760ca92da 100644
--- a/source/smbd/service.c
+++ b/source/smbd/service.c
@@ -511,8 +511,8 @@ connection_struct *make_connection(char *service,char *user,char *password, int
if (!IS_IPC(conn)) {
/* Find all the groups this uid is in and
store them. Used by become_user() */
- setup_groups(conn->user,validated_domain(vuid),conn->uid,conn->gid,
- &conn->ngroups,&conn->groups);
+ initialize_groups(conn->user, conn->uid, conn->gid);
+ get_current_groups(&conn->ngroups,&conn->groups);
/* check number of connections */
if (!claim_connection(conn,