Details
Description
1. Downloaded - cyrus-sasl-2.1.25
2. Following steps for install:
./configure —with-ldap
make
make install
3. Created following soft link - ln -s /usr/local/lib/sasl2 /usr/lib/sasl2
4. Updated the /etc/default/saslauthd – Start=yes and MECHANISMS=“ldap”
5. Created /etc/saslauthd.conf
6. Started saslauthd daemon - /etc/init.d/saslauthd start (I get an error when the daemon starts, safe to ignore)
7. Now I try and run testsaslauthd I get an error – connect() : No such file or directory
8. Workaround here it to run the command the following fashion:
testsaslauthd -u dave -p password -f /var/run/saslauthd/mux (You can get the port file from the saslauthd process or /etc/default/saslauthd)
Outcome of command:
0: root@jackfruit-s12101:/home/source/cyrus-sasl-2.1.25# testsaslauthd -u dave -p password -f /var/run/saslauthd/mux
0: OK "Success.”
Here everything is fine, my setup looks good.
9. Restart couchbase server (I don’t think it is needed here)
10. Configure CB Server for LDAP, settings -> LDAP -> enable
Add user ‘dave’ as admin. Run Test to check the role. Api return HTTP 500, meaning that LDAP is not configured.