summaryrefslogtreecommitdiff
path: root/source4/libcli/auth/kerberos.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-08-12 07:37:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:57:55 -0500
commit8a0f6c9c7909162a9669197bc0238d0636de69da (patch)
tree21490966191464eab0097b37fe57651eccfed607 /source4/libcli/auth/kerberos.h
parent63c5ca7d583691fae5ccf0b760f24b9d11a2141b (diff)
downloadsamba-8a0f6c9c7909162a9669197bc0238d0636de69da.tar.gz
samba-8a0f6c9c7909162a9669197bc0238d0636de69da.tar.bz2
samba-8a0f6c9c7909162a9669197bc0238d0636de69da.zip
r1770: here's the krb5 server code,
there're some cleanups needed and we need to verify the PAC correctly and create the auth_session_info correctly... metze (This used to be commit d8fe497097ee49611bb05c4a2fed36912d8e16b4)
Diffstat (limited to 'source4/libcli/auth/kerberos.h')
-rw-r--r--source4/libcli/auth/kerberos.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/libcli/auth/kerberos.h b/source4/libcli/auth/kerberos.h
index ca796d0c86..e35079a4ee 100644
--- a/source4/libcli/auth/kerberos.h
+++ b/source4/libcli/auth/kerberos.h
@@ -47,6 +47,10 @@ krb5_error_code krb5_auth_con_setuseruserkey(krb5_context context, krb5_auth_con
void krb5_free_unparsed_name(krb5_context ctx, char *val);
#endif
+#if defined(HAVE_KRB5_PRINCIPAL_GET_COMP_STRING) && !defined(HAVE_KRB5_PRINC_COMPONENT)
+const krb5_data *krb5_princ_component(krb5_context context, krb5_principal principal, int i );
+#endif
+
/* Samba wrapper function for krb5 functionality. */
void setup_kaddr( krb5_address *pkaddr, struct sockaddr *paddr);
int create_kerberos_key_from_string(krb5_context context, krb5_principal host_princ, krb5_data *password, krb5_keyblock *key, krb5_enctype enctype);
@@ -68,7 +72,8 @@ NTSTATUS ads_verify_ticket(TALLOC_CTX *mem_ctx,
krb5_auth_context auth_context,
const char *realm, const DATA_BLOB *ticket,
char **principal, DATA_BLOB *auth_data,
- DATA_BLOB *ap_rep);
+ DATA_BLOB *ap_rep,
+ krb5_keyblock *keyblock);
int kerberos_kinit_password_cc(krb5_context ctx, krb5_ccache cc, const char *principal, const char *password, time_t *expire_time, time_t *kdc_time);
#endif /* HAVE_KRB5 */