provisioning member server for vampire

Andrew Bartlett abartlet at samba.org
Mon Mar 3 03:59:06 GMT 2008


On Fri, 2008-02-29 at 06:22 -0800, Douglas VanLeuven wrote:
> Can't add "member server" because the script aborts with null
> reference
> when no match on serverrole.  This is fixed by checking for the
> keyword
>  "member server".
> 
> diff --git a/source/scripting/python/samba/provision.py
> b/source/scripting/python/samba/provision.py
> index 55935b0..e9aded2 100644
> --- a/source/scripting/python/samba/provision.py
> +++ b/source/scripting/python/samba/provision.py
> @@ -830,7 +830,7 @@ def provision(lp, setup_dir, message, paths,
> session_info,
>          message("Setting up smb.conf")
>          if serverrole == "domain controller":
>              smbconfsuffix = "dc"
> -        elif serverrole == "member":
> +        elif serverrole == "member server":
>              smbconfsuffix = "member"
>          setup_file(setup_path("provision.smb.conf.%s" %
> smbconfsuffix),
>                     paths.smbconf, {
> diff --git a/source/setup/vampire.py b/source/setup/vampire.py
> 
> At this point, I was able to join the domain and the entry has been
> created in PDC AD.  But I can't ping winbind and none of wbinfo's
> options are completing.  What am I missing?
> 
> After that prerequisite, swat "install from windows" comes up with the
> error "workgroup 'FOREST' in smb.conf must match chosen domain
> '(null)'"
> but the chosen domain was in fact filled in as FOREST.

Yes, SWAT isn't in a very good way at the moment.  Currently this uses
the old EJS provision script, while everything else uses the new python
code.  SWAT will move to python soon (before the next alpha). 

> The vampire.py in source/setup doesn't seem to work at all.  I invoked
> it as "bin/smbpython vampire.py FOREST".
> The error is "global name 'Credentials' is not defined" and if I add
> "from credentials import Credentials" then the error is "AttributeError:
> 'Credentials' object has no attribute 'set_machine_account'"
> 
> Am I jumping the gun on vampire?  I provisioned a DC from scratch just
> fine and browsed with phpldapadmin, although I can't remember now if I
> exercised wbinfo.

The wbinfo problem is unrelated, but I'm not supprised you found the
vampire code wanting.  A few things in the near future should help this
a little:  

Jelmer is writing a 'kvmtest' option for Samba4, which will run against
pre-pepared windows snapshot, and allow automated testing against
windows.  This will ensure that this code is kept working.

I'll be reworking the vampire code to do a 'DRS' vampire, using the AD
replication technology and the code that metze wrote, rather than just
the NT4 samsync.  

Andrew Bartlett

-- 
Andrew Bartlett
http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20080303/97af04f2/attachment.bin


More information about the samba-technical mailing list