Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
LDAP-UX Client Services B.04.10 with Microsoft Windows Active Directory Administrator's Guide: HP-UX 11i v1 and v2 > Chapter 2 Installing LDAP-UX Client Services

Configuring LDAP-UX Client Services

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

To configure the LDAP-UX Client Services, complete the steps in this section.

If you attempt to enable SSL support with LDAP-UX, you must configure the LDAP directory server to support SSL and install the security database (cert7.db or cert8.db and key3.db) on your client before you run the setup program. For SSL setup details, refer to“Configuring the LDAP-UX Client Services with SSL or TLS Support”.

NOTE: The LDAP-UX Client Services provides default attributes and search descriptor settings to work with Microsoft Windows Services for UNIX 3.0/3.5 (SFU 3.0/3.5) when working with the Windows 2000, 2003 or 2003 R2 Active Directory.

If you use SFU 2.0 with the Windows 2000 or 2003 ADS, you can manually re-link the attribute configuration file to SFU 2.0. Use this command to switch to SFU 2.0:

ln -fs /etc/opt/ldapux/defautl_profile_attr_ads_sfu2.ldif \ /etc/opt/ldapux/defuatl_profile_attr_ads.ldif

If you use the R2's RFC2307 schema with Windows 2003 R2 ADS, you can manually re-link the attribute configuration file to R2's RFC2307. Use this command to switch to R2's RFC2307:

ln -fs /etc/opt/ldapux/defautl_profile_attr_ads_winr2.ldif \ /etc/opt/ldapux/defuatl_profile_attr_ads.ldif

LDAP-UX Client Services will also use SFU 3.0/3.5 in the absence of the softlink /etc/opt/ldapux/defualt_profile_attr_ads.ldif.

You can also run the setup program to select and set the attribute map to be used with your directory server.

Step 1: Run the Setup Program

This section describes in detail the steps you need to take to configure LDAP-UX Client Services with Windows 2000, 2003, 2003 R2 Active Directory. In summary, you will need to run the setup program to extend the profile schema into Active Directory and to create specific profile entries. The setup program also creates the necessary files on your client system and configures the proxy user.

