Friday, October 4, 2013

How to Troubleshoot Citrix NetScaler Access Gateway Authentication with aaad.debug

To troubleshoot authentication with Aaad.debug, complete the following procedure:


  1. Connect to the Access Gateway Enterprise Edition command line interface with a Secure Shell (SSH) client such as PuTTY.


  2. Run the following command to switch to the shell prompt:
    shell


  3. Run the following command to change to the /tmp directory:
    cd /tmp


  4. Run the following command to start the debugging process:
    cat aaad.debug | grep username

    Use | grep username to filter out a particular user


  5. Perform the authentication process that requires troubleshooting, such as a user logon attempt.


  6. Monitor the output of the cat aaad.debug command to interpret and troubleshoot the authentication process.


  7. Stop the debugging process by pressing Ctrl+Z.


  8. Run the following command to record the output of aaad.debug to a log file:
    cat aaad.debug | tee /var/tmp/<debuglogname.log>


    Where /var/tmp is the required directory path and <debuglogname.log> is the required log name