1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

Added number of FSMO roles owned by the server we are trying to demote.

This commit is contained in:
Daniele Dario 2012-04-19 12:13:41 +02:00 committed by Andrew Bartlett
parent 0615cf5f85
commit f1f00e5ba0

View File

@ -249,7 +249,7 @@ class cmd_domain_demote(Command):
controls=["search_options:1:2"])
if len(res) != 0:
raise CommandError("Current DC is still the owner of %d role(s), use the role command to transfer roles to another DC")
raise CommandError("Current DC is still the owner of %d role(s), use the role command to transfer roles to another DC" % len(res))
print "Using %s as partner server for the demotion" % server
(drsuapiBind, drsuapi_handle, supportedExtensions) = drsuapi_connect(server, lp, creds)