Set Kerberos KDC adress in C API without using krb5.conf file

168 views Asked by At

I'm writing an C application which authenticate an user via MIT Kerberos.

krb5_get_init_creds_password(..) works fine, [email protected] can be authenticated, but i have to define

[realms]
    EXAMPLE.COM = {
        kdc = example.com
    }

in the krb5.conf file.

Is there any possibility for set the KDC server address in C API?

I do not want to use the krb5.conf file or make a environment setting.

Thanks in advance, Darwin

0

There are 0 answers