summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-03-15 15:39:41 -0700
committerJeremy Allison <jra@samba.org>2010-03-15 15:39:41 -0700
commitc35c38075c96fddd0dcd41b4173ca47a9c07df92 (patch)
tree7218e0edfdebcf1d2d062b98594ffa0c32a1e8a4 /source3/smbd
parent704a607e3c3a5c3e727b386fab9dbcdff56b5ac4 (diff)
downloadsamba-c35c38075c96fddd0dcd41b4173ca47a9c07df92.tar.gz
samba-c35c38075c96fddd0dcd41b4173ca47a9c07df92.tar.bz2
samba-c35c38075c96fddd0dcd41b4173ca47a9c07df92.zip
Remove the bool admin_user from conn struct. We no longer look at this to make access decisions.
Jeremy.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/service.c1
-rw-r--r--source3/smbd/uid.c10
2 files changed, 5 insertions, 6 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index 0452ef5e99..db54d46a23 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -720,7 +720,6 @@ connection_struct *make_connection_snum(struct smbd_server_connection *sconn,
conn->aio_write_behind_list = NULL;
conn->read_only = lp_readonly(SNUM(conn));
- conn->admin_user = False;
if (*lp_force_user(snum)) {
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c
index 9dc354bf5a..5e61098ecb 100644
--- a/source3/smbd/uid.c
+++ b/source3/smbd/uid.c
@@ -98,7 +98,6 @@ static bool check_user_ok(connection_struct *conn,
free_conn_server_info_if_unused(conn);
conn->server_info = ent->server_info;
conn->read_only = ent->read_only;
- conn->admin_user = ent->admin_user;
return(True);
}
}
@@ -160,14 +159,16 @@ static bool check_user_ok(connection_struct *conn,
ent->vuid = vuid;
ent->read_only = readonly_share;
- ent->admin_user = admin_user;
free_conn_server_info_if_unused(conn);
conn->server_info = ent->server_info;
}
conn->read_only = readonly_share;
- conn->admin_user = admin_user;
- if (conn->admin_user) {
+ if (admin_user) {
+ DEBUG(2,("check_user_ok: user %s is an admin user. "
+ "Setting uid as %d\n",
+ conn->server_info->unix_name,
+ sec_initial_uid() ));
conn->server_info->utok.uid = sec_initial_uid();
}
@@ -214,7 +215,6 @@ void conn_clear_vuid_cache(connection_struct *conn, uint16_t vuid)
TALLOC_FREE(ent->server_info);
}
ent->read_only = False;
- ent->admin_user = False;
}
}
}