1
1

I am trying to setup LDAP auth using the module defined in the patch here (tgz version).

My OSQA version was built from SVN trunk a few days ago as described here.

  • Why isn't this module part of the trunk yet ? It seems a very important feature to me.
  • After unzipping the module in OSQAforum_modulesldapauth, I get this error when I start the server :
    C:Python26Libsite-packagesOSQA>manage.py runserver  192.168.0.24:8000
    Traceback (most recent call last):
      File "C:Python26Libsite-packagesOSQAmanage.py", line 4, in <module>
        import settings # Assumed to be in the same directory.
      File "C:Python26Libsite-packagesOSQAsettings.py", line 98, in <module>
        not f in DISABLED_MODULES
      File "C:Python26Libsite-packagesOSQAforum_modulesldapauth_init.py",
    line 1, in <module>
        import settings
      File "C:Python26Libsite-packagesOSQAforum_modulesldapauthsettings.py",
    line 1, in <module>
        from forum.settings.base import Setting, SettingSet
      File "C:Python26Libsite-packagesOSQAforumsettings__init.py", line 11,
     in <module>
        SVN_REVISION = get_svn_revision(djsettings.SITE_SRC_ROOT)
      File "C:Python26libsite-packagesdjango-1.3-py2.6.eggdjangoutilsfunction
    al.py", line 276, in getattr
        self._setup()
      File "C:Python26libsite-packagesdjango-1.3-py2.6.eggdjangoconf__init_.
    py", line 40, in _setup
        raise ImportError("Settings cannot be imported, because environment variable
     %s is undefined." % ENVIRONMENT_VARIABLE)
    ImportError: Settings cannot be imported, because environment variable DJANGO_SE
    TTINGS_MODULE is undefined.
    Error: Can't find the file 'forms.py' in the directory containing 'C:\\Python26
    Lib\\site-packages\\OSQA\\manage.py'. It appears you've customized things.
    You'll have to run django-admin.py, passing it your settings module.
    (If the file forms.py does indeed exist, it's causing an ImportError somehow.)
    

asked 13 Jun '11, 06:17

Michel%20Daviot's gravatar image

Michel Daviot
16124
accept rate: 0%

edited 15 Jun '11, 02:47


Hi Michel,

This ldap thing with OSQA, is quite complicated. I have tried using various ways and means to get this working, but somehow this just does not work. I have deployed this in a corporate environment, getting this to work with Windows ADS, but have done a SSO using all kinds of re-routing and stuff like that.

The way someone has taken effort in writing code for authentication using Open ID, Google, Facebook etc, I would strongly recommend some one writing a code for LDAP authentication, integrate it as a standard module, include all dependences while installation and more over test it thoroughly. Make it a part of the OSQA so that it works robustly the way rest of OSQA works. That my honest opinion. I am waiting for the LDAP to come up with any OSQA release.

link

answered 22 Jun '11, 09:51

kedar_apte's gravatar image

kedar_apte
59125
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×33
×32
×12

Asked: 13 Jun '11, 06:17

Seen: 643 times

Last updated: 22 Jun '11, 09:51

powered by OSQA