2024-02-20 13:42:37 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
domain="$1"
|
|
|
|
gal_status="$2"
|
|
|
|
|
2024-02-26 14:14:08 +02:00
|
|
|
echo "
|
2024-02-20 13:42:37 +02:00
|
|
|
<!--
|
|
|
|
<example>
|
|
|
|
<key>canAuthenticate</key>
|
|
|
|
<string>YES</string>
|
|
|
|
<key>id</key>
|
2024-02-26 14:14:08 +02:00
|
|
|
<string>"${domain}"_ldap</string>
|
2024-02-20 13:42:37 +02:00
|
|
|
<key>isAddressBook</key>
|
2024-02-26 14:14:08 +02:00
|
|
|
<string>"${gal_status}"</string>
|
2024-02-20 13:42:37 +02:00
|
|
|
<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
|
|
|
-->"
|