s4:kdc Fill in more data fields
authorSimo Sorce <idra@samba.org>
Thu, 28 Jan 2010 13:58:44 +0000 (08:58 -0500)
committerSimo Sorce <idra@samba.org>
Fri, 29 Jan 2010 00:33:34 +0000 (19:33 -0500)
source4/kdc/db-glue.c

index 2f75fd9996d0c3cf97789a6913314ecb622d338e..c434ccb89a196eef4f0a9a7f5ab0417a15322ee0 100644 (file)
@@ -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);
        }