Commits

Zhang Huangbin committed 90fd621

Add filter: enabledService=shadowaddress.

Comments (0)

Files changed (1)

src/plugins/ldap_maillist_access_policy.py

             logger.debug('(%s) Addition query to get user aliases...' % (PLUGIN_NAME))
 
             basedn = 'ou=Users,' + domaindn
-            searchFilter = '(&(objectClass=mailUser)(|'
+            searchFilter = '(&(objectClass=mailUser)(enabledService=shadowaddress)(|'
             for i in userList:
                 searchFilter += '(mail=%s)' % i
             searchFilter += '))'