Evan's picture

I am having trouble getting active directory integration working with my mayan edms turnkey setup, i followed the instructions on this forum to upgrade to 2.7.3  and i am using the following config file as the local.py file https://gitlab.com/mayan-edms/mayan-edms/blob/development/contrib/settin... i either end up with an "internal server error" or I get the login screen but no credentials I use work, AD or the default login. 

Forum: 
Jeremy Davis's picture

Unfortunately, I don't know much about Mayan-EDMS and even less about LDAP, so I'm not sure how useful I'll be here... OTOH, I have a solid understanding of TurnKey so hopefully we might get somewhere... :)

After doing a quick google, I'm not sure, but my guess is that there are missing dependencies. I could be wrong, but in my experience, it's often the cause of something not working as it should, especially when others report it working fine.

That guess would also be consistent with the "internal server error" message. The Mayan appliance uses Nginx as a reverse proxy, so as a general rule the "internal server error" means that Mayan has crashed (which would be expected behaviour if a needed python library was missing).

According to this you'll need to install a few packages via pip. So the steps should look something like this:

cd /usr/share
virtualenv mayan-edms
source /usr/share/mayan-edms/bin/activate
pip install ldap
pip install python-ldap
pip install django-auth-ldap
I haven't tested it, so I have no idea if it'll work, or not. If you have content in Mayan already though, please test on a VM and/or make a backup first!

If you've already tried the above and/or something similar, I'm not really sure, but please share some further info about exactly what you have tried and also give some info from your logs (you may need to tweak Mayan settings to get explicit logs?).

Actually, perhaps that's even worth doing first? Rather than just trying random steps in the hope it works! Either way, I'd love to hear how you get on. Good luck.

Add new comment