1.\" Copyright (c) 2000 Kungliga Tekniska H�gskolan 2.\" $Id: krb5_appdefault.3,v 1.3 2001/01/05 16:29:42 joda Exp $ 3.Dd July 25, 2000 4.Dt KRB5_APPDEFAULT 3 5.Os HEIMDAL 6.Sh NAME 7.Nm krb5_appdefault_boolean , 8.Nm krb5_appdefault_string , 9.Nm krb5_appdefault_time
| 1.\" Copyright (c) 2000 Kungliga Tekniska H�gskolan 2.\" $Id: krb5_appdefault.3,v 1.3 2001/01/05 16:29:42 joda Exp $ 3.Dd July 25, 2000 4.Dt KRB5_APPDEFAULT 3 5.Os HEIMDAL 6.Sh NAME 7.Nm krb5_appdefault_boolean , 8.Nm krb5_appdefault_string , 9.Nm krb5_appdefault_time
|
10.Nd Get application configuration value 11
| 10.Nd get application configuration value
|
12.Sh SYNOPSIS 13.Fd #include <krb5.h>
| 11.Sh SYNOPSIS 12.Fd #include <krb5.h>
|
14
| |
15.Ft void 16.Fn krb5_appdefault_boolean "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "krb5_boolean def_val" "krb5_boolean *ret_val" 17.Ft void 18.Fn krb5_appdefault_string "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "const char *def_val" "char **ret_val" 19.Ft void 20.Fn krb5_appdefault_time "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "time_t def_val" "time_t *ret_val"
| 13.Ft void 14.Fn krb5_appdefault_boolean "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "krb5_boolean def_val" "krb5_boolean *ret_val" 15.Ft void 16.Fn krb5_appdefault_string "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "const char *def_val" "char **ret_val" 17.Ft void 18.Fn krb5_appdefault_time "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "time_t def_val" "time_t *ret_val"
|
21
| |
22.Sh DESCRIPTION
| 19.Sh DESCRIPTION
|
23
| |
24These functions get application application defaults from the 25.Dv appdefaults 26section of the 27.Xr krb5.conf 5 28configuration file. These defaults can be specified per application, 29and/or per realm.
| 20These functions get application application defaults from the 21.Dv appdefaults 22section of the 23.Xr krb5.conf 5 24configuration file. These defaults can be specified per application, 25and/or per realm.
|
30
| 26.Pp
|
31These values will be looked for in 32.Xr krb5.conf 5 , 33in order of descending importance. 34.Bd -literal -offset indent 35[appdefaults] 36 appname = { 37 realm = { 38 option = value 39 } 40 } 41 appname = { 42 option = value 43 } 44 realm = { 45 option = value 46 } 47 option = value 48.Ed
| 27These values will be looked for in 28.Xr krb5.conf 5 , 29in order of descending importance. 30.Bd -literal -offset indent 31[appdefaults] 32 appname = { 33 realm = { 34 option = value 35 } 36 } 37 appname = { 38 option = value 39 } 40 realm = { 41 option = value 42 } 43 option = value 44.Ed
|
49
| 45.Pp
|
50If the realm is omitted it will not be used for resolving values. If 51no value can be found, 52.Fa def_val 53is returned instead.
| 46If the realm is omitted it will not be used for resolving values. If 47no value can be found, 48.Fa def_val 49is returned instead.
|
54
| |
55.Sh SEE ALSO 56.Xr krb5_config 3 , 57.Xr krb5.conf 5
| 50.Sh SEE ALSO 51.Xr krb5_config 3 , 52.Xr krb5.conf 5
|