diff options
-rw-r--r-- | source4/kdc/db-glue.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source4/kdc/db-glue.c b/source4/kdc/db-glue.c index 2f75fd9996..c434ccb89a 100644 --- a/source4/kdc/db-glue.c +++ b/source4/kdc/db-glue.c @@ -591,8 +591,10 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context, /* use 'whenCreated' */ entry_ex->entry.created_by.time = ldb_msg_find_krb5time_ldap_time(msg, "whenCreated", 0); - /* use '???' */ - entry_ex->entry.created_by.principal = NULL; + /* use 'kadmin' for now (needed by mit_samba) */ + krb5_make_principal(context, + &entry_ex->entry.created_by.principal, + realm, "kadmin", NULL); entry_ex->entry.modified_by = (Event *) malloc(sizeof(Event)); if (entry_ex->entry.modified_by == NULL) { @@ -603,8 +605,10 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context, /* use 'whenChanged' */ entry_ex->entry.modified_by->time = ldb_msg_find_krb5time_ldap_time(msg, "whenChanged", 0); - /* use '???' */ - entry_ex->entry.modified_by->principal = NULL; + /* use 'kadmin' for now (needed by mit_samba) */ + krb5_make_principal(context, + &entry_ex->entry.modified_by->principal, + realm, "kadmin", NULL); } |