-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LDAP Config with latest version. #271
Comments
If you want full control over the ldap auth configs, base your |
Thanks!! I made the change and after that I get following error. Any ideas on this? DEBUG=True coldfront runserver coldfront.rc.fas.harvard.edu:9000 |
@raminderj Check if you have an old |
@raminderj Any luck getting this to work? |
thanks for following up on this. To fix the django_su error, I have to set ENABLE_SU=False in coldfront.env. After that the server starts fine and I am able to login using local account but LDAP still does not work. I looked into ./coldfront/config/plugins/ldap.py and found few things. I see now there is no AUTH_LDAP_BIND_DN and AUTH_LDAP_BIND_PSSWORD config's. Where should I set those? If I add those to coldfront.env, will it work? I am getting the following error. Any idea on how to fix this? search_s('ou=rc,ou=Domain Users,dc=rc,dc=domain', 2, '(uid=rjsingh)') raised OPERATIONS_ERROR({'msgtype': 101, 'msgid': 2, 'result': 1, 'desc': 'Operations error', 'ctrls': [], 'info': '000004DC: LdapErr: DSID-0C090A5C, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563'},) |
@raminderj This is bug. I can re-produce this. Should have a fix out shortly. Thanks for reporting this!
These are missing and will be added in the next release. |
@raminderj Just released |
Yes, I did test your latest changes and it works. Thanks!! |
Excellent! Thanks again for reporting this. |
I am using COLDFRONT_CONFIG=/srv/coldfront/local_settings.py to set path to local_setting and trying to connect to our ldap. I am having issues starting the server. The previous version works fine with the same config but not able to make it work with v1.0.3.
Following are the sample config in local_settings.py. The coldfront server does not start with the following config.
import ldap
from django_auth_ldap.config import GroupOfNamesType, LDAPSearch
PLUGIN_AUTH_LDAP=True
AUTH_LDAP_SERVER_URI='server'
AUTH_LDAP_USER_SEARCH_BASE='dc=rc,dc=domain'
AUTH_LDAP_START_TLS=False
#AUTH_LDAP_BIND_AS_AUTHENTICATING_USER=False
AUTH_LDAP_BIND_DN='user'
AUTH_LDAP_BIND_PASSWORD='passssss'
#AUTH_LDAP_MIRROR_GROUPS=True
AUTH_LDAP_USER_SEARCH=LDAPSearch(AUTH_LDAP_USER_SEARCH_BASE, ldap.SCOPE_SUBTREE, '(uid=%(user)s)')
AUTH_LDAP_GROUP_SEARCH_BASE='dc=rc,dc=domain'
AUTH_LDAP_GROUP_SEARCH=LDAPSearch(AUTH_LDAP_GROUP_SEARCH_BASE, ldap.SCOPE_SUBTREE, '(objectClass=groupOfNames)')
AUTH_LDAP_GROUP_TYPE=GroupOfNamesType()
AUTH_LDAP_USER_ATTR_MAP={
#'uid' : 'sAMAccountName',
'username': 'uid',
'first_name': 'givenName',
'last_name': 'sn',
'email': 'mail',
}
EXTRA_AUTHENTICATION_BACKENDS+=['django_auth_ldap.backend.LDAPBackend',]
The text was updated successfully, but these errors were encountered: