[SOGo] Read plist_ldap for dual auth via ldap, unsupported
parent
f76c3ee7f3
commit
9acd9c719d
|
@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
apt-transport-https \
|
apt-transport-https \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
cron \
|
cron \
|
||||||
|
gettext \
|
||||||
gnupg \
|
gnupg \
|
||||||
mysql-client \
|
mysql-client \
|
||||||
supervisor \
|
supervisor \
|
||||||
|
|
|
@ -150,8 +150,11 @@ while read line
|
||||||
<string>YES</string>
|
<string>YES</string>
|
||||||
<key>viewURL</key>
|
<key>viewURL</key>
|
||||||
<string>mysql://${DBUSER}:${DBPASS}@%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock/${DBNAME}/_sogo_static_view</string>
|
<string>mysql://${DBUSER}:${DBPASS}@%2Fvar%2Frun%2Fmysqld%2Fmysqld.sock/${DBNAME}/_sogo_static_view</string>
|
||||||
</dict>
|
</dict>" >> /var/lib/sogo/GNUstep/Defaults/sogod.plist
|
||||||
</array>
|
# Generate alternative LDAP authentication dict, when SQL authentication fails
|
||||||
|
# This will nevertheless read attributes from LDAP
|
||||||
|
line=${line} envsubst < /etc/sogo/plist_ldap >> /var/lib/sogo/GNUstep/Defaults/sogod.plist
|
||||||
|
echo " </array>
|
||||||
</dict>" >> /var/lib/sogo/GNUstep/Defaults/sogod.plist
|
</dict>" >> /var/lib/sogo/GNUstep/Defaults/sogod.plist
|
||||||
done < <(mysql --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain;" -B -N)
|
done < <(mysql --socket=/var/run/mysqld/mysqld.sock -u ${DBUSER} -p${DBPASS} ${DBNAME} -e "SELECT domain FROM domain;" -B -N)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue