mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-29 03:23:24 +02:00
13 lines
518 B
Bash
13 lines
518 B
Bash
sudo apt-get -y install ldap-utils libsasl2-modules-ldap sasl2-bin
|
|
|
|
# setup saslauthd
|
|
sudo sed -i 's/MECHANISMS="pam"/MECHANISMS="ldap"/' /etc/default/saslauthd
|
|
sudo sed -i 's/START=no/START="yes"/' /etc/default/saslauthd
|
|
sudo cp /phongo/scripts/ubuntu/ldap/saslauthd.conf /etc/
|
|
sudo service saslauthd restart
|
|
|
|
testsaslauthd -u bugs -p password -s mongod -f /var/run/saslauthd/mux
|
|
#ldapsearch -x -LLL -b dc=10gen,dc=me -h 192.168.112.20
|
|
#ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts -h 192.168.112.20
|
|
|