Creating a principal using the kadmin C API

2022-04-07 Thread Lars Francke
Hi everyone, we're trying to create principals and keys using the kadmin C API. The normal API has some documentation[1] but unfortunately the kadmin API doesn't have any we could find. We tried to use kadm5_create_principal_3 and kadm5_randkey_principal_3 but we seem to be running into an issue.

Re: Creating a principal using the kadmin C API

2022-04-07 Thread Chris Hecker
I use the kadm5 api to create princs and change keys. I do this with a memory keytab (well, I load a disk keytab while root, copy it to a memory keytab, and then drop privs), but I assume it's using the default system /etc/krb5.conf. I do have my krb5 client stuff build an in-memory conf a

Re: Creating a principal using the kadmin C API

2022-04-07 Thread Greg Hudson
On 4/7/22 16:19, Lars Francke wrote: > We tried to use kadm5_create_principal_3 and kadm5_randkey_principal_3 but > we seem to be running into an issue. Ideally we'd like to call this > function with a handle (+ context) with an in-memory krb5.conf but that > does not seem to work so we create the