burnbabyburn / docker-samba-dc

Samba Active Directory Domain Controller for Docker
GNU General Public License v3.0
15 stars 4 forks source link

fmstrat vs burnbabyburn #15

Open basprins opened 6 months ago

basprins commented 6 months ago

Hi there, I am investigating AD through docker (while some forums vote against this approach). I started out with the one from fmstrat. Got a lot working, then started to struggle. Started over by installing samba without docker. Got until the same point, and decided to go back to the fmstrat docker container.

I have seen your first (as google lists yours first), but noticed it was a fork and thought maybe best to start with the source (fmstrat). Then, I noticed you opened issues on fmstrat and are contributing on that github as well. :). Now I am confused, which is the one to use? What are the differences?

The problem I am currently trying to solve, is trying to understand how I should create samba shares on the domain controller. I did by simply creating a directory on the server, and adding a path to it in smb.conf. Then I have the situation that I can see the share on a windows box that joined the domain, but I am unable to enter that directory (because of wrong permissions).

I can see that the auto generated shares (netlogon, sysvol) have a different owner (owner = 30000000). Throwing that against chatgpt I learned it's some special user / entity in active directory. But I can't figure out how I should create one using that "user/entitiy" myself.

example of auto generated share inside docker container:

drwxrwx---+ 3 root 3000000    4096 Apr  6 19:13 sysvol

I am mostly curious if you would be able to tutor me a bit on this, and if it's advisable to switch over to your docker image instead.

basprins commented 6 months ago

Aha, nevermind the question about how to create a share. I figured it out eventually. Of course I need to make the share available insde the docker container first....! So I added a volume mapping from the hosting ubuntu server to the docker container, and changed the smb.conf accordingly, and voila! Works!.

Still very curious about the diff between your container and the fmstrat one. Thx in advance !