diff options
author | Simo Sorce <idra@samba.org> | 2012-04-26 12:06:24 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2012-05-04 16:51:28 +0200 |
commit | 3109a3de1f362e9dc42bceb81a393e2dbf80b7b2 (patch) | |
tree | c71c2e87cbe6e0e40ea8fff0d9c364efc82407ad /lib/krb5_wrap/krb5_samba.h | |
parent | 29d284c245c1b3458712c8140cd7b0d1ae175d1f (diff) | |
download | samba-3109a3de1f362e9dc42bceb81a393e2dbf80b7b2.tar.gz samba-3109a3de1f362e9dc42bceb81a393e2dbf80b7b2.tar.bz2 samba-3109a3de1f362e9dc42bceb81a393e2dbf80b7b2.zip |
Split normal kinit from s4u2 flavored kinit
This makes it simpler to slowly integrate MIT support and also amkes it
somewhat clearer what operation is really requested.
The 24u2 part is really only used by the cifs proxy code so we can temporarily
disable it in the MIT build w/o major consequences.
Diffstat (limited to 'lib/krb5_wrap/krb5_samba.h')
-rw-r--r-- | lib/krb5_wrap/krb5_samba.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h index d235563a7b..864cda67bb 100644 --- a/lib/krb5_wrap/krb5_samba.h +++ b/lib/krb5_wrap/krb5_samba.h @@ -206,15 +206,25 @@ krb5_error_code kerberos_kinit_keyblock_cc(krb5_context ctx, krb5_ccache cc, time_t *expire_time, time_t *kdc_time); krb5_error_code kerberos_kinit_password_cc(krb5_context ctx, - krb5_ccache store_cc, - krb5_principal init_principal, - const char *init_password, - krb5_principal impersonate_principal, - const char *self_service, + krb5_ccache cc, + krb5_principal principal, + const char *password, const char *target_service, krb5_get_init_creds_opt *krb_options, time_t *expire_time, time_t *kdc_time); +#ifdef SAMBA4_USES_HEIMDAL +krb5_error_code kerberos_kinit_s4u2_cc(krb5_context ctx, + krb5_ccache store_cc, + krb5_principal init_principal, + const char *init_password, + krb5_principal impersonate_principal, + const char *self_service, + const char *target_service, + krb5_get_init_creds_opt *krb_options, + time_t *expire_time, + time_t *kdc_time); +#endif char *smb_krb5_principal_get_realm(krb5_context context, krb5_principal principal); |