Skip to content

Instantly share code, notes, and snippets.

@rcubetrac
rcubetrac / rcabook-setup.sh
Created April 6, 2016 20:55
Roundcube LDAP Setup
#!/bin/bash
#------------configuration--------------------------------
# the url of the openldap server
server="ldap://localhost:389";
# the static config file of openldap
config="/etc/ldap/slapd.conf";
# the LDAP base suffix and admin rootdn
@rcubetrac
rcubetrac / centos_rhel_install.sh​
Last active February 1, 2024 13:49
Roundcube Install Scripts
#!/bin/sh
clear
if [ -z "${mysql_roundcube_password}" ]; then
tmp=$(</dev/urandom tr -dc A-Za-z0-9 | head -c12)
read -p "MySQL roundcube user password [${tmp}]:" mysql_roundcube_password
mysql_roundcube_password=${mysql_roundcube_password:-${tmp}}
echo "MySQL roundcube: ${mysql_roundcube_password}" >> .passwords
fi