summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2010-01-28 08:58:44 -0500
committerSimo Sorce <idra@samba.org>2010-01-28 19:33:34 -0500
commit7b355d41b52e9ff0ae705da7a7620f03a1868a19 (patch)
treeed7d2b55ad4521ab4ee5da5e332eff6600255afb /source4
parent3ce54a4a973d79012e0ea5a1351393d6b006c809 (diff)
downloadsamba-7b355d41b52e9ff0ae705da7a7620f03a1868a19.tar.gz
samba-7b355d41b52e9ff0ae705da7a7620f03a1868a19.tar.bz2
samba-7b355d41b52e9ff0ae705da7a7620f03a1868a19.zip
s4:kdc Fill in more data fields
Diffstat (limited to 'source4')
-rw-r--r--source4/kdc/db-glue.c12
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);
}