diff options
Diffstat (limited to 'source4/rpc_server')
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 10 | ||||
-rw-r--r-- | source4/rpc_server/wscript_build | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index 0854f25284..6ec078bd4e 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -31,6 +31,7 @@ #include "lib/util/tsort.h" #include "dsdb/common/util.h" #include "libcli/security/session.h" +#include "kdc/kdc-policy.h" /* this type allows us to distinguish handle types @@ -3700,12 +3701,9 @@ static NTSTATUS dcesrv_lsa_QueryDomainInformationPolicy(struct dcesrv_call_state *r->out.info = NULL; return NT_STATUS_INTERNAL_ERROR; } - k->enforce_restrictions = 0; /* FIXME, details missing from MS-LSAD 2.2.53 */ - k->service_tkt_lifetime = 0; /* Need to find somewhere to store this, and query in KDC too */ - k->user_tkt_lifetime = 0; /* Need to find somewhere to store this, and query in KDC too */ - k->user_tkt_renewaltime = 0; /* Need to find somewhere to store this, and query in KDC too */ - k->clock_skew = krb5_get_max_time_skew(smb_krb5_context->krb5_context); - k->reserved = 0; + kdc_get_policy(dce_call->conn->dce_ctx->lp_ctx, + smb_krb5_context, + k); talloc_free(smb_krb5_context); *r->out.info = info; return NT_STATUS_OK; diff --git a/source4/rpc_server/wscript_build b/source4/rpc_server/wscript_build index 29c1723119..3aafaa566a 100644 --- a/source4/rpc_server/wscript_build +++ b/source4/rpc_server/wscript_build @@ -95,7 +95,7 @@ bld.SAMBA_MODULE('dcerpc_lsarpc', autoproto='lsa/proto.h', subsystem='dcerpc_server', init_function='dcerpc_server_lsa_init', - deps='samdb DCERPC_COMMON ndr-standard LIBCLI_AUTH NDR_DSSETUP com_err security-session' + deps='samdb DCERPC_COMMON ndr-standard LIBCLI_AUTH NDR_DSSETUP com_err security-session kdc-policy' ) |