Where are our Samba4 experts? 'cuz I need one.

AlexDeGruvenAlexDeGruven Wut?Meechigan Icrontian
edited February 2010 in Science & Tech
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:
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?

Comments

  • kryystkryyst Ontario, Canada
    edited February 2010
    stupid question - did you install python?
  • AlexDeGruvenAlexDeGruven Wut? Meechigan Icrontian
    edited February 2010
    kryyst wrote:
    stupid question - did you install python?

    heh... Not a stupid question.
    nandrews@ad1:~$ python
    Python 2.6.4 (r264:75706, Dec  7 2009, 18:45:15)
    [GCC 4.4.1] on linux2
    
  • kryystkryyst Ontario, Canada
    edited February 2010
    Can I also assume that you double checked to make sure that
    /usr/lib/python2.6/dist-packages/samba/provision.py exists.
  • AlexDeGruvenAlexDeGruven Wut? Meechigan Icrontian
    edited February 2010
    Yep, it's there, as well.
  • kryystkryyst Ontario, Canada
    edited February 2010
    Ok so at what point are you getting the problem. Is Samba up and running and have you created shares and tried to connect to them?
  • AlexDeGruvenAlexDeGruven Wut? Meechigan Icrontian
    edited February 2010
    Not even to the point of finishing configuring. Just the initial provisioning.

    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.
  • kryystkryyst Ontario, Canada
    edited February 2010
    You've got to be missing some dependency, though which one I'm not sure.
  • edited February 2010
    kryyst wrote:
    You've got to be missing some dependency, though which one I'm not sure.

    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):
  • AlexDeGruvenAlexDeGruven Wut? Meechigan Icrontian
    edited February 2010
    rayv5n wrote:
    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.
  • AlexDeGruvenAlexDeGruven Wut? Meechigan Icrontian
    edited February 2010
    Applied the stated fix, but didn't seem to help. Since I had been doing a lot of mucking about within the system, I'm going to clear it out and start fresh to see if/where I run into any hangups.

    Thanks for your help so far :)
  • foolkillerfoolkiller Ontario
    edited February 2010
    Not really related, but are there any real benefits to using Samba 4 yet?
  • kryystkryyst Ontario, Canada
    edited February 2010
    Better AD integration.
  • AlexDeGruvenAlexDeGruven Wut? Meechigan Icrontian
    edited February 2010
    kryyst wrote:
    Better AD integration.

    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.
Sign In or Register to comment.