Commits

Zhang Huangbin committed 5dd90f7

Add some default domain settings for first mail domain with LDAP backend:
* default minimal password length: 8 characters
* default mailbox quota for newly create user: 1024MB.

  • Participants
  • Parent commits 11eec6a

Comments (0)

Files changed (2)

File iRedMail/conf/openldap

 
 # Shared attributes.
 export LDAP_ATTR_ACCOUNT_STATUS='accountStatus'
+export LDAP_ATTR_ACCOUNT_SETTING='accountSetting'
 export LDAP_ATTR_MTA_TRANSPORT='mtaTransport'
 
 # Domain admin related.

File iRedMail/functions/ldap_server.sh

 ${LDAP_ATTR_DOMAIN_RDN}: ${FIRST_DOMAIN}
 ${LDAP_ATTR_MTA_TRANSPORT}: ${TRANSPORT}
 ${LDAP_ATTR_ACCOUNT_STATUS}: ${LDAP_STATUS_ACTIVE}
+${LDAP_ATTR_ACCOUNT_SETTING}: minPasswordLength:8
+${LDAP_ATTR_ACCOUNT_SETTING}: defaultQuota:1024
 ${LDAP_ENABLED_SERVICE}: ${LDAP_SERVICE_MAIL}
 ${LDAP_ENABLED_SERVICE}: ${LDAP_SERVICE_SENDER_BCC}
 ${LDAP_ENABLED_SERVICE}: ${LDAP_SERVICE_RECIPIENT_BCC}