You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1 KiB

  1. LDAP authentication
  2. ===================
  3. ## Goal
  4. Authenticat user against LDAP directories
  5. It will bind with the user's login/pasword and query attributs ("mail" for instance) in a pool of directory servers
  6. The first OK wins.
  7. If there's connection error, the server will be disabled and won't be checked again
  8. ## Usage
  9. In the [security] section, set
  10. > LDAP_AUTH = true
  11. then for each LDAP source, set
  12. > [LdapSource-someuniquename]
  13. > name=canonicalName
  14. > host=hostname-or-ip
  15. > port=3268 # or regular LDAP port
  16. > # the following settings depend highly how you've configured your AD
  17. > basedn=dc=ACME,dc=COM
  18. > MSADSAFORMAT=%s@ACME.COM
  19. > filter=(&(objectClass=user)(sAMAccountName=%s))
  20. ### Limitation
  21. Only tested on an MS 2008R2 DC, using global catalog (TCP/3268)
  22. This MSAD is a mess.
  23. The way how one checks the directory (CN, DN etc...) may be highly depending local custom configuration
  24. ### Todo
  25. * Define a timeout per server
  26. * Check servers marked as "Disabled" when they'll come back online
  27. * Find a more flexible way to define filter/MSADSAFORMAT/Attributes etc... maybe text/template ?
  28. * Check OpenLDAP server
  29. * SSL support ?