mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4:kdc: samba_kdc_{first,next}key() only need sdb_entry
sdb_entry_ex will be removed shortly. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
3cba1641fd
commit
14487c4027
@ -2593,9 +2593,8 @@ out:
|
||||
|
||||
krb5_error_code samba_kdc_firstkey(krb5_context context,
|
||||
struct samba_kdc_db_context *kdc_db_ctx,
|
||||
struct sdb_entry_ex *entry_ex)
|
||||
struct sdb_entry *entry)
|
||||
{
|
||||
struct sdb_entry *entry = &entry_ex->entry;
|
||||
struct ldb_context *ldb_ctx = kdc_db_ctx->samdb;
|
||||
struct samba_kdc_seq *priv = kdc_db_ctx->seq_ctx;
|
||||
char *realm;
|
||||
@ -2665,9 +2664,8 @@ krb5_error_code samba_kdc_firstkey(krb5_context context,
|
||||
|
||||
krb5_error_code samba_kdc_nextkey(krb5_context context,
|
||||
struct samba_kdc_db_context *kdc_db_ctx,
|
||||
struct sdb_entry_ex *entry_ex)
|
||||
struct sdb_entry *entry)
|
||||
{
|
||||
struct sdb_entry *entry = &entry_ex->entry;
|
||||
return samba_kdc_seq(context, kdc_db_ctx, entry);
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,6 @@
|
||||
|
||||
struct sdb_keys;
|
||||
struct sdb_entry;
|
||||
struct sdb_entry_ex;
|
||||
|
||||
|
||||
int samba_kdc_set_fixed_keys(krb5_context context,
|
||||
@ -41,11 +40,11 @@ krb5_error_code samba_kdc_fetch(krb5_context context,
|
||||
|
||||
krb5_error_code samba_kdc_firstkey(krb5_context context,
|
||||
struct samba_kdc_db_context *kdc_db_ctx,
|
||||
struct sdb_entry_ex *entry);
|
||||
struct sdb_entry *entry);
|
||||
|
||||
krb5_error_code samba_kdc_nextkey(krb5_context context,
|
||||
struct samba_kdc_db_context *kdc_db_ctx,
|
||||
struct sdb_entry_ex *entry);
|
||||
struct sdb_entry *entry);
|
||||
|
||||
krb5_error_code
|
||||
samba_kdc_check_client_matches_target_service(krb5_context context,
|
||||
|
@ -303,7 +303,7 @@ static krb5_error_code hdb_samba4_firstkey(krb5_context context, HDB *db, unsign
|
||||
kdc_db_ctx = talloc_get_type_abort(db->hdb_db,
|
||||
struct samba_kdc_db_context);
|
||||
|
||||
ret = samba_kdc_firstkey(context, kdc_db_ctx, &sdb_entry_ex);
|
||||
ret = samba_kdc_firstkey(context, kdc_db_ctx, &sdb_entry_ex.entry);
|
||||
switch (ret) {
|
||||
case 0:
|
||||
break;
|
||||
@ -332,7 +332,7 @@ static krb5_error_code hdb_samba4_nextkey(krb5_context context, HDB *db, unsigne
|
||||
kdc_db_ctx = talloc_get_type_abort(db->hdb_db,
|
||||
struct samba_kdc_db_context);
|
||||
|
||||
ret = samba_kdc_nextkey(context, kdc_db_ctx, &sdb_entry_ex);
|
||||
ret = samba_kdc_nextkey(context, kdc_db_ctx, &sdb_entry_ex.entry);
|
||||
switch (ret) {
|
||||
case 0:
|
||||
break;
|
||||
|
@ -396,7 +396,7 @@ int mit_samba_get_firstkey(struct mit_samba_context *ctx,
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
ret = samba_kdc_firstkey(ctx->context, ctx->db_ctx, &sentry);
|
||||
ret = samba_kdc_firstkey(ctx->context, ctx->db_ctx, &sentry.entry);
|
||||
switch (ret) {
|
||||
case 0:
|
||||
break;
|
||||
@ -434,7 +434,7 @@ int mit_samba_get_nextkey(struct mit_samba_context *ctx,
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
ret = samba_kdc_nextkey(ctx->context, ctx->db_ctx, &sentry);
|
||||
ret = samba_kdc_nextkey(ctx->context, ctx->db_ctx, &sentry.entry);
|
||||
switch (ret) {
|
||||
case 0:
|
||||
break;
|
||||
|
@ -72,10 +72,10 @@ static NTSTATUS sdb_kt_copy(TALLOC_CTX *mem_ctx,
|
||||
|
||||
krb5_free_principal(context, k5_princ);
|
||||
} else {
|
||||
code = samba_kdc_firstkey(context, db_ctx, &sentry);
|
||||
code = samba_kdc_firstkey(context, db_ctx, &sentry.entry);
|
||||
}
|
||||
|
||||
for (; code == 0; code = samba_kdc_nextkey(context, db_ctx, &sentry)) {
|
||||
for (; code == 0; code = samba_kdc_nextkey(context, db_ctx, &sentry.entry)) {
|
||||
int i;
|
||||
|
||||
code = krb5_unparse_name(context,
|
||||
|
Loading…
x
Reference in New Issue
Block a user