*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> krb5_config (3)              
Title
Content
Arch
Section
 

KRB5_CONFIG(3)

Contents


NAME    [Toc]    [Back]

     krb5_config_get_bool_default, krb5_config_get_int_default,
     krb5_config_get_string_default, krb5_config_get_time_default
- get configuration
 value

LIBRARY    [Toc]    [Back]

     Kerberos 5 Library (libkrb5, -lkrb5)

SYNOPSIS    [Toc]    [Back]

     #include <krb5.h>

     krb5_boolean
     krb5_config_get_bool_default(krb5_context context,
             krb5_config_section   *c,   krb5_boolean  def_value,
...);

     int
     krb5_config_get_int_default(krb5_context            context,
krb5_config_section *c,
             int def_value, ...);

     const char*
     krb5_config_get_string_default(krb5_context context,
             krb5_config_section *c, const char *def_value, ...);

     int
     krb5_config_get_time_default(krb5_context context,
             krb5_config_section *c, int def_value, ...);

DESCRIPTION    [Toc]    [Back]

     These functions get values from the krb5.conf(5)  configuration file, or
     another configuration database specified by the c parameter.

     The variable arguments should be a list  of  strings  naming
each subsection
     to look for. For example:

           krb5_config_get_bool_default(context,   NULL,   FALSE,
"libdefaults", "log_utc", NULL)

     gets the boolean value for the log_utc option, defaulting to
FALSE.

     krb5_config_get_bool_default() will convert the option value
to a boolean
     value, where `yes', `true', and any  non-zero  number  means
TRUE, and any
     other value FALSE.

     krb5_config_get_int_default()  will  convert the value to an
integer.

     krb5_config_get_time_default() will convert the value  to  a
period of time
     (not  a time stamp) in seconds, so the string `2 weeks' will
be converted
     to 1209600 (2 * 7 * 24 * 60 * 60).

BUGS    [Toc]    [Back]

     Other than for the string  case,  there's  no  way  to  tell
whether there was
     a value specified or not.

SEE ALSO    [Toc]    [Back]

      
      
     krb5_appdefault(3), krb5.conf(5)

 HEIMDAL                                July       25,       2000
[ Back ]
 Similar pages
Name OS Title
parunlock HP-UX unlock the Stable Complex Configuration Data, Partition Configuration Data, Dynamic Complex Configuration Data
krb5_appdefault_time NetBSD get application configuration value
krb5_appdefault_boolean FreeBSD get application configuration value
vfsconf FreeBSD vfs configuration information
amd.conf FreeBSD amd configuration file
pci_configure_bus NetBSD perform PCI bus configuration
pci_conf_hook NetBSD perform PCI bus configuration
pci_conf_interrupt NetBSD perform PCI bus configuration
atmconfig FreeBSD ATM configuration tool
krb5_appdefault_string FreeBSD get application configuration value
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service