Skip to content
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

Configuring globals does not appear to work #43

Closed
tunaranch opened this issue Jun 1, 2022 Discussed in #42 · 4 comments · Fixed by #85
Closed

Configuring globals does not appear to work #43

tunaranch opened this issue Jun 1, 2022 Discussed in #42 · 4 comments · Fixed by #85

Comments

@tunaranch
Copy link

Discussed in #42

Originally posted by tunaranch May 30, 2022
Hi everyone.

I'm trying to stand up a samba AD DC in minikube for testing, and I can't seem to modify smb.conf to disable the strong auth requirement.

Here's my Kubernetes resources, startup log, and generated smb.conf file

https://gist.github.com/09aed2659f5eeeaa176edd5f4d87e801

Have I made a mistake somewhere?

@tunaranch
Copy link
Author

The problem affects both the ad and regular images, as described in #42 (reply in thread)

@phlogistonjohn
Copy link
Collaborator

Looking at the code I am pretty confident that the bug lies in sambacc's addc layer. Global options that are not directly part of the parameters needed for provisioning are silently discarded. This is misleading as nothing in the docs or structure of the config file indicates that this might be the case.

In the AD DC path we can't directly write to smb.conf or use the registry backend, but we can pass --option parameters to the samba-tool domain provision command.

I don't think the issue affects (file) server images. On the file server images we use the registry backend for samba. This means that only a minimal set of params will exist in smb.conf. To see what parameters have been set up for samba try the commands net conf list or testparm.

@fsdrw08
Copy link

fsdrw08 commented Nov 19, 2022

any update to this issue?

@phlogistonjohn
Copy link
Collaborator

Hi @fsdrw08, I'm sorry to say I had started working on this and ran into to some issues between how I assumed samba-tool was going to work versus how it worked in practice, so the effort was more than I anticipated. It's helpful to know someone else is interested in this - perhaps I'll take another look at it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
3 participants