krb_get_lrealm(3krb)krb_get_lrealm(3krb)Namekrb_get_lrealm - Host/realm identification routines.
Syntax
#include <krb.h>
#include <des.h>
krb_get_lrealm (realm, n)
char *realm;
int n;
char *krb_get_phost (alias)
char *alias;
Arguments
alias Identifies a host whose name is to be converted to an instance
name. The alias string is overwritten with the instance name.
The alias string must be stored in a buffer of at least INST_SZ
characters.
realm Identifies a specific realm.
n Specifies a specific position in a series of Kerberos hosts;
must be set to 0.
Description
The routines of allow an application to obtain information on
host/realm relationships in a Kerberos network. The routines of this
library are:
krb_get_phost
Converts the hostname pointed to by alias, which can be either
an official name or an alias, into the instance name to be used
in obtaining Kerberos tickets.
krb_get_lrealm
Initializes realm with the nth realm of the local host. The
argument realm should be large enough to contain the maximum
realm name determined by the constant REALM_SZ. The local realm
name is stored in the file. See the reference page.
Files
See Also
kerberos(3krb), krb.conf(5krb)krb_get_lrealm(3krb)