If you want to use SSL or TLS, you must perform the following tasks before you run the setup program:

  • Ensure to have the certificate database files, cert8.db or cert7.db and key3.db, on your client system.

  • If you choose to use TLS, set the enable_starttls parameter to 1 in the /etc/opt/ldapux/lldapux_client.conf file to enable TLS. To use SSL, set enable_starttls to 0 to disable TLS. By default, TLS is disabled.

  • You need to install and configure PAM Kerberos Product before you run the setup program. See the “Step 2: Install the PAM Kerberos Product” section for details.

  • Configure the Kerberos configuration file, /etc/krb5.conf, to specify the default realm, the location of a Key Distribution Center (KDC) server and the logging file name. See the “Step 3: Configure Your HP-UX Machine to Authenticate Using PAM Kerberos” section for details.

  • Create a new proxy user. See the “Creating a New Proxy User” section for details.

  • Configure PAM Kerberos library, libpam_krb5.1 (on HP-UX 11i v1) or libpam_krb5.so.1 (on HP-UX 11i v2) in the PAM configuration file, pam.conf. See Appendix D appendix for details.

  1. Log in as root and run the setup program:

    cd /opt/ldapux/config
    ./setup

    The setup program asks you a series of questions and usually provides default answers. Press the Enter key to accept the default, or change the value and press the Enter key. At any point during setup, press the Control-b keys to return to the previous screen or press the Control-c keys to exit setup.

  2. Choose Windows 2000, 2003 or 2003 R2 as your LDAP directory server (option 2).

  3. Enter either the host name or IP address of the directory server where your profile exists, or where you want to create a new profile.

  4. Enter the port number of the previous specified directory server that you want to store the profile, from Appendix A. The default port number is 389.

  5. Setup will check the directory to see if the schema has been extended with the LDAP-UX Client Services object class DUAConfigProfile, enter the DN (Distinguished Name) and password of a user. This must be done once. See Appendix B for a detailed description of these object classes.

    If the schema has already been extended, setup skips this step. Otherwise, to extend the schema, enter the DN and password of a directory user who can extend the directory schema from Appendix A.

  6. If the new automount schema has already been imported, setup skips this step.

    Otherwise, you will be asked whether or not you want to install the new automount schema which is based on RFC 2307-bis. Enter "yes" to extend the new automount schema into the LDAP directory server. Enter "no" if you do not want to import new automount schema into the LDAP directory server. Setup skips to step 7 if you enter "no".

  7. For new profiles, the profile object must be created under the 'ConfigurationNamingContext' container, which is usually CN=Configuration, <domain root>, or it can be created under any path with an object class of 'Container'. These container entries must exist before any new profile entries can be created.

  8. Enter either the DN of a new profile, or the DN of an existing profile, from Appendix A.

    To display all the profiles in the directory, use a command like the following:

    ldapsearch -D <directory user> -w <credentials> -s sub -b "CN=System, DC=cup, DC=hp, DC=com" -h <Active Directory host> -p <Active Directory port> objectclass=DUAConfigProfile

    If you are using an existing profile, setup configures your client, downloads the profile, and exits. In this case, continue by going to the section “Step 2: Install the PAM Kerberos Product”.

  9. If you are creating a new profile, enter the DN and password of a directory user who can create a new profile, from Appendix A.

  10. Choose the attribute map set to be used with the directory server. You can select SFU 2.0 (option 1), SFU 3.0/SFU3.5 (option 2) or RFC2307 (option 3). By default, the SFU 3.0/SFU3.5 (option 2) is used as the attribute map set.

  11. Setup now checks the value of the enable_starttls parameter. Setup also checks if the certificate database files, cert7.db or cert8.db and key3.db, exist on your client system. If these files do not exist, setup skips this step.

    If the value of the enable_starttls parameter is 0 (disabled) or undefined, you will be asked whether you want to use SSL or not. Enter "yes" if you want to use SSL for the secure communication between LDAP clients and the Windows 2000, 2003 or 2003 R2 Active Directory Server. Enter "no" if you don't want to use SSL. Continue to step 12.

    Otherwise, if the value of the enable_starttls parameter is 1 (enabled), you will be asked whether you want to use TLS or not. Enter "yes" if you want to use TLS for the secure communication between LDAP clients and the Windows 2003 or 2003 R2 Active Directory Server. Enter "no" if you don't want to use TLS. Continue to step 12.

  12. Next, it will prompt you for selecting the authentication method for users to bind/authenticate to the server. You need to choose the authentication method from one of the following prompts based on your selection in step 11:

    • For TLS, you have a choice between SIMPLE (the default), or SASL GSSAPI if you choose to not enable TLS. However, you have a choice between SIMPLE with TLS (the default), or SASL GSSAPI with TLS if you choose to enable TLS. Skip to step 13.

    • For SSL, you have a choice between SIMPLE (the default), or SASL GSSAPI if you choose to not enable SSL. However, you have a choice between SIMPLE with SSL (the default), or SASL GSSAPI with SSL if you choose to enable SSL. Skip to step 13.

  13. Next, enter the host name and port number of the directory where your account and group data is, from Appendix A.You can enter up to three hosts, to be searched in order.

  14. Enter the base DN where clients should search for name service data, from Appendix A.

  15. Enter Yes when prompted to ask if you want to accept the remaining default configuration parameters.

  16. Next, if you do not use SASL GSSAPI authentication, skip this step and go to step 18. Otherwise, it will prompt you for setting up principals used for SASL GSSAPI authentication as below:

    There are two ways to set up principals used for SASL GSSAPI
    authentication for LDAP-UX name service proxy authentication:
    * Host or service principal defined in a keytab file (such as
     /etc/krb5.keytab)
    * Proxy principal defined in LDAP-UX proxy credential file 
    (/etc/opt/ldapux/pcred)
    The principal defined in a keytab file can be shared among 
    several services, such as Kerberized Interface Service or 
    LDAP-UX using the host principal for authentication. The 
    LDAP-UX proxy principal is used solely for LDAP-UX.

    It will prompt you for selecting the type of principal. Enter H if you wish to use a host/service principal. Enter P if you wish to use a proxy principal. By default, the host or service principal is used.

  17. Next, it will prompt you for entering the path to the Kerberos keytab file. Enter the keytab file if you want to specify the keytab file to be used. If no file is specified, LDAP-UX will use the default keytab file configured in /etc/krb5.conf using "default_keytab_name". If there is no default keytab file configured in /etc/krb5.conf, then the keytab file /etc/krb5.keytab will be used.

  18. Next, it will prompt you for specifying an alternate principal name. If you do not want to use the default principal name, enter an alternate principal name. For example, host/hpntc20.cup.hp.com@CUP.HP.COM.

    LDAP-UX uses ldapux/<FQHN>@<REALM> as the default service principal. If it does not exist, the host/<FQHN>@<REALM> in the keytable file is the principal to be used.FQHN stands for Fully Qualified Host Name.

  19. For Active Directory, you must set access to the directory by proxy user because anonymous binding does not grant enough access right to an Active Directory. Enter the DN and password of your proxy user from Appendix A.

  20. Enter the maximum time in seconds the client should wait for binding to the directory before aborting ("bind time"). Enter 0 for no time limit.

    CAUTION: The default client binding time is 5 seconds. Depending on the load on your directory, this default value may not be high enough to service all database requests.
  21. Enter the maximum time in seconds the client should wait for directory searches before aborting. Enter 0 for no time limit.

  22. Enter the Profile Time To Live (TTL) value. This value defines the time interval between automatic downloads (refreshes) of new configuration profiles from the directory. Automatic refreshing ensures that the client is always configured using the newest configuration profile. If you want to disable automatic refresh or manually control when the refresh occurs, enter a value of 0. Refer to “Downloading the Profile Periodically”

  23. In this step, the setup program initiates a dialog where you can remap the standard object class attributes to alternate attributes. You may want to do this if the attributes in your directory do not conform to the object classes defined in RFC 2307.

    You can remap the attributes for any of the supported services: passwd, shadow passwd, group, PAM, netgroup, rpc, protocols, networks, hosts, services and automount.

    NOTE: Make sure that the attribute names are entered correctly to avoid unpredictable results later.

    Refer to RFC 2307 at http://www.ietf.org/rfc/rfc2307.txt for a description of the standard object classes and attributes.

    At this point, the setup program will display the following dialog:

    LDAP-UX Client Services supports the following services:
    1.Password                              7.Networks
    2.Shadow passwd                         8.Hosts
    3.Group                                 9.Services
    4.PAM (Pluggable Authentication Module)10.Printers
    5.RPC                                  11.Automount
    6 Protocols                            
    Each services uses a standard object class (defined by RFC 2307)
    You can remap any of these attributes to alternate attributes.
    Do you want to remap any of the standard RFC 2307 attributes?

    Enter “yes” if you want to remap object class attributes for any of the supported services. Then go to the “Remapping Attributes for Services” section for details of the procedures.

    Enter “no” to this prompt to continue to step 25 of the setup process.

  24. In this step, the setup program initiates a dialog where you can create a custom search descriptor. A custom search descriptor allows you to specify a different search location or filter for retrieving entries for services supported by LDAP-UX Client. Each name service can have up to three different search descriptors. A custom search descriptor consists of three parts: a search base DN, scope, and filter.

    NOTE: Custom search descriptors have no relevance for PAM Kerberos. PAM Kerberos is the only certified authentication method for LDAP-UX Client Services with Active Directory.

    Each service can have up to three different search descriptors. The client uses the search descriptors in order until it finds what it is looking for.

    NOTE: The default search base DN for all requests will be set to the previously specified default search base DN (specified in step 12), usually the domain root. For very large databases, search performance can be greatly increased by specifying custom search descriptors. For example, to search user and group information, set the search base DN for the user and group services to CN=Users, DC=cup, DC=hp, DC=com.If your search filters overlap, enumeration requests will result in duplicate entries being returned. For example, if one search filter searched a subset of your organization and a second search filter searched your entire organization, an enumeration request would return duplicate entries. Refer to “Enumeration Requests”.

    To begin the process to create custom search descriptors, setup will prompt you for the following information:

    LDAP-UX Client Services supports the following services:
    1.Password                              7.Networks
    2.Shadow passwd                         8.Hosts
    3.Group                                 9.Services
    4.PAM (Pluggable Authentication Module)10.Printers
    5.RPC                                  11.Automount
    6 Protocols 
    
    You can create up to three custom search descriptors for each name
    service to search different locations in the directory.  
    Do you want to create custom search descriptors? [No]:               

    Enter 'yes' if you want to create custom search descriptors for any of the supported services. Then enter the number of the service for which you want to create a custom search descriptor.

    If, you do not want to create custom search descriptors, enter 'no' to this prompt to continue to step 25 of the setup process.

    Creating the Custom Search Filter for LDAP Printer Configurator Service

    LDAP-UX Client Services uses the printlpd search filter for the printer service as default. The default object class, printerlprr, is not defined in the Windows Active Directory Server. To use the LDAP printer configurator feature, you must execute the following procedures to change default printerlpr object class for the printer service to the alternate object class to search a different location in the directory. As an example, the following procedures are used to change the default object class, printerlpr, to the alternate object class, printQueue:

    1. Type yes for the following question and press the return key:

      Do you want to create custom search descriptors? [No]: yes

    2. If you want to select the printer service, then enter 10 for the following question and press the return key:

      Specify the service you want to map? [0]: 10

    3. Next, it will take you to the screen which shows you the following information:

      To accept the default shown in brackets, press the Return key.
      search base [dc=cup,dc=hp,dc=com]:
      search scope (base, one, sub) [sub]
      Search filter [(objectclass=printerlpr)]

      If you want to create the alternate search filter, printQueue for the printer service, then type (objectclass=printQueue) for the following prompt and press the Return key; otherwise press the return key to accept the default search filter, objectclass=printerlpr:

      Search filter [(objectclass=printerlpr)]: (objectclass=printQueue)

  25. Enter Yes to the question Are you ready to create the Profile Entry?, then press any key to continue.

  26. At this point, you will choose whether or not to configure for Multiple Domains.

    • If you will not be configuring for Multiple Domains, enter “no” to the following question, then continue to step 27:

      Do you wish to configure multiple-domain support?

    • If you will be configuring for Multiple Domains: enter Yes to the question Do you wish to configure multiple-domain support?

      If you will be using Remote Domain Configuration, enter Yes to the next question Do you wish to configure a list of remote-domain profiles before attempting to use the Global Catalog Server? If you enter No, skip the remaining comments in this bullet, and proceed to the next bulleted item.

      You will loop through a series of screens which will allow you to create as many profiles as you wish (one profile will be created for each pass through the loop).

      Read the explanation paragraph(s) in the next screen carefully before answering the question, then enter the appropriate domain name.

      Next, you will return to step 3 through step 25 of this procedure for each profile to be created.

      When you have added as many profiles as you wish, enter No to the question Do you wish to configure another profile for remote domain?

    • If you will be using the GCS, enter Yes to the next question Do you wish to use ADS Global Catalog Server to automatically resolve account information for users in remote domains?. If you enter No, then proceed to step 27, below.

      Otherwise, you will return to step 3 through step 25 of this procedure to create the profile for the GCS.

      NOTE: When you configure the default search base for the GCS, you must make sure that the base covers everything that you want to include. For example, for a forest containing two domain trees (ca.hp.com and ny.hp.com), if you specify ca.hp.com as the GCS search base, all of the data under the ny.hp.com domain tree will not be found. You must specify hp.com to cover the entire forest. The setup tool provides the root domain as the default search base. You must override it in order to cover the entire forest.

      Read the instructions on each screen, carefully, as some of the answers to these questions will be different than the last two times you went through these questions.

      When you have finished building the profile for the GCS, configure the profiles for each domain that is used by the global catalog search.

      To configure the profiles for each domain that is used by the global catalog search, you will again return to step 3 through step 21 of this procedure until you have configured each profile needed by the global catalog search.

      When this process is complete, continue to the next step.

  27. Reply to the question, Would you like to start/restart the LDAP-UX daemon.

    Starting with LDAP-UX Client Services B.03.20 or later, the product daemon, /opt/ldapux/bin/ldapclientd, must be running for LDAP-UX functions to work. With LDAP-UX Client Services B.03.10 or earlier, running the client daemon, ldapclientd, is optional. For LDAP-UX Services B.03.10 or earlier, users need to start the LDAP-UX daemon in order to use multiple domains and X.500 features.

