1

Topic: iredadmin ImportError No module named ldap

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian wheezy/sid
- Related log if you're reporting an issue:
====

When I try to connect to my iredamin interface, I got an "Internal Error" and apache logs tell me:

2012-12-01 22:35:59 ERROR 500: Internal Server Error.

[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195] Traceback (most recent call last):
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195]   File "/usr/local/lib/python2.7/site-packages/web.py-0.37-py2.7.egg/web/application.py", line 239, in process
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195]     return self.handle()
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195]   File "/usr/local/lib/python2.7/site-packages/web.py-0.37-py2.7.egg/web/application.py", line 230, in handle
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195]     return self._delegate(fn, self.fvars, args)
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195]   File "/usr/local/lib/python2.7/site-packages/web.py-0.37-py2.7.egg/web/application.py", line 416, in _delegate
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195]     mod = __import__(mod, None, None, [''])
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195]   File "/usr/share/apache2/iredadmin/controllers/ldap/basic.py", line 5, in <module>
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195]     import ldap
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195] ImportError: No module named ldap
[Sat Dec 01 22:36:52 2012] [error] [client 82.228.39.195] 

ldap-python is installed on my machine:

# dpkg -s python-ldap
Package: python-ldap
Status: install ok installed
Priority: optional
Section: python
Installed-Size: 449
Maintainer: Matej Vela <vela@debian.org>
Architecture: amd64
Version: 2.4.10-1
Replaces: python2.3-ldap (<< 2.2.0-1.1), python2.3-ldap-tls, python2.4-ldap (<< 2.2.0-1.1)
Provides: python2.6-ldap, python2.7-ldap
Depends: python2.7 | python2.6, python (>= 2.6.6-7~), python (<< 2.8), libc6 (>= 2.2.5), libldap-2.4-2 (>= 2.4.7)
Suggests: python-ldap-doc, python-pyasn1
Conflicts: python2.3-ldap (<< 2.2.0-1.1), python2.3-ldap-tls, python2.4-ldap (<< 2.2.0-1.1)
Description: LDAP interface module for Python
 This module provides a Python interface to the OpenLDAP client library
 (LDAP is the Lightweight Directory Access Protocol).
Homepage: http://www.python-ldap.org/

What can y do o solve that? I' ve look at many help, but nothing helps me. :-(

Thanks in advance,
Jacques Foucry

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: iredadmin ImportError No module named ldap

Does it work with below commands:

# python
>>> import ldap