From iRedMail
Revision as of 07:53, 18 August 2010 by ZhangHuangbin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

We add 'jabber' service for example. It will be used as "enabledService=jabber" in LDAP. You can manage it in iRedAdmin-Pro, like in this screenshot: Domain Profile: Service Control, User Profile: Service Control.

  • Open libs/ldaplib/, add 'jabber' (or whatever you want) in below two lists:
File: libs/libldap/
  • Open libs/ldaplib/, find line 160, in function "ldif_mailuser", append 'jabber':
File: libs/ldaplib/
         ('enabledService',      ['mail', 'smtp', 'deliver', 'jabber',
  • [iRedAdmin-Pro-1.3.0 and newer version] Open templates/default/macros.html, find below lines in macro "display_enabled_services":
File: templates/default/macros.html
{% macro display_enabled_services(accountType, enabledService) -%}

    {% elif accountType == 'user' %}
        {% set available_services = [
                ('hidden', 'internal', ''),
                ... SKIP OTHER SERVICES HERE ...
                ('checkbox', 'jabber', _('Jabber IM Service')),             # <-- Add this line.
  • [iRedAdmin-Pro-1.2.0 only] Open templates/default/macros.html, find line 360, in macro "display_enabled_services", append 'jabber':
File: templates/default/macros.html

            {# We already have below lines, don't touch them #}
            <div class="mf-item">
                <span class="fld-input"><input type="checkbox" name="enabledService" value="managesievesecured" {% if 'managesievesecured' in enabledService %}checked{%endif%}/></span>
                <label>{{ _('Customize mail filter rule over TLS/SSL.') }}</label>

{# <-- Append 'jabber' service below #}

            <div class="mf-item">
                <span class="fld-input"><input type="checkbox" name="enabledService" value="jabber" {% if 'jabber' in enabledService %}checked{%endif%}/></span>
                <label>{{ _('Jabber service.') }}</label>

{# <-- END #}
Personal tools