1

Topic: After upgrade can't change user password

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 OPENLDAP edition
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Debian 9
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

when i try to change the password of user, the following error is return :

"Error: TypeError('argument 3 must be str, not None',)"

Thanks

----

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

2

Re: After upgrade can't change user password

Same problem after upgrading from iRedAdmin-Pro-LDAP-4.3 to iRedAdmin-Pro-LDAP-4.7. Any solutions?

3

Re: After upgrade can't change user password

Sorry about this trouble.

Weird that i can not reproduce this issue locally.

Is it possible to give me direct ssh access with root privilege and an admin account for troubleshooting and fixing? If it's ok, please contact me: zhb _at_ iredmail _dot_ org

4

Re: After upgrade can't change user password

Dear all,

Confirmed it's a bug and fixed moment ago. here's the patch for iRedAdmin-Pro-LDAP-4.7. If you're not familiar with patch, please contact us to get a patched version for upgrading. https://www.iredmail.org/contact.html

diff --git a/libs/ldaplib/general.py b/libs/ldaplib/general.py
index c9a8fc0e..1b5c6c33 100644
--- a/libs/ldaplib/general.py
+++ b/libs/ldaplib/general.py
@@ -1679,7 +1679,7 @@ def get_profile_by_dn(dn, query_filter=None, attributes=None, conn=None):
     if not attributes:
         attributes = ['*']
 
-    if not filter:
+    if not query_filter:
         query_filter = "(objectClass=*)"
 
     try: