LDAP Configuration {% set nameForIsLdapEnabled = "settingForm[security:passport-ldap:isEnabled]" %} {% set isLdapEnabled = settingForm['security:passport-ldap:isEnabled'] %}

The LDAP URL of the directory service in the format ldap://host:port/DN or ldaps://host:port/DN.
Example: ldaps://ldap.company.com/ou=people,dc=company,dc=com

{% set nameForIsUserBind = "settingForm[security:passport-ldap:isUserBind]" %} {% set isUserBind = settingForm['security:passport-ldap:isUserBind'] %}

The DN of the account that authenticates and queries the directory service

The query used to bind with the directory service.
Use {% raw %}{{username}}{% endraw %} to reference the username entered in the login page.
Example: uid={% raw %}{{username}}{% endraw %},dc=domain,dc=com

The password for the Bind DN account.

The password that is entered in the login page will be used to bind.

The query used to locate the authenticated user.
Use {% raw %}{{username}}{% endraw %} to reference the username entered in the login page.
If empty, the filter (uid={% raw %}{{username}}{% endraw %}) is used.

Example to match with 'uid' or 'mail': (|(uid={% raw %}{{username}}{% endraw %})(mail={% raw %}{{username}}{% endraw %}))