⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 krb_realmofhost.3

📁 早期freebsd实现
💻 3
字号:
.\" $Source: /usr/src/kerberosIV/man/RCS/krb_realmofhost.3,v $.\" $Author: bostic $.\" $Header: /usr/src/kerberosIV/man/RCS/krb_realmofhost.3,v 4.3 1994/04/19 14:18:06 bostic Exp $.\" Copyright 1989 by the Massachusetts Institute of Technology..\".\" For copying and distribution information,.\" please see the file <mit-copyright.h>..\".TH KRB_REALMOFHOST 3 "Kerberos Version 4.0" "MIT Project Athena".SH NAMEkrb_realmofhost, krb_get_phost, krb_get_krbhst, krb_get_admhst,krb_get_lrealm \- additional Kerberos utility routines.SH SYNOPSIS.nf.nj.ft B#include <kerberosIV/krb.h>#include <kerberosIV/des.h>#include <netinet/in.h>.PP.ft Bchar *krb_realmofhost(host)char *host;.PP.ft Bchar *krb_get_phost(alias)char *alias;.PP.ft Bkrb_get_krbhst(host,realm,n)char *host;char *realm;int n;.PP.ft Bkrb_get_admhst(host,realm,n)char *host;char *realm;int n;.PP.ft Bkrb_get_lrealm(realm,n)char *realm;int n;.fi.ft R.SH DESCRIPTION.I krb_realmofhostreturns the Kerberos realm of the host.IR host ,as determined by the translation table.IR /etc/kerberosIV/krb.realms ..I hostshould be the fully-qualified domain-style primary host name of the hostin question.  In order to prevent certain security attacks, this routinemust either have .I a prioriknowledge of a host's realm, or obtain such information securely..PPThe format of the translation file is described by .IR krb.realms (5).If.I hostexactly matches a host_name line, the corresponding realmis returned.Otherwise, if the domain portion of.I hostmatches a domain_name line, the corresponding realmis returned.If.I hostcontains a domain, but no translation is found,.IR host 'sdomain is converted to upper-case and returned.If .I hostcontains no discernible domain, or an error occurs,the local realm name, as supplied by .IR krb_get_lrealm (3),is returned..PP.I krb_get_phostconverts the hostname.I alias(which can be either an official name or an alias) into the instancename to be used in obtaining Kerberos tickets for most services,including the Berkeley rcmd suite (rlogin, rcp, rsh)..brThe current convention is to return the first segment of the officialdomain-style name after conversion to lower case..PP.I krb_get_krbhstfills in.I hostwith the hostname of the.IR n thhost running a Kerberos key distribution center (KDC)for realm.IR realm ,as specified in the configuration file (\fI/etc/kerberosIV/krb.conf\fR).The configuration file is described by .IR krb.conf (5).If the host is successfully filled in, the routinereturns KSUCCESS.If the file cannot be opened, and.I nequals 1, then the value of KRB_HOST as defined in.I <krb.h>is filled in, and KSUCCESS is returned.  If there are fewer than.I nhosts running a Kerberos KDC for the requested realm, or theconfiguration file is malformed, the routinereturns KFAILURE..PP.I krb_get_admhstfills in.I hostwith the hostname of the.IR n thhost running a Kerberos KDC database administration serverfor realm.IR realm ,as specified in the configuration file (\fI/etc/kerberosIV/krb.conf\fR).If the file cannot be opened or is malformed, or there are fewer than.I nhosts running a Kerberos KDC database administration server,the routine returns KFAILURE..PPThe character arrays used as return values for.IR krb_get_krbhst ,.IR krb_get_admhst ,should be large enough tohold any hostname (MAXHOSTNAMELEN from <sys/param.h>)..PP.I krb_get_lrealmfills in.I realmwith the.IR n threalm of the local host, as specified in the configuration file..I realmshould be at least REALM_SZ (from.IR <krb.h>) characters long..PP.SH SEE ALSOkerberos(3), krb.conf(5), krb.realms(5).SH FILES.TP 20n/etc/kerberosIV/krb.realmstranslation file for host-to-realm mapping..TP/etc/kerberosIV/krb.conflocal realm-name and realm/server configuration file..SH BUGSThe current convention for instance names is too limited; the fulldomain name should be used..PP.I krb_get_lrealmcurrently only supports .I n= 1.  It should really consult the user's ticket cache to determine theuser's current realm, rather than consulting a file on the host.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -