summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-05-04 13:01:32 +0200
committerVolker Lendecke <vl@samba.org>2012-05-04 15:02:41 +0200
commitaff3769d9fb9aff84428c6edb091b7d172d778b8 (patch)
tree338dba44311236b70b9bec12d3057aa92590002c /source3/auth
parente1bf9ccffde410fe7e1b697259337c726cb713f1 (diff)
downloadsamba-aff3769d9fb9aff84428c6edb091b7d172d778b8.tar.gz
samba-aff3769d9fb9aff84428c6edb091b7d172d778b8.tar.bz2
samba-aff3769d9fb9aff84428c6edb091b7d172d778b8.zip
s3: remove some unused code
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth_util.c27
-rw-r--r--source3/auth/proto.h1
2 files changed, 0 insertions, 28 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index de395a5674..607523255e 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1177,33 +1177,6 @@ const struct auth_session_info *get_session_info_system(void)
return system_info;
}
-bool copy_current_user(struct current_user *dst, struct current_user *src)
-{
- gid_t *groups;
- struct security_token *nt_token;
-
- groups = (gid_t *)memdup(src->ut.groups,
- sizeof(gid_t) * src->ut.ngroups);
- if ((src->ut.ngroups != 0) && (groups == NULL)) {
- return false;
- }
-
- nt_token = dup_nt_token(NULL, src->nt_user_token);
- if (nt_token == NULL) {
- SAFE_FREE(groups);
- return false;
- }
-
- dst->conn = src->conn;
- dst->vuid = src->vuid;
- dst->ut.uid = src->ut.uid;
- dst->ut.gid = src->ut.gid;
- dst->ut.ngroups = src->ut.ngroups;
- dst->ut.groups = groups;
- dst->nt_user_token = nt_token;
- return true;
-}
-
/***************************************************************************
Purely internal function for make_server_info_info3
***************************************************************************/
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index 44ae9097a5..2754e86ddb 100644
--- a/source3/auth/proto.h
+++ b/source3/auth/proto.h
@@ -232,7 +232,6 @@ NTSTATUS make_session_info_guest(TALLOC_CTX *mem_ctx,
NTSTATUS make_session_info_system(TALLOC_CTX *mem_ctx,
struct auth_session_info **session_info);
const struct auth_session_info *get_session_info_system(void);
-bool copy_current_user(struct current_user *dst, struct current_user *src);
struct passwd *smb_getpwnam( TALLOC_CTX *mem_ctx, const char *domuser,
char **p_save_username, bool create );
NTSTATUS make_server_info_info3(TALLOC_CTX *mem_ctx,