Bug 8787 - "uncaught exception" for "samba-tool domain level raise --forest=2008_R2" on alpha19
Summary: "uncaught exception" for "samba-tool domain level raise --forest=2008_R2" on ...
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: samba4-qa@samba.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-02 10:23 UTC by doofdilla
Modified: 2012-03-02 21:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description doofdilla 2012-03-02 10:23:01 UTC
# OS VERSION:
Ubuntu 11.10
Linux samba 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64
x86_64 x86_64 GNU/Linux

# SAMBA VERSION: 
4.0.0alpha19-GIT-a35da79 ./configure.developer

# BIND VERSION: 
Bind 9.8.1-P1 compiled with gssapi and dlopen

# INSTALLED DEPENDENCIES:
build-essential libattr1-dev libblkid-dev libgnutls-dev libreadline-gplv2-dev
python-dev autoconf python-dnspython gdb pkg-config bind9utils libpopt-dev
krb5-user

# PROVISIONED WITH:
./source4/setup/provision --realm=contoso.local --domain=CONTOSO
--adminpass=iamnotthatdumbtopostithere --server-role='domain controller'

# ERROR:
root@samba:/home/dilla# samba-tool domain level raise --forest=2008_R2
ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'module' object has no attribute 'get_config_basedn'
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 162, in _run
    return self.run(*args, **kwargs)
  File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 625, in run
    m.dn = ldb.Dn(samdb, "CN=Partitions,%s" % ldb.get_config_basedn())

# ADDITIONAL NOTES

- Domain consists of the above samba DC holding all FSMO roles and a 2k8R2 member DC. Replication etc works without problems.

- changing the domain functional level with samba-tool worked without errors.

- You cannot change the functional level from within the 2k8R2 server, it states "You do not have sufficient privileges to raise the functional level", be it domain or forest level"

If you need additional infos, logs, testing, whatever feel free to ask, i'll be glad to help.
Comment 1 Matthias Dieter Wallnöfer 2012-03-02 21:15:42 UTC
Fix should land in "master" after the autobuild process has finished.