Remapping Attributes for Services

This section describes detailed procedures on how to perform attribute mappings for dynamic group, LDAP printer configurator and X.500 group membership services.

Attribute Mappings for LDAP Printer Configurator Support

The default printer attributes, printer-name and printer-uri, are not defined in the Windows Active Directory Server. You need to define the alternate printer attributes and map them to printer-name and printer-uri respectively. You must execute the following procedures to remap the default printer attributes to alternate printer attributes. As examples, the following procedures are used to remap the default printer attributes to the alternate attributes, printerbyname and printer-resource.

  1. Enter yes for the following question:

    Do you want to remap any of the standard RFC 2307 attributes? [yes]: yes

  2. If you want to select the printer service, then enter 10 for the following question and press the return key:

    Specify the service you want to map? [0]:10

  3. Next, it will take you to the screen which shows you the following information:

    Current Printer attribute names:
    1.print-name ->[printer-name]
    2.print-uri -> [printer-uri]
    Specify the attribute you want to map. [0]:

    You type 1 for the following question and press the return key:

    Specify the attribute you want to map. [0]:1

  4. Next, type the attribute printbyname that you want to map to the printer-name attribute for the following question and press the return key:

    printer-name -> printerbyname

  5. Next, it will take you to the screen which shows you the following information:

    Current Printer attribute names:
    1.printer-name ->[printerbyname]
    2.printer-uri -> [printer-uri]
    Specify the attribute you want to map. [0]:

    If you want to specify the attribute to map to the printer-uri attribute, then type 2 for the following question and press the return key:

    Specify the attribute you want to map. [0]:2

  6. Next, type the attribute printer-resource you want to map to the printer-uri attribute and press the return key:

    printer-uri -> printer-resource

  7. Next, it will take you to the screen which shows you the following information:

    Current Printer attribute names:
    1.printer-name ->[printer-name]
    2.printer-uri -> [printer-resource]
    Specify the attribute you want to map. [0]:

    You type 0 to exit this menu for the following question:

    Specify the attribute you want to map. [0]:0

