logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

krb5_appdefault_boolean, krb5_appdefault_string, krb5_appdefault_time — get application configuration

Description

       These  functions  get application defaults from the appdefaults section of the krb5.conf(5) configuration
       file. These defaults can be specified per application, and/or per realm.

       These values will be looked for in krb5.conf(5), in order of descending importance.

             [appdefaults]
                     appname = {
                             realm = {
                                     option = value
                             }
                     }
                     appname = {
                             option = value
                     }
                     realm = {
                             option = value
                     }
                     option = value
       appname is the name of the application, and realm is the realm name. If the realm is omitted it will  not
       be used for resolving values.  def_val is the value to return if no value is found in krb5.conf(5).

Library

       Kerberos 5 Library (libkrb5, -lkrb5)

Name

       krb5_appdefault_boolean,  krb5_appdefault_string,  krb5_appdefault_time  —  get application configuration
       value

See Also

krb5_config(3), krb5.conf(5)

HEIMDAL                                           July 25, 2000                               KRB5_APPDEFAULT(3)

Synopsis

#include<krb5.h>voidkrb5_appdefault_boolean(krb5_contextcontext, constchar*appname, krb5_realmrealm, constchar*option,
           krb5_booleandef_val, krb5_boolean*ret_val);

       voidkrb5_appdefault_string(krb5_contextcontext,  constchar*appname, krb5_realmrealm, constchar*option,
           constchar*def_val, char**ret_val);

       voidkrb5_appdefault_time(krb5_contextcontext, constchar*appname, krb5_realmrealm,  constchar*option,
           time_tdef_val, time_t*ret_val);

See Also