LDAP-UX Client Services B.04.10 with Microsoft Windows Active Directory Server Administrator's Guide
Step 3: Configure Your HP-UX Machine to Authenticate Using PAM Kerberos
1. Create /etc/krb5.conf, the Kerberos configuration file which specifies the default realm,
the location of a Key Distribution Center (KDC) server and the logging file names. The
Kerberos client depends on the configuration to locate the realm's KDC. The following is an
example of /etc/krb5.conf which has the realm CUP.HP.COM, and machine
myhost.cup.hp.comas KDC:
default_realm = CUP.HP.COM
default_tgs_enctypes = DES-CBC-CRC
default_tkt_enctypes = DES-CBC-CRC
ldapux_multidomain = 1 (this line adde only if using Mutiple Domains)
ccache_type = 2
[realms]
CUP.HP.COM = {
kdc = MYHOST.CUP.HP.COM:88
kpasswd_server = MYHOST.CUP.HP.COM:464
}
[domain_realm]
cup.hp.com = CUP.HP.COM
[logging]
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmin.log
default = FILE:/var/log/krb5lib.log
NOTE: The permissions of the /etc/krb5.conf file should be set to 644 and ownership
should be root user.
2. For Multiple Domains
For each domain you configure in LDAP-UX, you need to add its KDC entry into the
/etc/krb5.conffile.
For a sample file that supports two domains, refer to“Sample /etc/krb5.conf File” (page 197).
3. Add the Kerberos services to the/etc/services file if they do not exist yet. A Kerberos
client requires the following entries in the /etc/services file for the Kerberos PAM
services:
kerberos5 88/udp kdc # Kerberos V5 kdc
kerberos5 88/tcp kdc # Kerberos V5 kdc
kerberos-sec 88/udp kdc # Kerberos V5 kdc
kerberos-sec 88/tcp kdc # Kerberos V5 kdc
kerberos 750/udp kdc # Kerberos V5 kdc
kerberos 750/tcp kdc # Kerberos V5 kdc
klogin 543/tcp # Kerberos rlogin -kfall
kshell 544/tcp cmd # Kerberos remote shell
kerberos-adm 749/tcp # Kerberos 5 admin/changepw
kerberos-adm 749/udp # Kerberos 5 admin/changepw
krb5_prop 754/tcp # Kerberos slave propagation
kerberos-adm 464/udp # Kerberos Password Change protocol
kerberos-cpw 464/tcp # Kerberos Password Change protocol
4. Add a host key to the /etc/krb5.keytab file
The keytab file is the one described in the previous section on Windows 2000 or 2003 using
ktpass. You need to securely transfer the keytab file previously created to your HP-UX
machine and name it krb5.keytab in the /etc directory. If you already have an
existing/etc/krb5.keytab file, merge the new keytab file with the existing one.ktutil
is a tool provided with the Kerberos product for you to maintain the keytab file.
Configuring LDAP-UX Client Services 45