IBM Support

MustGather: LDAP authentication problems with IBM HTTP Server

Troubleshooting


Problem

Collecting data for problems with the IBM® HTTP Server for LDAP authentication problems. Gathering this MustGather information before calling IBM support will help you understand the problem and save time analyzing the data.

Cause

Collecting data for problems with the IBM® HTTP Server for LDAP authentication problems. Gathering this MustGather information before calling IBM support will help you understand the problem and save time analyzing the data.

Resolving The Problem

If you have already contacted support, continue to the component-specific MustGather information. Otherwise, click: MustGather: Read first for IBM HTTP Server.

LDAP authentication specific MustGather information
The following list of files are needed for debugging two types of LDAP authentication with IBM HTTP Server:

  1. LDAP authentication over non-Secure Socket Layers (SSL)
  2. LDAP authentication over SSL




1. LDAP authentication over non-Secure Socket Layers (SSL)
    1. IBM HTTP Server version.

      Type one of the following commands to display the full version:
      • For Windows®:

      • install_root/apache -v

      • For UNIX®:

      • install_root/bin/apachectl -V

    2. Configuration file:

    3. install_root/conf/httpd.conf

    4. Error log:
      • For Windows:

      • install_root/logs/error.log

      • For UNIX:

      • install_root/logs/error_log

    5. Access log:
      • For Windows:

      • install_root/logs/access.log

      • For UNIX:

      • install_root/logs/access_log

    6. LDAP properties file:

    7. install_root/conf/ldap.prop



    Traces: IBM HTTP Server LDAP (non-SSL)
      1. Stop IBM HTTP Server.
      2. Clear all logs in the install_root/logs directory.
      3. Edit the httpd.conf file. Change Loglevel to debug.
      4. Enable LDAP tracing:
        • For Windows:
          1. Create a system variable called:

          2. LDAP_TRACE_FILE

          3. Set the value with the name for the log file (for example: c:\ldaptrace.log).

          4. Create a system variable called:

          5. LDAP_DEBUG

          6. Set the value to 65535.
        • For UNIX:
          1. As the user ID that starts the IBM HTTP Server, create an environment variable called:

          2. LDAP_TRACE_FILE

            The environment variable can be created in either of these two ways:
            • setenv LDAP_TRACE_FILE value (full path and filename)

              csh example:

            • setenv LDAP_TRACE_FILE /usr/HTTPServer/logs/ldaptrace_log

              OR

            • export LDAP_TRACE_FILE=value (full path and filename)

              ksh example:

            • export LDAP_TRACE_FILE=/usr/HTTPServer/logs/ldaptrace_log

          3. As the user ID that starts the IBM HTTP Server, create an environment variable called:

          4. LDAP_DEBUG

            The environment variable can be created in either of these two ways:
            1. csh example:

            2. setenv LDAP_DEBUG=65535

              OR

            3. ksh example:

            4. export LDAP_DEBUG=65535

      5. Start IBM HTTP Server.
      6. Recreate the problem.
      7. Capture the following:

      8. netstat -na > netstat.out

      a. Collect the following data files:
      • httpd.conf, error_log, access_log
      • netstat.out
      • ldaptrace_log
      • ldap.prop
      • IBM HTTP Server version output
      • Include the date and time of failure along with the browser version and the full URL that resulted in the LDAP failure. For example:

      • http://www.ihshost.com/mystuff/goodies/index.html

      b. Follow instructions to send diagnostic information to IBM support.

2. LDAP over SSL
    1. IBM HTTP Server version.

      Type one of the following commands to display the full version:
      • For Windows:

      • install_root/apache -v

      • For UNIX:

      • install_root/bin/apachectl -V

    2. Configuration file:

    3. install_root/conf/httpd.conf

    4. Error log:
      • For Windows:

      • install_root/logs/error.log

      • For UNIX:

      • install_root/logs/error_log

    5. Access log:
      • For Windows:

      • install_root/logs/access.log

      • For UNIX:

      • install_root/logs/access_log

    6. LDAP properties file:

    7. install_root/conf/ldap.prop



    Traces: IBM HTTP Server LDAP over SSL
      1. Stop IBM HTTP Server.
      2. Clear all logs in the install_root/logs directory.
      3. Edit the httpd.conf file:
        • Change Loglevel to debug.
        • Add SSLTrace directive to the bottom of the httpd.conf file.
      4. Enable LDAP tracing:
        • For Windows:
          1. Create the following system variable:

          2. LDAP_TRACE_FILE

          3. Set the value with the name for the log file (for example: c:\ldaptrace.log).

          4. Create the following system variable:

          5. LDAP_DEBUG

          6. Set the value to 65535.
        • For UNIX:
          1. As the user ID that starts the IBM HTTP Server, create an environment variable called:

          2. LDAP_TRACE_FILE

            The environment variable can be created in either of the two ways:
            • setenv LDAP_TRACE_FILE value (full path and filename)

              csh example:

            • setenv LDAP_TRACE_FILE /usr/HTTPServer/logs/ldaptrace_log

              OR

            • export LDAP_TRACE_FILE=value (full path and filename)

              ksh example:

            • export LDAP_TRACE_FILE=/usr/HTTPServer/logs/ldaptrace_log


          3. As the user ID that starts the IBM HTTP Server, create an environment variable called:

          4. LDAP_DEBUG

            The environment variable can be created in either of the two ways:
            • csh example:

            • setenv LDAP_DEBUG=65535

              OR

            • ksh example:

            • export LDAP_DEBUG=65535

      5. Enable GSKit trace:
        • For Windows:
          1. Create the following system variable:

          2. GSK_TRACE_FILE.

          3. Set the value with the name for the log file (for example: c:\gsktrace.log).
        • For UNIX:
          1. As the user ID that starts the IBM HTTP Server create an environment variable called:

          2. GSK_TRACE_FILE.

            The environment variable can be created in either of the two ways:
            • setenv GSK_TRACE_FILE value (full path and filename)

              csh example:

            • setenv GSK_TRACE_FILE /usr/HTTPServer/logs/gsktrace_log

              OR

            • export GSK_TRACE_FILE=value (full path and filename)

              ksh example:

            • export GSK_TRACE_FILE=/usr/HTTPServer/logs/gsktrace_log

      6. Start IBM HTTP Server.
      7. Recreate the problem.
      8. Capture the following:

      9. netstat -na > netstat.out

      a. Collect the following data files:
      • httpd.conf, error_log, access_log
      • netstat.out
      • ldaptrace_log
      • gsktrace_log
      • ldap.prop
      • IBM HTTP Server version
      • Include the date and time of failure along with the browser version and the full URL that resulted in the LDAP failure. For example:

      • https://www.ihshost.com/mystuff/goodies/index.html

      b. Follow instructions to send diagnostic information to IBM support.

[{"Product":{"code":"SSEQTJ","label":"IBM HTTP Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Security (LDAP- Authentication- etc.)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5.5;8.5;8.0;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"IBM HTTP Server","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
07 September 2022

UID

swg21141304