From b9772a4886fa5137574a1ba0734fa1e30343283b Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 26 Aug 2010 17:57:26 -0400 Subject: s3-auth: Add helper function to retrieve the unix user from a kerberos ticket MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/include/proto.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'source3/include') diff --git a/source3/include/proto.h b/source3/include/proto.h index 5b9414f61c..db31127065 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -4851,10 +4851,23 @@ const struct mangle_fns *mangle_hash_init(void); const struct mangle_fns *mangle_hash2_init(void); const struct mangle_fns *posix_mangle_init(void); -/* The following definitions come from smbd/map_username.c */ +/* The following definitions come from auth/user_util.c */ bool map_username(fstring user); +/* The following definitions come from auth/user_krb5.c */ + +NTSTATUS get_user_from_kerberos_info(TALLOC_CTX *mem_ctx, + const char *cli_name, + const char *princ_name, + struct PAC_LOGON_INFO *logon_info, + bool *is_mapped, + bool *mapped_to_guest, + char **ntuser, + char **ntdomain, + char **username, + struct passwd **_pw); + /* The following definitions come from smbd/message.c */ void reply_sends(struct smb_request *req); -- cgit