Attribute Mappings for Dynamic Group Support

To enable dynamic group support, you must remap the default group member attribute, memberuid, to msDS-AzLDAPQuery (for Windows Active Directory Server). For detailed information about dynamic group support, see Chapter 6, “Dynamic Group Support”.

Use the following steps to remap the memberuid attribute to the dynamic group attributes, msDS-AzLDAPQuery (assuming that the LDAP directory server is Windows 2003 R2 ADS):

  1. Type yes for the following question:

    Do you want to remap any of the startdard RFC 2307 attributes? [yes]: yes

  2. Select the group service by entering 3 for the following question and press the return key:

    Specify the service you want to map? [0]: 3

  3. Next, it will take you to the screen which shows you the following information:

    Current Group attribute names:
    1.cn ->[cn]
    2.gidnumber  -> [gidnumber]
    3.memberuid -> [memberuid]
    4.userpassword -> [userPassword]
    Specify the attribute you want to map. [0]:

    If you want to specify the attribute to map to memberuid, then type 3 for the following question and press the return key:

    Specify the attribute you want to map? [0]: 3

  4. Type the attribute, msDS-AzLDAPQuery, that you want to map to the memberuid attribute and press the return key:

    memberuid —>msDS-AzLDAPQuery

  5. Next, it will take you to the screen which shows you the following information:

    Current Group.attribute names:
    1.cn ->[cn]
    2.gidnumber  -> [gidnumber]
    3.memberuid -> [msDS-AzLDAPQuery]
    4.userpassword -> [userPassword]
    Specify the attribute you want to map. [0]:

    You type 0 to exit this menu for the following question:

    Specify the attribute you want to map. [0]:0

Attribute Mappings For X.500 Group Membership Support

If you configure x.500 group membership support, you need to remap the group member attribute to member or uniquemember instead of using the default attribute, memberuid.

If you set up X.500, execute the following steps for attribute mappings:

  1. Type yes for the following question:

    Do you want to remap any of the startdard RFC 2307 attributes? [yes]: yes

  2. Select the group service by entering 3 for the following question and press the return key:

    Specify the service you want to map? [0]: 3

  3. Enter 3 for the following question and press the return key:

    Specify the attribute you want to map? [0]: 3

  4. Enter the attributes you want to map to the member attribute:

    [memberuid]: member

    NOTE: LDAP-UX supports DN-based (X.500 style) membership syntax. This means that you do not need to use the memberUid attributes to define the members of a POSIX group. Instead, you can use either the member or uniqueMember attribute. LDAP-UX can convert from the DN syntax to the POSIX syntax (an account name).

    For ADS, the typical member attribute would be either memberUid or preferably the member attribute.

  5. Follow the prompts to finish the setup.

Step 2: Install the PAM Kerberos Product

LDAP-UX Client Services with Active Directory uses the Kerberos Authentication method. If not already available on your system, you will need to install and configure PAM Kerberos. Some instructions for doing this are shown later in this step. Additional information can be found in the Configuration Guide for Kerberos Products on HP-UX, available at http://docs.hp.com/hpux/internet.

