1

Topic: Can't edit User > Advanced iRedAdmin Pro 3.1

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

HI. I recently upgraded from 0.9.7 to 0.9.8 using the page found below.
https://docs.iredmail.org/upgrade.iredm … 0.9.8.html

Everything seems to work fine. however when I go into a user and try to tick/untick some options, it comes back as "Profile updated success", however the items I changed are still the same. EG: untick "BCC outgoing emails to other address", Press Save, "Profile updated success" appears at the top of the screen, but "BCC outgoing emails to other address" is still ticked.

Only thing I can find in the log is

24/Oct/2018:12:48:20 +1000] 203.13.70.60 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "POST /admin/profile/user/advanced/rpc-smtp-local@rpc.com.au HTTP/1.1" -
[24/Oct/2018:12:48:20 +1000] 203.13.70.60 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /admin/profile/user/advanced/rpc-smtp-local@rpc.com.au?msg=UPDATED HTTP/1.1" 31893

----

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

2

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

Any error in Nginx or uwsgi log file?

3

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

ZhangHuangbin wrote:

Any error in Nginx or uwsgi log file?

Not using nginx. Only thing in the uswgi log is the startup

*** Starting uWSGI 2.0.17.1 (64bit) on [Wed Oct 24 12:39:54 2018] ***
compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-23) on 09 July 2018 04:01:13
os: Linux-2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018
nodename: iredmail.onthenet.com.au
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /
writing pidfile to /run/uwsgi/uwsgi.pid
open("/run/uwsgi/uwsgi.pid"): No such file or directory [core/utils.c line 3613]

4

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

I've fixed up uwsgi startup

*** Starting uWSGI 2.0.17.1 (64bit) on [Thu Oct 25 09:06:00 2018] ***
compiled with version: 4.4.7 20120313 (Red Hat 4.4.7-23) on 09 July 2018 04:01:13
os: Linux-2.6.32-754.6.3.el6.x86_64 #1 SMP Tue Oct 9 17:27:49 UTC 2018
nodename: iredmail.onthenet.com.au
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 4
current working directory: /

5

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

I've restarted mlmmjadmin and made sure uwsgi is running. Still the same thing happeneing.

6

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

sbignell wrote:

I've restarted mlmmjadmin and made sure uwsgi is running. Still the same thing happeneing.

Just noticed I am running mlmmjadmin 1.5 and you've updated the doc to show 1.7. Do you have a document to upgrade mlmmjadmin 1.5 to 1.7? (not sure if it will fix the issue)

7

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

sbignell wrote:
sbignell wrote:

I've restarted mlmmjadmin and made sure uwsgi is running. Still the same thing happeneing.

Just noticed I am running mlmmjadmin 1.5 and you've updated the doc to show 1.7. Do you have a document to upgrade mlmmjadmin 1.5 to 1.7? (not sure if it will fix the issue)

Any thoughts? This is becoming an issue for customers. I have 750 Domains on this server.

8

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

I've upgraded from mlmmjadmin 1.5 to 1.7 but the issue remains.

9 (edited by sbignell 2018-10-26 09:03:26)

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

Hi

I have built a new server running on Centos 7 following the directions at
https://docs.iredmail.org/install.iredmail.on.rhel.html

This server has only the default domain set up during the install, iRedadmin-Pro 3.1, and it has the same issue that you can't edit the advance config of a user.

10

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

Hi

Done some more troubleshooting. If I enable (tick) an option in the interface it works. But if I then untick the same option it doesn't. When I go into the LDAP editor it allows me to disable it there. So it seems I can enable options in the advanced interface, but not disable them.

11

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

sbignell wrote:

- Web server (Apache or Nginx): Apache

Any error in Apache log file when iRedAdmin-Pro got internal server error?

12

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

ZhangHuangbin wrote:
sbignell wrote:

- Web server (Apache or Nginx): Apache

Any error in Apache log file when iRedAdmin-Pro got internal server error?

I posted the Apache log in the original post. There is no Internal Server Error. It says it's done it, but it doesn't actually go to the Ldap server and change the attricute. It does however, if I tick an item. It's only unticking (removing) the item that doesn't work.

13

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

Did you check Apache error log file? It has 2 log files, one for normal access, another for errors. /var/log/httpd/*error*

I need relevant log for troubleshooting.

14

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

ZhangHuangbin wrote:

Did you check Apache error log file? It has 2 log files, one for normal access, another for errors. /var/log/httpd/*error*

I need relevant log for troubleshooting.

Hi. No nothing comes up in the error log. When I go into a user and make a change, the only logs updated are ssl_access and ssl_request and those are both normal.

15

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

i will try to reproduce this issue locally and come back with a fix.

16

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

ZhangHuangbin wrote:

i will try to reproduce this issue locally and come back with a fix.

Hi. Were you able to reproduce the issue?

17

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

Confirmed it's a bug and fixed, here's patch for iRedAdmin-Pro-LDAP-3.1:

diff -Naur a/libs/ldaplib/attrs.py b/libs/ldaplib/attrs.py
--- a/libs/ldaplib/attrs.py    2018-08-14 14:01:17.000000000 +0200
+++ b/libs/ldaplib/attrs.py    2018-10-30 20:45:51.000000000 +0100
@@ -92,6 +92,9 @@
 USER_FILTER = '(objectClass=mailUser)'
 USER_ATTR_PASSWORD = 'userPassword'
 
+USER_SERVICES_INTERNAL = ('internal', 'doveadm', 'lib-storage',
+                          'indexer-worker', 'dsync')
+
 # Services for normal user. used while adding a new mail user.
 USER_SERVICES_OF_NORMAL_USER = (
     'internal', 'doveadm', 'lib-storage', 'indexer-worker', 'mail', 'dsync',
diff -Naur a/libs/ldaplib/user.py b/libs/ldaplib/user.py
--- a/libs/ldaplib/user.py    2018-08-14 14:01:17.000000000 +0200
+++ b/libs/ldaplib/user.py    2018-10-30 20:46:21.000000000 +0100
@@ -1659,7 +1659,7 @@
         if not _enabled_services:
             _enabled_services = None
 
-        user_enabled_services = list(set(user_enabled_services + _enabled_services))
+        user_enabled_services = list(set(set(list(attrs.USER_SERVICES_INTERNAL) + _enabled_services)))
 
         # allow_nets
         _allow_nets = form.get('allow_nets', '').splitlines()

18

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

Thank You!

Coffee's on the way!

19

Re: Can't edit User > Advanced iRedAdmin Pro 3.1

Thank you very much. smile