I see a lot of value in including this in the documentation. Are you 
willing to maintain this part of the docs if included? How about adding a 
basic install step for a standalone OpenLDAP server?


On Tuesday, June 7, 2016 at 5:08:37 PM UTC-4, Victor Zele wrote:
>
> I ran the update to 2.1.1 and my Active Director/LDAP auth is still 
> working as expected.
>
> Below is what I had to set in my /usr/share/mayan-edms/local.py file after 
> PIP installing the LDAP modules with:
>
> *pip install ldap*
> *pip install python-ldap*
> *pip install django-auth-ldap*
>
> Victor
> ========================
> from __future__ import absolute_import
>
> from .base import *
>
> import ldap
> from django_auth_ldap.config import LDAPSearch
>
> #### ----cut ---
> # End of file inserted
>
> AUTH_LDAP_SERVER_URI = "ldap://AD-Servername:389";
> AUTH_LDAP_BIND_DN = 'CN=BINDUSERNAME,CN=BINDUSERCN,DC=YOURDOMAIN,DC=com'
> AUTH_LDAP_BIND_PASSWORD = 'BindPassword'
> AUTH_LDAP_USER_SEARCH = LDAPSearch('OU=youruserOU,DC=yourdomain,DC=com', 
> ldap.SCOPE_SUBTREE, '(SAMAccountName=%(user)s)')
>
> # Populate the Django user from the LDAP directory.
> AUTH_LDAP_USER_ATTR_MAP = {
> "first_name": "givenName",
> "last_name": "sn",
> "email": "mail"
> }
>
> # This is the default, but I like to be explicit.
> AUTH_LDAP_ALWAYS_UPDATE_USER = True
>
> AUTHENTICATION_BACKENDS = (
> 'django_auth_ldap.backend.LDAPBackend',
> 'django.contrib.auth.backends.ModelBackend',
> )
>
> ===========================
> Then run,
>
> *supervisorctl stop all*
> *mayan-edms.py collectstatic --noinput*
> *supervisorctl start all*
>
> On Friday, June 3, 2016 at 11:01:05 AM UTC-7, Subhash Pant wrote:
>>
>> Roberto,
>>
>> I am adding the following code segment to local.py, with my LDAP setting. 
>> I have an older version of Mayan that has LDAP working, but looks like a 
>> few filenames have changed on the new releases.
>>
>> I included the code in the local.py and ran mayan-edms.py initialsetup. 
>> However, I could not get the LDAP/AD to work. Am I missing anything?
>>
>> Thanks.
>>
>> On Tuesday, April 26, 2016 at 5:34:49 PM UTC-5, Roberto Rosario wrote:
>>>
>>> Thank you for confirming that this still works!
>>>
>>> On Friday, April 22, 2016 at 1:11:21 PM UTC-4, Victor Zele wrote:
>>>>
>>>> I can confirm this works for 2.0.2 LDAP authentication adding to the 
>>>> local.py settings file.  The usable password is marked red which is 
>>>> correct 
>>>> since the password is managed in LDAP/AD.
>>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to