1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00
mailcow-dockerized/data/conf/sogo/plist_ldap.sh

35 lines
1.2 KiB
Bash
Raw Normal View History

#!/bin/bash
domain="$1"
gal_status="$2"
2024-02-26 14:14:08 +02:00
echo "
<!--
<example>
<key>canAuthenticate</key>
<string>YES</string>
<key>id</key>
2024-02-26 14:14:08 +02:00
<string>"${domain}"_ldap</string>
<key>isAddressBook</key>
2024-02-26 14:14:08 +02:00
<string>"${gal_status}"</string>
<key>IDFieldName</key>
<string>mail</string>
<key>UIDFieldName</key>
<string>uid</string>
<key>bindFields</key>
<array>
<string>mail</string>
</array>
<key>type</key>
<string>ldap</string>
<key>bindDN</key>
<string>cn=admin,dc=example,dc=local</string>
<key>bindPassword</key>
<string>password</string>
<key>baseDN</key>
<string>ou=People,dc=example,dc=local</string>
<key>hostname</key>
<string>ldap://1.2.3.4:389</string>
</example>
2024-02-26 14:14:08 +02:00
-->"