Coder Social home page Coder Social logo

work4labs / docker-sssd-krb5-ldap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phihos/docker-sssd-krb5-ldap

0.0 1.0 0.0 24 KB

A Docker image that provides the SSSD serivice with Active Directory configuration

License: MIT License

Dockerfile 8.94% Shell 91.06%

docker-sssd-krb5-ldap's Introduction

Docker Image with SSSD,KRB5 and LDAP

Automated Build Docker Build Status

A Docker image that provides the SSSD service with Active Directory configuration.

Introduction

This image provides a way to let PAM authenticate against active directory inside you Docker containers. The configuration is done in a way that you do not need the AD administrator's password to use it. AD_LDAP credentials are sufficient.

Running

docker run --name sssd \
    -e KERBEROS_REALM=YOURDOMAIN.TLD
    -e LDAP_BASE_DN="DC=YOURDOMAIN,DC=TLD" \
    -e LDAP_BIND_DN="CN=SOMEACCOUNT,DC=YOURDOMAIN,DC=TLD" \
    -e LDAP_BIND_PASSWORD=SOMEPASSWORD \
    -e LDAP_URI=ldap://YOUR-AD-LDAP-SERVER/ \
    -v /var/lib/sss

The volume is important because it can be mounted with --volume-from into other containers. These containers just need to have the SSSD client installed and can use the SSSD server remotely.

Optional parameters are:

Option Default Description
LDAP_USER_PRINCIPAL userPricipalName The LDAP attribute identifying the user name for Kerberos. Set this to a nonexisting entry if this differs from the actiol username.
KERBEROS_DNS_DISCOVERY_DOMAIN ${KERBEROS_REALM} Change this, if your DNS uses another domain suffic than your AD realm.
LDAP_ENUMERATE false If set to true all users and groups will be downloaded at startup. May cause bad performance.
LDAP_IGNORE_GROUP_MEMBERS true If set to false getent group <groupname> will contain all group members. May cause bad performance.

Troubleshooting

If something goes wrong run the container with

docker run --name sssd ... sssd sssd -d 0x0270 -f

In a second console go into the container and try

getent USERNAME

Substitute USERNAME with a username that certainly exists. If nothing is displayed, the user lookup over the LDAP connection does not work. Look into /var/log/sssd for further hints.

Secondly you can run

login USERNAME

and enter the correct password. If it says "login incorrect", then the AD part is somehow misconfigured. Again look into /var/log/sssd for further hints.

Contributing

This image offers just enough options that it fits my usecase. If you would like to exend the list of options feel free to make a PR.

docker-sssd-krb5-ldap's People

Contributors

phihos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.