diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-05-09 22:50:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:52 -0500 |
commit | c9bf9773e0634f6346cdd2c62743a1251484b640 (patch) | |
tree | 61e08a81b28d4b67bc5a271dd11b0de8fa43a61b /source4 | |
parent | 005eb6b502ac53815487d1c3feaaf00bc428608f (diff) | |
download | samba-c9bf9773e0634f6346cdd2c62743a1251484b640.tar.gz samba-c9bf9773e0634f6346cdd2c62743a1251484b640.tar.bz2 samba-c9bf9773e0634f6346cdd2c62743a1251484b640.zip |
r619: Remove more code that is no longer called.
Andrew Bartlett
(This used to be commit 4e614cbe922ddc591b17b2357e17eff8ce1d546c)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/auth_util.c | 44 | ||||
-rw-r--r-- | source4/smbd/rewrite.c | 13 |
2 files changed, 0 insertions, 57 deletions
diff --git a/source4/auth/auth_util.c b/source4/auth/auth_util.c index 7bb8c8a558..6becf8c8b5 100644 --- a/source4/auth/auth_util.c +++ b/source4/auth/auth_util.c @@ -531,50 +531,6 @@ static NTSTATUS create_nt_user_token(const DOM_SID *user_sid, const DOM_SID *gro return nt_status; } -/**************************************************************************** - Create the SID list for this user. -****************************************************************************/ - -struct nt_user_token *create_nt_token(uid_t uid, gid_t gid, int ngroups, gid_t *groups, BOOL is_guest) -{ - DOM_SID user_sid; - DOM_SID group_sid; - DOM_SID *group_sids; - NT_USER_TOKEN *token; - int i; - - if (!uid_to_sid(&user_sid, uid)) { - return NULL; - } - if (!gid_to_sid(&group_sid, gid)) { - return NULL; - } - - group_sids = malloc(sizeof(DOM_SID) * ngroups); - if (!group_sids) { - DEBUG(0, ("create_nt_token: malloc() failed for DOM_SID list!\n")); - return NULL; - } - - for (i = 0; i < ngroups; i++) { - if (!gid_to_sid(&(group_sids)[i], (groups)[i])) { - DEBUG(1, ("create_nt_token: failed to convert gid %ld to a sid!\n", (long int)groups[i])); - SAFE_FREE(group_sids); - return NULL; - } - } - - if (!NT_STATUS_IS_OK(create_nt_user_token(&user_sid, &group_sid, - ngroups, group_sids, is_guest, &token))) { - SAFE_FREE(group_sids); - return NULL; - } - - SAFE_FREE(group_sids); - - return token; -} - /*************************************************************************** Make a user_info struct ***************************************************************************/ diff --git a/source4/smbd/rewrite.c b/source4/smbd/rewrite.c index 5e30db1192..91ccbaf4e4 100644 --- a/source4/smbd/rewrite.c +++ b/source4/smbd/rewrite.c @@ -59,19 +59,6 @@ BOOL share_access_check(struct request_context *req, struct tcon_context *conn, BOOL init_names(void) { return True; } -BOOL uid_to_sid(DOM_SID *sid, uid_t uid) -{ - ZERO_STRUCTP(sid); - return True; -} - -BOOL gid_to_sid(DOM_SID *sid, gid_t gid) -{ - ZERO_STRUCTP(sid); - return True; -} - - BOOL become_user_permanently(uid_t uid, gid_t gid) { return True; } |