New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial AD DC Support #28
Merged
phlogistonjohn
merged 16 commits into
samba-in-kubernetes:master
from
phlogistonjohn:jjm-addc
Feb 16, 2022
Merged
Initial AD DC Support #28
phlogistonjohn
merged 16 commits into
samba-in-kubernetes:master
from
phlogistonjohn:jjm-addc
Feb 16, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This can be used to start the AD DC samba server process. Signed-off-by: John Mulligan <jmulligan@redhat.com>
The samba_cmds module is all about building/prefixing the commands and we should use it for all the commands we will call. Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Replace the hard coded stuff brought over from the old shell scripts. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This is a nearly direct translation of the previous hard-coded shell scripts. This is part of a step by step conversion of the ad dc container to use sambacc. It will be configurable eventually. Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This will generate a new script `samba-dc-container` as well as including the new ad dc example json file. Signed-off-by: John Mulligan <jmulligan@redhat.com>
phlogistonjohn
force-pushed
the
jjm-addc
branch
from
February 16, 2022 15:44
d296d2f
to
637a5f5
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While it's a bit rough and simplistic, these changes add AD DC support to sambacc. Currently, there's one new script
samba-dc-container
that supports one subcommandrun
. It also has setup actions forprovision
andjoin
and can also wait for the domain to appear withwait-domain
which will poll until the ldap srv record exists for the domain.With this sambacc supports (by default) the same behavior as the hard-coded scripts in samba-container's ad-server container image. In addition, you can customize your domain and initial users through the sambacc config json. You can then join additional containers to the domain.
I probably could have added more unit tests but the layer between us and samba-tool is thin currently. In the future, some of the stuff like user and groups creation may be better done via function calls into samba's python libs, but right now we just shell out to the cli.