1 (edited by ziconick 2011-08-05 01:12:55)

Topic: [FIXED] BUG - "Profile of user -> Advanced"

When I change the settings on the "Profile of user -> Advanced" two checkboxes are always unchecked, see images.

==== Provide basic information to help troubleshoot ====
- iRedMail version: iRedMail-0.7.2 + iRedAdmin-Pro-LDAP-1.6.1
- Linux/BSD distribution name and version: Ubuntu Server 10.04.3
- Any related log? Log is helpful for troubleshooting.
====

Post's attachments

bug.png 38.13 kb, 1 downloads since 2011-08-02 

You don't have the permssions to download the attachments of this post.

2

Re: [FIXED] BUG - "Profile of user -> Advanced"

help please!

3

Re: [FIXED] BUG - "Profile of user -> Advanced"

Oops, i forgot to reply this post.

This bug was fixed weeks ago, will paste patch here later (reply with my cellphone now).
Thanks very much for your feedback.

4

Re: [FIXED] BUG - "Profile of user -> Advanced"

Here's patch for iRedAdmin-Pro-LDAP-1.6.1:

--- libs/ldaplib/attrs.py
+++ libs/ldaplib/attrs.py
@@ -97,9 +97,9 @@ USER_FILTER = '(objectClass=mailUser)'
 USER_ATTR_PASSWORD = 'userPassword'
 # All availabe services.
 USER_ENABLED_SERVICES = (
     'internal',
-    'mail', 'smtp',
+    'mail', 'smtp', 'smtpsecured',
     'pop3', 'pop3secured',
     'imap', 'imapsecured',
     'deliver', 'forward',
     'recipientbcc', 'senderbcc',
@@ -110,9 +110,9 @@ USER_ENABLED_SERVICES = (
 
 # Services availabel in 'Service Control' page.
 USER_SERVICE_UNDER_CONTROL = [
     'internal',
-    'mail', 'smtp',
+    'mail', 'smtp', 'smtpsecured',
     'pop3', 'pop3secured',
     'imap', 'imapsecured',
     'deliver', 'forward',
     'recipientbcc', 'senderbcc',

--- templates/default/macros/ldap.html
+++ templates/default/macros/ldap.html
@@ -116,9 +116,9 @@ Display enabledService
             {% if srv[0] != 'hidden' %}
                 <h4 class="size-250 fl-space">&nbsp;</h4>
             {% endif %}
             <div class="form-checkbox-item clear">
-                <input type="{{ srv[0] }}" name="enabledService" value="{{ srv[1] }}" {% if srv[1] in enabledService %}checked{%endif%} class="{{ srv[0] }} fl-space" rel="checkboxhorizont" />
+                <input type="{{ srv[0] }}" name="enabledService" value="{{ srv[1] }}" {% if srv[1] in enabledService  or srv[1] |lower in enabledService %}checked{%endif%} class="{{ srv[0] }} fl-space" rel="checkboxhorizont" /><label>{{ srv[2] }}</label></div>
         {% endfor %}
 {%- endmacro %}

Sorry for my delayed response.

5

Re: [FIXED] BUG - "Profile of user -> Advanced"

ok work