1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4:kdc: Add ‘samdb’ parameter to samba_kdc_verify_pac()

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-10-03 14:58:10 +13:00 committed by Andrew Bartlett
parent 16cb8c4787
commit 29c230531c
4 changed files with 6 additions and 0 deletions

View File

@ -671,6 +671,7 @@ krb5_error_code mit_samba_update_pac(struct mit_samba_context *ctx,
code = samba_kdc_verify_pac(tmp_ctx,
context,
krbtgt_skdc_entry->kdc_db_ctx->samdb,
flags,
client_pac_entry,
krbtgt_skdc_entry);

View File

@ -2117,6 +2117,8 @@ static krb5_error_code samba_kdc_get_device_info_blob(TALLOC_CTX *mem_ctx,
*
* @param context A krb5 context
*
* @param samdb An open samdb connection.
*
* @param flags Bitwise OR'ed flags
*
* @param client The client samba kdc PAC entry.
@ -2127,6 +2129,7 @@ static krb5_error_code samba_kdc_get_device_info_blob(TALLOC_CTX *mem_ctx,
*/
krb5_error_code samba_kdc_verify_pac(TALLOC_CTX *mem_ctx,
krb5_context context,
struct ldb_context *samdb,
uint32_t flags,
const struct samba_kdc_entry_pac client,
const struct samba_kdc_entry *krbtgt)

View File

@ -121,6 +121,7 @@ NTSTATUS samba_kdc_check_client_access(struct samba_kdc_entry *kdc_entry,
krb5_error_code samba_kdc_verify_pac(TALLOC_CTX *mem_ctx,
krb5_context context,
struct ldb_context *samdb,
uint32_t flags,
const struct samba_kdc_entry_pac client,
const struct samba_kdc_entry *krbtgt);

View File

@ -372,6 +372,7 @@ static krb5_error_code samba_wdc_verify_pac2(astgs_request_t r,
ret = samba_kdc_verify_pac(mem_ctx,
context,
krbtgt_skdc_entry->kdc_db_ctx->samdb,
flags,
client_pac_entry,
krbtgt_skdc_entry);