190 | | |
| 190 | '''LDAP Parameters''' |
| 191 | |
| 192 | Use an LDAP URI to configure the location of your LDAP server in $ldap_url: |
| 193 | |
| 194 | {{{ |
| 195 | $ldap_url = "ldap://localhost:389"; |
| 196 | }}} |
| 197 | |
| 198 | You can set several URI, so that next server will be tried if the previous is down: |
| 199 | |
| 200 | {{{ |
| 201 | $ldap_url = "ldap://server1 ldap://server2"; |
| 202 | }}} |
| 203 | |
| 204 | To use SSL, set ldaps in the URI: |
| 205 | |
| 206 | {{{ |
| 207 | $ldap_url = "ldaps://localhost"; |
| 208 | }}} |
| 209 | |
| 210 | To use StartTLS, set true in $ldap_starttls: |
| 211 | |
| 212 | {{{ |
| 213 | $ldap_starttls = true; |
| 214 | }}} |
| 215 | |
| 216 | '''Credentials''' |
| 217 | |
| 218 | Configure DN and password in $ldap_bindn and $ldap_bindpw: |
| 219 | |
| 220 | {{{ |
| 221 | $ldap_binddn = "cn=manager,dc=example,dc=com"; |
| 222 | $ldap_bindpw = "secret"; |
| 223 | }}} |
| 224 | |
| 225 | '''LDAP Base''' |
| 226 | |
| 227 | You can set global base in $ldap_base: |
| 228 | |
| 229 | {{{ |
| 230 | $ldap_base = "dc=example,dc=com"; |
| 231 | }}} |
| 232 | |
| 233 | '''User search parameters''' |
| 234 | |
| 235 | You can set base of the search in $ldap_user_base: |
| 236 | |
| 237 | {{{ |
| 238 | $ldap_user_base = "ou=users,".$ldap_base; |
| 239 | }}} |
| 240 | |
| 241 | The filter can be set in $ldap_user_filter: |
| 242 | {{{ |
| 243 | $ldap_user_filter = "(objectClass=inetOrgPerson)"; |
| 244 | }}} |
| 245 | |
| 246 | '''Size limit''' |
| 247 | |
| 248 | It is advised to set a search limit on client side if no limit is set by the server: |
| 249 | |
| 250 | {{{ |
| 251 | $ldap_size_limit = 100; |
| 252 | }}} |
| 253 | |
| 254 | '''Default password policy''' |
| 255 | |
| 256 | Set $ldap_default_ppolicy value if a default policy is configured in your LDAP directory. |
| 257 | |
| 258 | {{{ |
| 259 | $ldap_default_ppolicy = "cn=default,ou=ppolicy,dc=example,dc=com"; |
| 260 | }}} |
| 261 | |