In order to support integration with Active Directory server, a specific version of the PAM-Kerberos product is required. On HP-UX 11i v1, version 1.11 of the PAM-Kerberos product is required. On HP-UX 11i v2, version 1.23 of the PAM-Kerberos product is required.

If you wish to also use SASL/GSSAPI for proxied authentication, version 1.3.5.03 of the Kerberos Client product is required. Version 1.3.5.03 of the Kerberos Client is a replacement for the KRB5-Client components of the core HP-UX OS. This version is planned to be made available late June, 2005. Please note that the KRB5CLIENT product is a superior product to previous KRB5-Client patches (such as PHSS_33384). Although patch PHSS_33384 is required, and designed to install over the core Kerberos client patch, and it will not overwrite the KRB5CLIENT product. You need to add ipnodes service information in the /etc/nsswitch.conf file as follows:

ipnodes: dns files.

NOTE: For more information, refer to Kerberos Client Version 1.3.5.03 Release Notes available at http://docs.hp.com/hpux/internet.

Both "PAM Kerberos" (J5849AA) and "Kerberos Client" (KRB5CLIENT) products can be downloaded from http://software.hp.com. They are available at: http:// software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=J5849 AA and http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRB5CLIENT

Refer to the Configuration Guide for Kerberos Products in HP-UX Release Notes, available at http://docs.hp.com/hpux/internet for any last minute changes.

You also need to install the required patch. For patch infomation, refer to LDAP-UX Integration B.04.10 Release Notes available at http://docs.hp.com/hpux/internet.

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”.

  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.

    NOTE: The keytab file should only be readable by the root user.
  5. Synchronize the HP-UX clock to the Windows 2000 or 2003 clock. These must be synchronized within two minutes. You can run Network Time Synchronizer to synchronize both clocks. If the tool is not available, you can manually synchronize them by setting "Date/Time Properties" on Windows 2000 or 2003 and running /etc/set_parms date_time on HP-UX.

  6. Configure /etc/pam.conf, the PAM configuration file which specifies PAM service modules for PAM applications. To use PAM Kerberos as authentication module, edit /etc/pam.conf to include the PAM Kerberos library /usr/lib/security/libpam_krb5.1 for all four services: authentication, account management, session management, and password management. A sample PAM configuration file can be found in “Sample PAM Configuration File”.

    NOTE: The sample file reflects the recommendation to keep the root user in /etc/passwd local on each client machine, and to allow for local account management of the root user. This guarantees local access to the system in case the network is down.

