1 .\" Copyright (c) 2000 Kungliga Tekniska Högskolan
2 .\" $Id: krb5_config.3,v 1.5 2003/04/16 13:58:14 lha Exp $
7 .Nm krb5_config_get_bool_default ,
8 .Nm krb5_config_get_int_default ,
9 .Nm krb5_config_get_string_default ,
10 .Nm krb5_config_get_time_default
11 .Nd get configuration value
13 Kerberos 5 Library (libkrb5, -lkrb5)
17 .Fn krb5_config_get_bool_default "krb5_context context" "krb5_config_section *c" "krb5_boolean def_value" "..."
19 .Fn krb5_config_get_int_default "krb5_context context" "krb5_config_section *c" "int def_value" "..."
21 .Fn krb5_config_get_string_default "krb5_context context" "krb5_config_section *c" "const char *def_value" "..."
23 .Fn krb5_config_get_time_default "krb5_context context" "krb5_config_section *c" "int def_value" "..."
25 These functions get values from the
27 configuration file, or another configuration database specified by the
31 The variable arguments should be a list of strings naming each
32 subsection to look for. For example:
33 .Bd -literal -offset indent
34 krb5_config_get_bool_default(context, NULL, FALSE, "libdefaults", "log_utc", NULL)
37 gets the boolean value for the
42 .Fn krb5_config_get_bool_default
43 will convert the option value to a boolean value, where
46 and any non-zero number means
51 .Fn krb5_config_get_int_default
52 will convert the value to an integer.
54 .Fn krb5_config_get_time_default
55 will convert the value to a period of time (not a time stamp) in
56 seconds, so the string
59 1209600 (2 * 7 * 24 * 60 * 60).
61 Other than for the string case, there's no way to tell whether there
62 was a value specified or not.
64 .Xr krb5_appdefault 3 ,