add simple alias support to the database backends

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20236 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-02-16 23:52:29 +00:00
parent aeeff09920
commit 9f106cf20a
4 changed files with 158 additions and 4 deletions

View File

@@ -394,3 +394,17 @@ hdb_entry_get_ConstrainedDelegACL(const hdb_entry *entry,
return 0;
}
krb5_error_code
hdb_entry_get_aliases(const hdb_entry *entry, const HDB_Ext_Aliases **a)
{
const HDB_extension *ext;
ext = hdb_find_extension(entry, choice_HDB_extension_data_aliases);
if (ext)
*a = &ext->data.u.aliases;
else
*a = NULL;
return 0;
}