Step 4: Configure the Name Service Switch (NSS)

The Name Service Switch (NSS) needs to be modified to retrieve your account and group information from Active Directory.

Save a copy of the file /etc/nsswitch.confand edit the original to specify the ldap name service and other name services you want to use. Refer to /etc/nsswitch.ldap for an example. You may be able to just copy /etc/nsswitch.ldap to/etc/nsswitch.conf. Refer to nsswitch.conf(4) for more information.

Step 5: Configure the PAM Authorization Service Module (pam_authz)

This step is optional. You do this step only if you want to use pam_authz to control access rules defined in the policy file, /etc/opt/ldapux/pam_authz.policy. LDAP-UX Client Services provides a sample policy file, /etc/opt/ldapux/pam_authz.policy.template. This sample file shows you how to configure the policy file to work with pam_authz. You can copy this sample file and edit it using the correct syntax to specify the access rules you wish to authorize or exclude from authorization. For more detailed information on how to configure the policy file. see “PAM_AUTHZ Login Authorization ”.

Step 6: Configure the Disable Login Flag

Save a copy of the file /etc/opt/ldapux/dapux_client.confand edit the original to activate the disable_uid_range flag. Uncomment the flag in the [NSS] portion of the file and fill in the UID range. The format is disable_uid_range=uid#,[uid#-uid#], ....

For example: disable_uid_range=0-100,300-450,89

NOTE: • White spaces between numbers are ignored.

• Only one line of the list is accepted; however, the line can be wrapped.

• The maximum number of ranges is 20.

Step 7: Verify LDAP-UX Client Services for Single Domain

