Sample LDAP and LDAPS load balancing configuration

The Citrix Adaptive Authentication instance provides LDAP/LDAPS support using a load balancing virtual server.

Note:

  • If you are not using load balancing for LDAP/LDAPS, avoid creating a service or a server for an LDAP server as this might break the Adaptive Authentication tunnel.
  • If you are using load balancing for LDAP, create a service group and bind it to the load balancing service and not to a standalone service.
  • When using load balancing virtual server for authentication, ensure that you add the load balancing virtual server IP address instead of the actual LDAP server IP address in the LDAP action.
  • By default, a TCP monitor is bound to the service that you create. On the Adaptive Authentication NetScaler instances, the service is marked as UP by default if a TCP monitor is used.
  • For monitoring, it is recommended that you use custom monitors.

Prerequisites

Private IP address (RFC1918 address) of the load balancing virtual server. It can be a dummy IP address as this address is used for internal configuration.

Load balancing LDAP servers

For load balancing LDAP servers, create a service group and bind it to the load balancing virtual server. Do not create a service for load balancing LDAP servers.

Configure LDAP by using the NetScaler CLI:

You can use the following CLI commands as a reference to configure LDAP.

  1. add serviceGroup <serviceGroupName> <serviceType>
  2. bind servicegroup <serviceGroupName> (<IP> | <serverName>) <port>
  3. add lb vserver <name> <serviceType> <ip> <port> - The port must be 389. This port is used for internal communication and connection to an on-premises server is over SSL based on the port configured for the service group.
  4. bind lb vserver <name> <serviceGroupName>
  5. add authentication ldapAction <name> {-serverIP} <ip_addr> | {-serverName <string>}} <lb vserver ip>
  6. add authentication policy <ldap_policy_name> -rule <expression> -action <string>
  7. bind authentication vserver auth_vs -policy <ldap_policy_name> -priority <ldap_policy_priority> -gotoPriorityExpression NEXT

Configure LDAP by using the NetScaler GUI:

  1. Navigate to Traffic Management > Load Balancing and then click Virtual Servers.
  2. Create a virtual server of type TCP and port 389.

    Do not create a load balancing virtual server of type SSL/SSL_TCP.

  3. Navigate to Traffic Management > Load Balancing and then click Service Groups.
  4. Create a service group of type TCP and port 389.
  5. Bind the service group to the virtual server that you have created in step 1.

For details on the procedures, see Setup basic load balancing.

Load balancing LDAPS servers

For load balancing LDAPS servers, you must create a load balancing virtual server of type TCP to avoid internal SSL encryption or decryption into the Adaptive Authentication instance. The load balancing virtual server handles the TLS encryption/decryption in this case. Do not create a load balancing virtual server of type SSL.

Configure LDAPS by using the NetScaler CLI:

You can use the following CLI commands as a reference to configure LDAPS.

  1. add lb vserver <name> <serviceType> <ip> <port> - The port must be 636.
  2. bind lb vserver <name> <serviceGroupName>
  3. add authentication ldapAction <name> {-serverIP} <ip_addr> | {-serverName <string>}} <lb vserver ip>
  4. add authentication policy <ldap_policy_name> -rule <expression> -action <string>
  5. bind authentication vserver auth_vs -policy <ldap_policy_name> -priority <ldap_policy_priority> -gotoPriorityExpression NEXT

Configure LDAPS by using the NetScaler GUI:

  1. Navigate to Traffic Management > Load Balancing and then click Virtual Servers.
  2. Create a virtual server of type TCP and port 636.

    Do not create a load balancing virtual server of type SSL/SSL_TCP.

  3. Navigate to Traffic Management > Load Balancing and then click Service.
  4. Create a service of type SSL_TCP and port 636.
  5. Bind the service to the virtual server that you have created in step 1.

For details on the procedures, see Setup basic load balancing.

Create custom monitors

Create custom monitors by using the NetScaler GUI:

  1. Navigate to Traffic Management > Load Balancing > Monitors.
  2. Create a monitor of type LDAP. Ensure that you set the monitor probe interval to 15 seconds and the response timeout to 10 sec.
  3. Bind this monitor to your service.

For more details, see Custom monitors.

Sample LDAP and LDAPS load balancing configuration