ensky / taiga-contrib-ldap-auth

Taiga plugin for LDAP authentication
http://taiga.io
GNU Affero General Public License v3.0
54 stars 37 forks source link

502 error #20

Closed mroe1234 closed 9 years ago

mroe1234 commented 9 years ago

I have included my configurations below. When I try to log in via an LDAP user, my browser gets 502 errors, as seen in this screen capture: http://www.zimagez.com/zimage/screenshot-09102015-025807pm.php

I don't see anything in the logs folder except for the gunicorn stuff. Some guidance would be appreciated.

Thanks

===============localy.py==============

 INSTALLED_APPS += ["taiga_contrib_ldap_auth"]
  LDAP_SERVER = 'ldap://nis.roe.lan'
  LDAP_PORT = 389

  # Full DN of the service account use to connect to LDAP server and search for login user's account entry
  # If LDAP_BIND_DN is not specified, or is blank, then an anonymous bind is attempated
#  LDAP_BIND_DN = 'CN=SVC Account,OU=Service Accounts,OU=Servers,DC=example,DC=com'
#  LDAP_BIND_PASSWORD = 'replace_me'   # eg.
  # Starting point within LDAP structure to search for login user
#  LDAP_SEARCH_BASE = 'OU=DevTeam,DC=example,DC=net'
  LDAP_SEARCH_BASE = 'dc=roe,dc=lan'
  # LDAP property used for searching, ie. login username needs to match value in sAMAccountName property in LDAP
#  LDAP_SEARCH_PROPERTY = 'sAMAccountName'
  LDAP_SEARCH_PROPERTY = 'uid'
  LDAP_SEARCH_SUFFIX = None # '@example.com'

  # Names of LDAP properties on user account to get email and full name
  LDAP_EMAIL_PROPERTY = 'mail'
  LDAP_FULL_NAME_PROPERTY = 'cn'

==========conf.json===========

$  cat taiga-front-dist/dist/js/conf.json
{
    "api": "http://taiga.roe.lan/api/v1/",
    "eventsUrl": null,
    "debug": true,
    "debugInfo": false,
    "defaultLanguage": "en",
    "publicRegisterEnabled": true,
    "feedbackEnabled": true,
    "privacyPolicyUrl": null,
    "termsOfServiceUrl": null,
    "maxUploadFileSize": null,
    "contribPlugins": [],
    "loginFormType": "ldap"
}
mroe1234 commented 9 years ago

I have confirmed through tcpdump that there is no request being sent to nis.roe.lan at log in time.

mroe1234 commented 9 years ago

I figured out that for some reason it was ignoring my conf.json, so I made my changes in the app-loader file and everything is working now.