This section describes some simple ways you can verify the installation and configuration of your LDAP-UX Client Services. You may need to do more elaborate and detailed testing, especially if you have a large environment.

  1. Use the nsquery(1) command to test the name service:

    nsquery lookup_type lookup_query [lookup_policy]

    For example, to test the name service switch to resolve a username lookup, enter:

    nsquery passwd username ldap

    where usernameis the login name of a valid user whose POSIX account information is in the directory. You should see output something like the following depending on how you have configured /etc/nsswitch.conf:

    Using "ldap" for the passwd policy.
    Searching ldap for jbloggs
    User name: jbloggs
    user Id: 10000
    Group Id: 2000
    Gecos:
    Home Directory: /home/jbloggs
    Shell: /bin/sh
    Switch configuration: Terminates Search

    This tests the NSS configuration in /etc/nsswitch.conf. If you do not see output similar to above, check /etc/nsswitch.conf for proper configuration.

  2. Use other commands to display information about users in the directory, making sure the output is as expected:

    pwget -n username
    grget -n groupname
    ls -l

  3. NOTE: While you can use the following commands to verify your configuration, these commands enumerate the entire passwd or group database, which may reduce network and directory server performance for large databases:

    pwget (with no options) 
    grget (with no options) 
    listusers 
    logins
  4. Use the beq search utility to search for the following services: pwd (password), grp (group), shd (shadow password), srv (service), prt (protocol), rpc (RPC), hst (host), net (network), ngp (netgroup), and grm (group membership). An example beq command using name as the search key, grp as the service, and ldap as the library is shown below.

    ./beq -k n -s grp -l /usr/lib/libnss_ldap.1 igrp1

    nss_status........NSS_SUCCESS
    pw_name...........(iuser1)
    pw_passwd.........(*)
    pw_uid............(101)
    pw_gid............(21)
    pw_age............()
    pw_comment........()
    pw_gecos..........(gecos data in files)
    pw_dir............(/home/iuser1)
    pw_shell..........(/usr/bin/sh)
    pw_audid..........(0)
    pw_audflg.........(0)

    Refer to "beq Search Tool" in “Command, Tool, Schema Extension Utility, and Migration Script Reference” for command syntax and examples.

  5. Log in to the client system from another system using rlogin or telnet. Log in as a user in the directory and as a user in /etc/passwd to make sure both work.

  6. Optionally, test your pam_authz authorization configuration:

    If the pam_authz is configured without the pam_authz.policy file, verify the followings:

    1. Log into the client system from another system using rlogin or telnet. From there log in to the directory as a member from +@netgroup to verify that pam_authz authorizes you and is working correctly.

    2. Log in as a user to the directory as a member of a-@netgroup to be sure that the system will not authorize you to login.

    If the pam_authz is configured with the pam_authz.policy file, verify the followings:

    1. Log in the client system with a user name that is covered by an allow access rule in the policy file. Make sure the user will be allowed to log in.

    2. Log in as a user that is covered by adeny access rule in the policy file. Make sure the user can not login to the client system.

  7. Open a new hpterm (1X) window and log in to the client system as a user whose account information is in the directory. It is important you open a new hpterm window or log in from another system because if login does not work, you could be locked out of the system and would have to reboot to single-user mode.

    This tests the PAM configuration in /etc/pam.conf. If you cannot log in, check /etc/pam.conf for proper configuration. Also check your directory to make sure the user account information is accessible by the proxy user or anonymously, as appropriate. Check your profile to make sure it looks correct. Also refer to “Troubleshooting” for more information.

  8. Use the ls (1) or ll (1) command to examine files belonging to a user whose account information is in the directory. Make sure the owner and group of each file are accurate:

    ll /tmp ls -l

    If any owner or group shows up as a number instead of a user or group name, the name service switch is not functioning properly. Check the file /etc/nsswitch.conf, your directory, and your profile.

  9. If you have configured a multi-domain setup and you want to verify it, execute the following two steps. Otherwise, continue below with “Step 8: Configure Subsequent Client Systems”.

    The following steps will verify that LDAP-UX is able to retrieve data from ADS multiple domains:

    1. Create or import a POSIX user account into an ADS remote domain (for example, the user account smith, this is identical to how you set it up for a single domain, except now you put it into a remote domain).

    2. If pwget -n smith returns valid data, LDAP-UX is working with ADS multiple domains. If no data was returned, the setup was not successful.

Step 8: Configure Subsequent Client Systems

Once you have configured your directory and one client system, you can configure subsequent client systems using the following steps. Modify any of these files as needed.

  1. Use swinstall to install LDAP-UX Client Services on the client system. This requires rebooting the client system.

  2. Copy the following files from a configured client to the client being configured:

    • /etc/opt/ldapux/ldapux_client.conf

    • /etc/opt/ldapux/pcred only if you have configured a proxy user, not if you are using only anonymous access

    • /etc/pam.conf

    • /etc/nsswitch.conf

    • cert7.db or cert8.db and key3.db flles if SSL is enabled

  3. Download the profile by running get_profile_entry as follows:

    cd /opt/ldapux/config ./get_profile_entry -s nss -D bindDN -w password

    If you are using multiple domains, download profiles for the GCS and each remote domain. Refer to “Command, Tool, Schema Extension Utility, and Migration Script Reference”, section titled "The get_profile_entry Tool" for information about downloading these profiles.

    Alternatively you could interactively run the setup program to download the profile from the directory and respond No when prompted to select if you want to change the current configuration:

    cd /opt/ldapux/config ./setup

  4. If you are using a proxy user, verify the proxy user by calling ldap_proxy_config as follows:

    cd /opt/ldapux/config ./ldap_proxy_config -v

  5. Refer to "Verify the LDAP-UX Client Services for Single Domain" for more information to verify the installation and configuration of your LDAP-UX Client Services.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2006 Hewlett-Packard Development Company, L.P.