summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-08-26 17:57:26 -0400
committerGünther Deschner <gd@samba.org>2010-08-30 14:17:06 +0200
commitb9772a4886fa5137574a1ba0734fa1e30343283b (patch)
tree974e03dde0693ed74e380e9bb6f14c8cae0a5ad7 /source3/include
parentfc79f358eb6a1dd7ed2e5f5b1e31fb664a182595 (diff)
downloadsamba-b9772a4886fa5137574a1ba0734fa1e30343283b.tar.gz
samba-b9772a4886fa5137574a1ba0734fa1e30343283b.tar.bz2
samba-b9772a4886fa5137574a1ba0734fa1e30343283b.zip
s3-auth: Add helper function to retrieve the unix user from a kerberos ticket
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h15
1 files changed, 14 insertions, 1 deletions
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);