diff options
author | Simo Sorce <idra@samba.org> | 2012-05-02 12:53:34 -0400 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2012-05-23 17:51:49 +0300 |
commit | 302abe61900af3bd9b4fffe1b9e9d7e39cac599a (patch) | |
tree | bde83a2922b74b5631856bc65972ff3d2dacf13f /source4/rpc_server/lsa | |
parent | c54fe86a63f73543eaf9b031e146d5f647c05830 (diff) | |
download | samba-302abe61900af3bd9b4fffe1b9e9d7e39cac599a.tar.gz samba-302abe61900af3bd9b4fffe1b9e9d7e39cac599a.tar.bz2 samba-302abe61900af3bd9b4fffe1b9e9d7e39cac599a.zip |
auth and s4-rpc_server: Do not use features we currently can't implement with MIT Kerbros build
Diffstat (limited to 'source4/rpc_server/lsa')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index 2ecd144bfb..f1b8740078 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -3709,10 +3709,16 @@ static void kdc_get_policy(struct loadparm_context *lp_ctx, unix_to_nt_time(&k->service_tkt_lifetime, svc_tkt_lifetime); unix_to_nt_time(&k->user_tkt_lifetime, usr_tkt_lifetime); unix_to_nt_time(&k->user_tkt_renewaltime, renewal_lifetime); +#ifdef SAMBA4_USES_HEIMDAL /* MIT lacks krb5_get_max_time_skew. + However in the parent function we basically just did a full + krb5_context init with the only purpose of getting a global + config option (the max skew), it would probably make more sense + to have a lp_ or ldb global option as the samba default */ if (smb_krb5_context) { unix_to_nt_time(&k->clock_skew, krb5_get_max_time_skew(smb_krb5_context->krb5_context)); } +#endif k->reserved = 0; } /* |