项目作者: dweomer

项目描述 :
Cyrus SASL saslauthd on Alpine Linux
高级语言:
项目地址: git://github.com/dweomer/dockerfiles-saslauthd.git
创建时间: 2015-11-09T12:16:32Z
项目社区:https://github.com/dweomer/dockerfiles-saslauthd

开源协议:

下载


Cyrus SASL saslauthd on Alpine Linux

The default cyrus-sasl package for Alpine Linux didn’t support LDAP so I built this image which installs it from source.

Using the shadow authentication mechanism:

Start the daemon

  1. docker run -d \
  2. --name saslauthd \
  3. --volume /etc/shadow:/etc/shadow:ro \
  4. --volume /etc/passwd:/etc/passwd:ro \
  5. dweomer/saslauthd -a shadow -d 1

Starting the daemon configured with the (default) ldap authentication mechanism:

Setup saslauthd.conf for an Active Directory instance running at 10.20.30.40:

  1. ldap_servers: ldap://10.20.30.40/
  2. ldap_search_base: DC=example,DC=com
  3. ldap_filter: (&(objectClass=Person)(sAMAccountName=%u))
  4. ldap_bind_dn: <Bind RDN>,ou=Service Accounts,DC=example,DC=com
  5. ldap_password: <password>

Start the daemon

  1. docker run -d \
  2. --name saslauthd \
  3. --volume $(pwd)/saslauthd.conf:/etc/saslauthd.conf:ro \
  4. dweomer/saslauthd

Verify that you can authenticate as expected:

  1. docker run -it --rm \
  2. --entrypoint /usr/sbin/testsaslauthd \
  3. --volumes-from saslauthd \
  4. dweomer/saslauthd -u <your local username> -p <your password>