diff options
author | Andreas Schneider <asn@samba.org> | 2016-09-07 18:33:43 +0200 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2016-09-08 10:49:41 -0400 |
commit | 2e99582062d9d6a70f2adb00fd8fe58a1f95b9b7 (patch) | |
tree | 7db2e0904961ab164a4c9d9d0d6d443080e62c27 /src/lib/kdb | |
parent | 7db89952d8d4f806ac8b4908f898ac651df11643 (diff) | |
download | krb5-2e99582062d9d6a70f2adb00fd8fe58a1f95b9b7.zip krb5-2e99582062d9d6a70f2adb00fd8fe58a1f95b9b7.tar.gz krb5-2e99582062d9d6a70f2adb00fd8fe58a1f95b9b7.tar.bz2 |
Add krb5_db_register_keytab()
Add a public libkdb5 function to register the KDB keytab type. This
functionality is needed for out-of-tree KDC servers such as the Samba
kpasswd service.
[ghudson@mit.edu: edited comments, whitespace, commit message]
ticket: 8494 (new)
Diffstat (limited to 'src/lib/kdb')
-rw-r--r-- | src/lib/kdb/keytab.c | 6 | ||||
-rw-r--r-- | src/lib/kdb/libkdb5.exports | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/kdb/keytab.c b/src/lib/kdb/keytab.c index b85b67d..c6aa100 100644 --- a/src/lib/kdb/keytab.c +++ b/src/lib/kdb/keytab.c @@ -66,6 +66,12 @@ typedef struct krb5_ktkdb_data { } krb5_ktkdb_data; krb5_error_code +krb5_db_register_keytab(krb5_context context) +{ + return krb5_kt_register(context, &krb5_kt_kdb_ops); +} + +krb5_error_code krb5_ktkdb_resolve(context, name, id) krb5_context context; const char * name; diff --git a/src/lib/kdb/libkdb5.exports b/src/lib/kdb/libkdb5.exports index f7b3061..5df596a 100644 --- a/src/lib/kdb/libkdb5.exports +++ b/src/lib/kdb/libkdb5.exports @@ -87,6 +87,7 @@ krb5_db_delete_policy krb5_db_free_policy krb5_def_store_mkey_list krb5_db_promote +krb5_db_register_keytab ulog_add_update ulog_init_header ulog_map |