summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/fsmo.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-09-16 11:18:05 +1000
committerAndrew Tridgell <tridge@samba.org>2011-09-19 10:57:03 +1000
commit579fd43057e5d838ef24a72af20203eda8199204 (patch)
tree0146d3bf78fd8d550ac53afc7300b00abca0edbf /source4/scripting/python/samba/netcmd/fsmo.py
parentee7cfcadc60eac34bf646f765798ca5a01d311ed (diff)
downloadsamba-579fd43057e5d838ef24a72af20203eda8199204.tar.gz
samba-579fd43057e5d838ef24a72af20203eda8199204.tar.bz2
samba-579fd43057e5d838ef24a72af20203eda8199204.zip
samba-tool: use get_config_basedn() to get configuration NC DN
this allows these commands to work for subdomains Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/scripting/python/samba/netcmd/fsmo.py')
-rw-r--r--source4/scripting/python/samba/netcmd/fsmo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/netcmd/fsmo.py b/source4/scripting/python/samba/netcmd/fsmo.py
index 3e296dd83d..78a2014825 100644
--- a/source4/scripting/python/samba/netcmd/fsmo.py
+++ b/source4/scripting/python/samba/netcmd/fsmo.py
@@ -139,8 +139,8 @@ class cmd_fsmo_show(Command):
domain_dn = samdb.domain_dn()
self.infrastructure_dn = "CN=Infrastructure," + domain_dn
- self.naming_dn = "CN=Partitions,CN=Configuration," + domain_dn
- self.schema_dn = "CN=Schema,CN=Configuration," + domain_dn
+ self.naming_dn = "CN=Partitions," + samdb.get_config_basedn()
+ self.schema_dn = samdb.get_schema_basedn()
self.rid_dn = "CN=RID Manager$,CN=System," + domain_dn
res = samdb.search(self.infrastructure_dn,