I got it! Ldap authentication works!
Thanks for your support. My base dn seemed to be wrong and i blanked out the field for the ldap groups.
But thanks again for support.
unfortunately during the testing phase another error occured.
at first we used django but now we want to switch to apache. i used the documentation but i'm getting an MOD_PYTHON ERROR at the end.
system:
opensuse 11.1 (64Bit)
apache 2.2.10-2.8.1
mod_python 3.3.1-147.35
python 2.6
the edited entries in the settings.py look like this:
DATABASE_NAME = '/srv/omero/webdb/db.sqlite3'
LOGDIR = '/srv/omero/weblog/'
those two directories (/srv/omero/webdb & /srv/omero/weblog) and subdirectories have the following permissions: -rw-rw-rw-
user: wwwrun
group: www
(the omero directory (/srv/omero/omero_dist/ has user:omero group:users)
the mod_python configuration is located in /etc/apache2/conf.d/ and looks like this:
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE omeroweb.settings
PythonDebug On
PythonPath "['/srv/omero/omero_dist/lib/python', '/srv/omero/omero_dist/lib/python/omeroweb'] + sys.path"
</Location>
when configurating the web settings my console says:
omero@sandstorm:/srv/omero/omero_dist> bin/omero web settings
/srv/omero/omero_dist/lib/python/omeroweb/custom_settings.py already exist. Do you want to ovewrite it? (yes/no)no
/srv/omero/omero_dist/lib/python/omeroweb/initial_data.json already exist. Do you want to ovewrite it? (yes/no)no
Database synchronization...
Installing json fixture 'initial_data' from absolute path.
Installed 2 object(s) from 1 fixture(s)
OMERO.web was configured successful. Please start the application.
The MOD_PYTHON ERROR:
ProcessId: 1709
Interpreter: 'sandstorm.charite.de'
ServerName: 'sandstorm.charite.de'
DocumentRoot: '/srv/www/htdocs'
URI: '/error/HTTP_SERVICE_UNAVAILABLE.html.var'
Location: '/'
Directory: None
Filename: '/usr/share/apache2/error/HTTP_SERVICE_UNAVAILABLE.html.var'
PathInfo: ''
Phase: 'PythonHandler'
Handler: 'django.core.handlers.modpython'
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib64/python2.6/site-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)
File "/srv/omero/omero_dist/lib/python/django/core/handlers/modpython.py", line 222, in handler
return ModPythonHandler()(req)
File "/srv/omero/omero_dist/lib/python/django/core/handlers/modpython.py", line 185, in __call__
self.load_middleware()
File "/srv/omero/omero_dist/lib/python/django/core/handlers/base.py", line 31, in load_middleware
for middleware_path in settings.MIDDLEWARE_CLASSES:
File "/srv/omero/omero_dist/lib/python/django/conf/__init__.py", line 28, in __getattr__
self._import_settings()
File "/srv/omero/omero_dist/lib/python/django/conf/__init__.py", line 59, in _import_settings
self._target = Settings(settings_module)
File "/srv/omero/omero_dist/lib/python/django/conf/__init__.py", line 92, in __init__
mod = __import__(self.SETTINGS_MODULE, {}, {}, [''])
File "/srv/omero/omero_dist/lib/python/omeroweb/settings.py", line 181, in <module>
filemode='a')
File "/usr/lib64/python2.6/logging/__init__.py", line 1358, in basicConfig
hdlr = FileHandler(filename, mode)
File "/usr/lib64/python2.6/logging/__init__.py", line 790, in __init__
stream = self._open()
File "/usr/lib64/python2.6/logging/__init__.py", line 810, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/srv/omero/weblog/OMEROweb.log'