auth Add kerberos_return_pac() to common_auth.h
authorAndrew Bartlett <abartlet@samba.org>
Tue, 18 May 2010 03:11:46 +0000 (13:11 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 12 Jul 2010 04:36:29 +0000 (14:36 +1000)
auth/common_auth.h

index c9004996b54504e723bccd491b7598801f25ebc9..86ffc0fa23a33419099056447472e2100e90c7f4 100644 (file)
@@ -70,3 +70,22 @@ NTSTATUS ads_verify_ticket(TALLOC_CTX *mem_ctx,
                           DATA_BLOB *ap_rep,
                           DATA_BLOB *session_key,
                           bool use_replay_cache);
+
+/****************************************************************
+Given a username, password and other details, return the
+PAC_LOGON_INFO (the structure containing the important user
+information such as groups).
+****************************************************************/
+
+NTSTATUS kerberos_return_pac(TALLOC_CTX *mem_ctx,
+                            const char *name,
+                            const char *pass,
+                            time_t time_offset,
+                            time_t *expire_time,
+                            time_t *renew_till_time,
+                            const char *cache_name,
+                            bool request_pac,
+                            bool add_netbios_addr,
+                            time_t renewable_time,
+                            const char *impersonate_princ_s,
+                            struct PAC_LOGON_INFO **logon_info);