1KRB5-CONFIG(1)                   MIT Kerberos                   KRB5-CONFIG(1)
2
3
4

NAME

6       krb5-config - tool for linking against MIT Kerberos libraries
7

SYNOPSIS

9       krb5-config  [--help  |  --all  |  --version  |  --vendor  | --prefix |
10       --exec-prefix | --defccname | --defktname | --defcktname |  --cflags  |
11       --libs [libraries]]
12

DESCRIPTION

14       krb5-config  tells the application programmer what flags to use to com‐
15       pile and link programs against the installed Kerberos libraries.
16

OPTIONS

18       --help prints a usage message.  This is the default  behavior  when  no
19              options are specified.
20
21       --all  prints the version, vendor, prefix, and exec-prefix.
22
23       --version
24              prints the version number of the Kerberos installation.
25
26       --vendor
27              prints the name of the vendor of the Kerberos installation.
28
29       --prefix
30              prints the prefix for which the Kerberos installation was built.
31
32       --exec-prefix
33              prints the prefix for executables for which the Kerberos instal‐
34              lation was built.
35
36       --defccname
37              prints the built-in default credentials cache location.
38
39       --defktname
40              prints the built-in default keytab location.
41
42       --defcktname
43              prints the built-in default client (initiator) keytab location.
44
45       --cflags
46              prints the compilation flags used to build the Kerberos  instal‐
47              lation.
48
49       --libs [library]
50              prints the compiler options needed to link against library.  Al‐
51              lowed values for library are:
52
53                         ┌────────────┬────────────────────────────┐
54                         │krb5        │ Kerberos  5   applications │
55                         │            │ (default)                  │
56                         ├────────────┼────────────────────────────┤
57                         │gssapi      │ GSSAPI  applications  with │
58                         │            │ Kerberos 5 bindings        │
59                         ├────────────┼────────────────────────────┤
60                         │kadm-client │ Kadmin client              │
61                         ├────────────┼────────────────────────────┤
62                         │kadm-server │ Kadmin server              │
63                         └────────────┴────────────────────────────┘
64
65
66
67                         │kdb         │ Applications  that  access │
68                         │            │ the Kerberos database      │
69                         └────────────┴────────────────────────────┘
70

EXAMPLES

72       krb5-config is particularly useful for compiling against a Kerberos in‐
73       stallation that was installed in a non-standard location.  For example,
74       a  Kerberos  installation  that is installed in /opt/krb5/ but uses li‐
75       braries in /usr/local/lib/ for text localization would produce the fol‐
76       lowing output:
77
78          shell% krb5-config --libs krb5
79          -L/opt/krb5/lib -Wl,-rpath -Wl,/opt/krb5/lib -L/usr/local/lib -lkrb5 -lk5crypto -lcom_err
80

SEE ALSO

82       kerberos(7), cc(1)
83

AUTHOR

85       MIT
86
88       1985-2021, MIT
89
90
91
92
931.19.1                                                          KRB5-CONFIG(1)
Impressum