Update integration.mlmmj.ldap.html, fix incorrect ldap search base and scope.
This commit is contained in:
parent
1bc8a1fc57
commit
d1b507b70a
|
@ -135,6 +135,14 @@ mlmmj_destination_recipient_limit = 1
|
|||
query_filter = (&(accountStatus=active)(!(domainStatus=disabled))(enabledService=mail)(enabledService=deliver)(|(&(objectClass=mailUser)(|(memberOfGroup=%s)(shadowAddress=%s)))(&(memberOfGroup=%s)(!(shadowAddress=%s))(|(objectClass=mailExternalUser)(&(objectClass=mailList)(!(enabledService=mlmmj)))(objectClass=mailAlias)))(&(objectClass=mailList)(enabledService=mlmmj)(|(mail=%s)(shadowAddress=%s)))))
|
||||
```
|
||||
|
||||
* Open file `/etc/postfix/ldap/transport_maps_user.cf`, make sure no `ou=Users,`
|
||||
in `search_base =` line, and change `scope = one` to `scope = sub`:
|
||||
|
||||
```
|
||||
search_base = domainName=%d,o=domains,dc=xx,dc=xx
|
||||
scope = sub
|
||||
```
|
||||
|
||||
* Open file `/etc/postfix/ldap/transport_maps_user.cf`, replace the
|
||||
`query_filter` line by below one. It will query both mail user and mlmmj
|
||||
mailing list.
|
||||
|
|
|
@ -155,6 +155,14 @@ mlmmj unix - n n - - pipe
|
|||
<pre><code>query_filter = (&(accountStatus=active)(!(domainStatus=disabled))(enabledService=mail)(enabledService=deliver)(|(&(objectClass=mailUser)(|(memberOfGroup=%s)(shadowAddress=%s)))(&(memberOfGroup=%s)(!(shadowAddress=%s))(|(objectClass=mailExternalUser)(&(objectClass=mailList)(!(enabledService=mlmmj)))(objectClass=mailAlias)))(&(objectClass=mailList)(enabledService=mlmmj)(|(mail=%s)(shadowAddress=%s)))))
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Open file <code>/etc/postfix/ldap/transport_maps_user.cf</code>, make sure no <code>ou=Users,</code>
|
||||
in <code>search_base =</code> line, and change <code>scope = one</code> to <code>scope = sub</code>:</li>
|
||||
</ul>
|
||||
<pre><code>search_base = domainName=%d,o=domains,dc=xx,dc=xx
|
||||
scope = sub
|
||||
</code></pre>
|
||||
|
||||
<ul>
|
||||
<li>Open file <code>/etc/postfix/ldap/transport_maps_user.cf</code>, replace the
|
||||
<code>query_filter</code> line by below one. It will query both mail user and mlmmj
|
||||
|
|
Loading…
Reference in New Issue