Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Edit authenciation.php
  • Search for "ldapLogin"
  • Search for "EXAMPLE1 LDAP" in the function
  • Wiki Markup
    Uncomment the block of code it is contained in by removing the '/*' at the beginning of the line containing 'EXAMPLE1 LDAP', and removing the '*/' at the end of the else that is before '$ldapuser = sprintf($authMechs\[\]['userid'], $userid);'
  • change 'EXAMPLE1 LDAP' to match what you changed it to in step 3
  • Look for the line containing 'cn=$userid'. If you use 'cn' to look up userids in your LDAP server, the line is fine as is. If you use something else, such as 'uid', change 'cn' to 'uid' or whatever is used on your LDAP server.
  • Save the file