1 (edited by rk 2013-08-13 16:53:20)

Topic: [SOLVED] Internal server error

==== 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.5  - iRedAdmin-Pro    v2.0 (LDAP)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: FreeBSD 9.1
- Related log if you're reporting an issue:
====

When logging into iRedAdmin-Pro v2.0 as valid user, but with no admin rights, white page with error "internal server error" appears.


Mail with error description and traceback is sent to server administrator:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 239, in process
    return self.handle()
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 230, in handle
    return self._delegate(fn, self.fvars, args)
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 420, in _delegate
    return handle_class(cls)
  File "/usr/local/lib/python2.7/site-packages/web/application.py", line 396, in handle_class
    return tocall(*args)
  File "/usr/local/www/iredadmin/controllers/ldap/basic.py", line 72, in POST
    qr_user_auth = auth.Auth(uri, dn_user, password)
  File "/usr/local/www/iredadmin/libs/ldaplib/auth.py", line 70, in Auth
    raise ldap.INVALID_CREDENTIALS
INVALID_CREDENTIALS

----

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

2

Re: [SOLVED] Internal server error

Sorry about this trouble.

1. Login username must be an admin account, in email address format.
2. iRedAdmin-Pro should return INVALID_CREDENTIALS message instead of 'internal server error' if login username is not an admin. You can fix it with below step:

*) Open file libs/ldaplib/auth.py, find below line (about line 69-70):

     if not qr:                                                                                                            
         raise ldap.INVALID_CREDENTIALS

*) Change the second line (line 70) to below one:

     if not qr:                                                                                                            
         return False

*) Restart Apache service and try again.

This fix will be available in next release of iRedAdmin-Pro. Thanks very much for your feedback.

3

Re: [SOLVED] Internal server error

Yes, this solved the issue.

Thank you very much!