This is an old revision of the document!
This guide tells how we install ZNC for our whole network, with integrated login to our X3 services.
apt-get install sasl2-bin/etc/defaults/saslauthd:START=yes MECHANISM="ldap"
/etc/saslauthd.conf:ldap_servers: ldaps://yourldapserver.domain ldap_search_base: ou=Users,dc=yourdomain,dc=org ldap_filter: (uid=%u) #ldap_tls_cacert_file: /etc/ssl/yourcertificate.cer
/etc/init.d/saslauthd starttestsaslauthd -u “yourldapuid” -p yourpassword -f /var/run/saslauthd/mux/usr/sbin/saslauthd -a ldap -c -m /var/run/saslauthd -n 1 -d/var/log/auth.log and /var/log/daemon.logldapsearch -D "uid=youruid,ou=Users,dc=yourdomain,dc=org" -w yourpassword -H ldaps://ldapservername -b "ou=Users,dc=yourdomain,dc=org" -s sub "(objectclass=*)"
Assuming a debian 8 (jessie) base system:
deb http://ftp.debian.org/debian jessie-backports main to /etc/apt/sources.list. dont forget to sudo apt-get updatesudo apt-get build-dep zncsudo apt-get install cmakesudo apt-get install libicu-devsudo apt-get install swig3.0sudo apt-get install libboost-all-devgit submodule update –init –recursivemakemake installbin/znc –makeconf/msg *status load cyrusauth saslauthd/msg *cyrusauth cloneuser yourcloneusernamehere/msg *cyrusauth createuser Yes/msg *status load sasl/msg *sasl requireauth yes