HUB
Sign inSign up
saslauthd logo

dweomer/saslauthd

By dweomer

•Updated over 8 years ago

Cyrus SASL saslauthd on Alpine Linux

Image
2

6.1K

dweomer/saslauthd repository overview

⁠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
docker run -d \
    --name saslauthd \
    --volume /etc/shadow:/etc/shadow:ro \
    --volume /etc/passwd:/etc/passwd:ro \
    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:
ldap_servers: ldap://10.20.30.40/
ldap_search_base: DC=example,DC=com
ldap_filter: (&(objectClass=Person)(sAMAccountName=%u))
ldap_bind_dn: <Bind RDN>,ou=Service Accounts,DC=example,DC=com
ldap_password: <password>
⁠Start the daemon
docker run -d \
    --name saslauthd \
    --volume $(pwd)/saslauthd.conf:/etc/saslauthd.conf:ro \
    dweomer/saslauthd

⁠Verify that you can authenticate as expected:

docker run -it --rm \
    --entrypoint /usr/sbin/testsaslauthd \
    --volumes-from saslauthd \
    dweomer/saslauthd -u <your local username> -p <your password>
Tag summary
Recent tags
Content type
Image
Digest
sha256:173bfe25a…
Size
6.2 MB
Last updated
over 8 years ago
docker pull dweomer/saslauthd:latest