summaryrefslogtreecommitdiff
path: root/source3/auth
diff options
context:
space:
mode:
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,