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>
Tue, 10 Aug 2010 22:42:43 +0000 (08:42 +1000)
auth/common_auth.h

index 41f0f5914213a901eef0164f881214a0e92572f6..0a8772020d59de672edfeaa8418c70a28d2e8d8b 100644 (file)
@@ -74,3 +74,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);