Ask Samba to always return admin data.
[idra/krb5.git] / src / plugins / kdb / samba / kdb_samba.c
index 78e81b40f8cae043f301e85556ad7361fafe05c2..84e0c5cf67a8cf8411b7907c677fc68da11e3040 100644 (file)
@@ -482,6 +482,10 @@ ks_db_get_principal(krb5_context context,
     else
         hflags |= HDB_F_GET_ANY;
 
+    /* always set this or the created_by data will not be populated by samba's
+     * backend and we will fail to parse the entry later */
+    hflags |= HDB_F_ADMIN_DATA;
+
     code = ks_get_principal(context, princ, hflags, kentry);
 
     k5_mutex_unlock(ks->lock);