Where only users in Active Directory can login to the Craft Control Panel.

1 Answer 1


There's a feature request here that would allow custom login forms for the Craft Control Panel login page you might want to add a comment to.

In the meantime, there is a userSession.onBeforeAuthenticate event a plugin can listen to to perform any 3rd party authentication.

You can see how a similar plugin did this for front-end LDAP logins here: https://github.com/thepitagroup/adldap_craftcms

  • Thanks for the help. I got LDAP working. would you help how to set the user session and permissions? I do not want to save to craft user table.
    – youme
    Feb 21, 2018 at 16:57
  • @youme Can you link to how you got LDAP working?
    – JMP
    May 4, 2018 at 22:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.