Where are our Samba4 experts? 'cuz I need one.
AlexDeGruven
Wut?Meechigan Icrontian
Background: I'm experimenting with configuring a Samba4 AD environment under Ubuntu server (9.10). Since there are (apparently) perfectly good packages in the repositories, I'm trying to use them, but it seems I'm running up against a wall in the configuration that I can't find a way around.
When I try to run the provision-backend script, which creates the initial configurations, I'm getting a python error:
I've got all of the ldap, samba4, and associated packages (including dev packages) installed that I'm aware are needed, so I'm not sure where the issue lies.
So my question is this:
Would I be better off just creating the config files manually from examples I can cobble together, or is this error (which seems to be entirely rooted in python) indicative of a deeper issue with the setup that is going to cause me issues in the future?
When I try to run the provision-backend script, which creates the initial configurations, I'm getting a python error:
Traceback (most recent call last): File "./setup/provision-backend", line 102, in <module> setup_dir = find_setup_dir() File "/usr/lib/python2.6/dist-packages/samba/provision.py", line 66, in find_setup_dir raise Exception("Unable to find setup directory.") Exception: Unable to find setup directory.
I've got all of the ldap, samba4, and associated packages (including dev packages) installed that I'm aware are needed, so I'm not sure where the issue lies.
So my question is this:
Would I be better off just creating the config files manually from examples I can cobble together, or is this error (which seems to be entirely rooted in python) indicative of a deeper issue with the setup that is going to cause me issues in the future?
0
Comments
heh... Not a stupid question.
/usr/lib/python2.6/dist-packages/samba/provision.py exists.
For grins, since the samba.org docs use fedora for their main instructions, I fired up a Fedora12 vm and ran through them. Everything works fine. Provisioning went perfectly, I was able to do a netlogon, and create a share that was mountable via my Windows7 system.
Since I'm not tied to ubuntu specifically, I'm going to stick with this while I do my experimentation.
Try modifying the code below. It worked for me and I had the exact same
error. Seems that it just couldn't find itself.
vi /usr/lib/python2.6/dist-packages/samba/provision.py
# In source tree
ret = os.path.join(dirname, "/usr/share/samba/setup") <--- to this or equiv
# ret = os.path.join(dirname, "../../../setup") <
change this
if os.path.isdir(ret):
Excellent. I'll give this a shot. As previously stated, I got it working in Fedora 12, so I figured it was just something simple.
Thanks for your help so far
Precisely. I'm checking out how to create an AD forest without running any MS servers.
Currently, the exercise is simply academic, but may not be forever.