xref: /freebsd/crypto/heimdal/lib/krb5/krb5_appdefault.3 (revision 6a068746777241722b2b32c5d0bc443a2a64d80b)
1*ae771770SStanislav Sedov.\" Copyright (c) 2000 Kungliga Tekniska Högskolan
2bbd80c28SJacques Vidrine.\" (Royal Institute of Technology, Stockholm, Sweden).
3bbd80c28SJacques Vidrine.\" All rights reserved.
4bbd80c28SJacques Vidrine.\"
5bbd80c28SJacques Vidrine.\" Redistribution and use in source and binary forms, with or without
6bbd80c28SJacques Vidrine.\" modification, are permitted provided that the following conditions
7bbd80c28SJacques Vidrine.\" are met:
8bbd80c28SJacques Vidrine.\"
9bbd80c28SJacques Vidrine.\" 1. Redistributions of source code must retain the above copyright
10bbd80c28SJacques Vidrine.\"    notice, this list of conditions and the following disclaimer.
11bbd80c28SJacques Vidrine.\"
12bbd80c28SJacques Vidrine.\" 2. Redistributions in binary form must reproduce the above copyright
13bbd80c28SJacques Vidrine.\"    notice, this list of conditions and the following disclaimer in the
14bbd80c28SJacques Vidrine.\"    documentation and/or other materials provided with the distribution.
15bbd80c28SJacques Vidrine.\"
16bbd80c28SJacques Vidrine.\" 3. Neither the name of the Institute nor the names of its contributors
17bbd80c28SJacques Vidrine.\"    may be used to endorse or promote products derived from this software
18bbd80c28SJacques Vidrine.\"    without specific prior written permission.
19bbd80c28SJacques Vidrine.\"
20bbd80c28SJacques Vidrine.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21bbd80c28SJacques Vidrine.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22bbd80c28SJacques Vidrine.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23bbd80c28SJacques Vidrine.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24bbd80c28SJacques Vidrine.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25bbd80c28SJacques Vidrine.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26bbd80c28SJacques Vidrine.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27bbd80c28SJacques Vidrine.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28bbd80c28SJacques Vidrine.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29bbd80c28SJacques Vidrine.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30bbd80c28SJacques Vidrine.\" SUCH DAMAGE.
31bbd80c28SJacques Vidrine.\"
32*ae771770SStanislav Sedov.\" $Id$
33bbd80c28SJacques Vidrine.\"
345e9cd1aeSAssar Westerlund.Dd July 25, 2000
355e9cd1aeSAssar Westerlund.Dt KRB5_APPDEFAULT 3
365e9cd1aeSAssar Westerlund.Os HEIMDAL
375e9cd1aeSAssar Westerlund.Sh NAME
385e9cd1aeSAssar Westerlund.Nm krb5_appdefault_boolean ,
395e9cd1aeSAssar Westerlund.Nm krb5_appdefault_string ,
405e9cd1aeSAssar Westerlund.Nm krb5_appdefault_time
4145524cd7SAssar Westerlund.Nd get application configuration value
428373020dSJacques Vidrine.Sh LIBRARY
438373020dSJacques VidrineKerberos 5 Library (libkrb5, -lkrb5)
445e9cd1aeSAssar Westerlund.Sh SYNOPSIS
45bbd80c28SJacques Vidrine.In krb5.h
465e9cd1aeSAssar Westerlund.Ft void
475e9cd1aeSAssar Westerlund.Fn krb5_appdefault_boolean "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "krb5_boolean def_val" "krb5_boolean *ret_val"
485e9cd1aeSAssar Westerlund.Ft void
495e9cd1aeSAssar Westerlund.Fn krb5_appdefault_string "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "const char *def_val" "char **ret_val"
505e9cd1aeSAssar Westerlund.Ft void
515e9cd1aeSAssar Westerlund.Fn krb5_appdefault_time "krb5_context context" "const char *appname" "krb5_realm realm" "const char *option" "time_t def_val" "time_t *ret_val"
525e9cd1aeSAssar Westerlund.Sh DESCRIPTION
53bbd80c28SJacques VidrineThese functions get application defaults from the
545e9cd1aeSAssar Westerlund.Dv appdefaults
555e9cd1aeSAssar Westerlundsection of the
565e9cd1aeSAssar Westerlund.Xr krb5.conf 5
575e9cd1aeSAssar Westerlundconfiguration file. These defaults can be specified per application,
585e9cd1aeSAssar Westerlundand/or per realm.
5945524cd7SAssar Westerlund.Pp
605e9cd1aeSAssar WesterlundThese values will be looked for in
615e9cd1aeSAssar Westerlund.Xr krb5.conf 5 ,
625e9cd1aeSAssar Westerlundin order of descending importance.
635e9cd1aeSAssar Westerlund.Bd -literal -offset indent
645e9cd1aeSAssar Westerlund[appdefaults]
655e9cd1aeSAssar Westerlund	appname = {
665e9cd1aeSAssar Westerlund		realm = {
675e9cd1aeSAssar Westerlund			option = value
685e9cd1aeSAssar Westerlund		}
695e9cd1aeSAssar Westerlund	}
705e9cd1aeSAssar Westerlund	appname = {
715e9cd1aeSAssar Westerlund		option = value
725e9cd1aeSAssar Westerlund	}
735e9cd1aeSAssar Westerlund	realm = {
745e9cd1aeSAssar Westerlund		option = value
755e9cd1aeSAssar Westerlund	}
765e9cd1aeSAssar Westerlund	option = value
775e9cd1aeSAssar Westerlund.Ed
784137ff4cSJacques Vidrine.Fa appname
794137ff4cSJacques Vidrineis the name of the application, and
804137ff4cSJacques Vidrine.Fa realm
814137ff4cSJacques Vidrineis the realm name. If the realm is omitted it will not be used for
824137ff4cSJacques Vidrineresolving values.
835e9cd1aeSAssar Westerlund.Fa def_val
844137ff4cSJacques Vidrineis the value to return if no value is found in
854137ff4cSJacques Vidrine.Xr krb5.conf 5 .
865e9cd1aeSAssar Westerlund.Sh SEE ALSO
875e9cd1aeSAssar Westerlund.Xr krb5_config 3 ,
885e9cd1aeSAssar Westerlund.Xr krb5.conf 5
89