mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4:kdc: Expose samba_kdc_message2entry_keys()
This allows the KDC to share the supplementalCredentials parsing code with other parts of Samba that could use it. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Thu Mar 24 10:17:32 UTC 2022 on sn-devel-184
This commit is contained in:
parent
29eb7e2488
commit
d1d65d271e
@ -54,10 +54,6 @@
|
||||
((krb5_kvno)((((uint32_t)kvno) & 0xFFFF) | \
|
||||
((((uint32_t)krbtgt) << 16) & 0xFFFF0000)))
|
||||
|
||||
enum samba_kdc_ent_type
|
||||
{ SAMBA_KDC_ENT_TYPE_CLIENT, SAMBA_KDC_ENT_TYPE_SERVER,
|
||||
SAMBA_KDC_ENT_TYPE_KRBTGT, SAMBA_KDC_ENT_TYPE_TRUST, SAMBA_KDC_ENT_TYPE_ANY };
|
||||
|
||||
enum trust_direction {
|
||||
UNKNOWN = 0,
|
||||
INBOUND = LSA_TRUST_DIRECTION_INBOUND,
|
||||
@ -573,7 +569,7 @@ fail:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static krb5_error_code samba_kdc_message2entry_keys(krb5_context context,
|
||||
krb5_error_code samba_kdc_message2entry_keys(krb5_context context,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
const struct ldb_message *msg,
|
||||
bool is_krbtgt,
|
||||
|
@ -24,6 +24,34 @@
|
||||
struct sdb_keys;
|
||||
struct sdb_entry;
|
||||
|
||||
struct samba_kdc_base_context;
|
||||
struct samba_kdc_db_context;
|
||||
struct samba_kdc_entry;
|
||||
|
||||
enum samba_kdc_ent_type {
|
||||
SAMBA_KDC_ENT_TYPE_CLIENT,
|
||||
SAMBA_KDC_ENT_TYPE_SERVER,
|
||||
SAMBA_KDC_ENT_TYPE_KRBTGT,
|
||||
SAMBA_KDC_ENT_TYPE_TRUST,
|
||||
SAMBA_KDC_ENT_TYPE_ANY
|
||||
};
|
||||
|
||||
/*
|
||||
* This allows DSDB to parse Kerberos keys without duplicating this
|
||||
* difficulty
|
||||
*/
|
||||
krb5_error_code samba_kdc_message2entry_keys(krb5_context context,
|
||||
TALLOC_CTX *mem_ctx,
|
||||
const struct ldb_message *msg,
|
||||
bool is_krbtgt,
|
||||
bool is_rodc,
|
||||
uint32_t userAccountControl,
|
||||
enum samba_kdc_ent_type ent_type,
|
||||
unsigned flags,
|
||||
krb5_kvno requested_kvno,
|
||||
struct sdb_entry *entry,
|
||||
const uint32_t supported_enctypes_in,
|
||||
uint32_t *supported_enctypes_out);
|
||||
|
||||
int samba_kdc_set_fixed_keys(krb5_context context,
|
||||
const struct ldb_val *secretbuffer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user