Giter VIP home page Giter VIP logo

docker-samba-join-ad's Introduction

Build Status

Introduction

Samba : the standard Windows interoperability suite of programs for Linux and Unix. This container aims to run a Samba server registered as a member of a given Active Directory domain.

Quick start

Run the Samba image.

Replace by the local ip of the machine executing docker runtime.

docker run -it --rm --add-host "docker-smb.localdomain.loc docker-smb":<host ip address> \
--hostname docker-smb \
-e TZ=Etc/UTC
-e DOMAIN_NAME=localdomain.loc \
-e ADMIN_SERVER=dc1.localdomain.loc \
-e WORKGROUP=localdomain \
-e AD_USERNAME=Administrator \
-e AD_PASSWORD=V3rY1ns3cur3P4ssw0rd \
-p 137:137/udp \
-p 138:138/udp \
-p 139:139/tcp \
-p 445:445/tcp \
fjudith/samba-join-ad

Reference

docker-samba-join-ad's People

Contributors

fjudith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-samba-join-ad's Issues

nt_printing_init: error checking published printers: WERR_ACCESS_DENIED

Hi,

first things first: thanks for you work, this seems to be a really nice project!

I'm trying to use your image but I can't get it working. Both classic and sssd version give me this error:

WARNING: The "syslog" option is deprecated
INFO: Profiling support unavailable in this build.
2017-07-17 10:43:30,806 INFO exited: winbind (exit status 1; not expected)
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
STATUS=daemon 'smbd' finished starting up and ready to serve connections
ads_sasl_spnego_gensec_bind(KRB5) failed for ldap/tsg-pdc.tsg.local with user[TSG-DEV$] realm=[TSG.LOCAL]: Cannot read password
nt_printing_init: error checking published printers: WERR_ACCESS_DENIED
Failed to fetch record!
2017-07-17 10:43:31,905 INFO spawned: 'winbind' with pid 367
2017-07-17 10:43:31,905 INFO success: smbd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-07-17 10:43:31,905 INFO success: nmbd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-07-17 10:43:32,965 INFO success: winbind entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-07-17 10:43:32,965 INFO exited: winbind (exit status 1; not expected)

I already have a SMB-Server up and running with a Windows Server as AD-DC so I don't think the Active Directory is the issue.

Do you have any dieas how to fix this?

These commands work as expected:
kinit, klist, net ads join -U

But when I execute
getent passwd

The useres of the AD are not there....

[EDIT]
If I do the following, it works (as you can see above, winbind exited above)

net ads join -UdomainAdmin
 /usr/sbin/winbindd --daemon --foreground --stdout

I don't know why it doesn't work at the normal startup process. It seems that it doesn't join the AD during startup.

dns update not working

IP address supplied in the --add-host parameter is not correctly registered in the ActiveDirectory DNS service. Samba is registered with the container internal 172.0.0.x address.

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.