summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/netcmd/fsmo.py
AgeCommit message (Collapse)AuthorFilesLines
2012-09-27s4-python: Various formatting fixes.Jelmer Vernooij1-1/+1
* Trailing whitespace * use of "==" where "is" should be used * double spaces
2012-04-19s4-samba-tool: Fix samba-tool fsmo seizeAndrew Bartlett1-45/+50
This is currently untested, and a restructure broke it. Andrew Bartlett
2012-03-13s4-python: Remove env from non-executable netcmd scripts.Andreas Schneider1-2/+0
2012-02-17s4:samba-tool fsmo * - fix missing "takes_optiongroups"Matthias Dieter Wallnöfer1-0/+12
This has been reported in bug #8755. Reviewed-by: Jelmer
2012-02-07Revert "samba-tool: moved takes_optiongroups definition to Command base class"Jelmer Vernooij1-1/+6
This reverts commit f6fa8684896b8f3f9f8b7bd3742c99906973274c. This keeps the main command class fairly slim, and makes it a bit more obvious where the arguments to run() are coming from. Conflicts: source4/scripting/python/samba/netcmd/__init__.py source4/scripting/python/samba/netcmd/domain.py source4/scripting/python/samba/netcmd/gpo.py source4/scripting/python/samba/netcmd/newuser.py source4/scripting/python/samba/netcmd/testparm.py source4/scripting/python/samba/netcmd/user.py source4/scripting/python/samba/tests/samba_tool/__init__.py
2011-10-14samba-tool: Don't require full prog line to be in synopsis.Jelmer Vernooij1-11/+6
2011-10-13samba-tool: Use self.outf in a few more places.Jelmer Vernooij1-2/+2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 13 05:06:52 CEST 2011 on sn-devel-104
2011-09-19pyldb: fixed places where we try to concatenate a Dn with a stringAndrew Tridgell1-1/+1
you need to either use str(dn) or use %s in a format string
2011-09-19samba-tool: use get_config_basedn() to get configuration NC DNAndrew Tridgell1-2/+2
this allows these commands to work for subdomains Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-09-09samba-tool: epilog option to OptionParser available in python >= 2.6Amitay Isaacs1-1/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-09-09samba-tool: Changed fsmo implementationGiampaolo Lauria1-68/+130
Changed fsmo code to fit the object <action> model Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-09-09samba-tool: Expanded acronym descriptionsGiampaolo Lauria1-1/+1
Expanded command acronym descriptions Added footnote for "server connection needed" Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2011-07-28samba-tool: add -H or --URL where necessaryGiampaolo Lauria1-3/+4
To improve consistency, I've made sure all the commands take either a -H or --URL when specifying a URL Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: moved takes_optiongroups definition to Command base classGiampaolo Lauria1-6/+1
The option groups should be defined at the Command base class level as they are in common across all samba-tool commands. Major move advantages: 1. more OOP approach 2. enforcing consistency across commands 3. avoiding the need of declaring for every new command Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-21samba-tool: fix summary of the fsmo command to be clearerGiampaolo Lauria1-1/+1
fsmo command is for general FSMO management Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-03-29s4-fsmo: say which role is being transferredAndrew Tridgell1-4/+4
this is particularly useful for "samba-tool fsmo transfer --role=all"
2011-03-29s4-fsmo: samba-tool fsmo transfer now gets full error codeAndrew Tridgell1-2/+2
We now wait for the transfer to succeed or fail Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-03-29s4-fsmo: nicer error messages on failed FSMO transfersAndrew Tridgell1-5/+12
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-03-29s4-fsmo: samba-tool fsmo takes a URL, not a hostnameAndrew Tridgell1-3/+3
better to call the option --url Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-08samba-tools: more reasonable defaults for samba-tool commandsAndrew Tridgell1-1/+1
- fallback to machine account where possible - default to local hostname where this is reasonable
2010-09-12s4:fsmo.py - fix an obvious typoMatthias Dieter Wallnöfer1-1/+1
2010-06-24s4-python: python is not always in /usr/binAndrew Tridgell1-1/+1
Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-05-09s4:net utility - make outprinted description comments more consistentMatthias Dieter Wallnöfer1-1/+1
I've added a [server connection needed] when commands won't work on the local SamDB.
2010-04-08s4-python: Fix formatting, use standard convention to call instance methods.Jelmer Vernooij1-10/+10
2010-04-08s4-net: Simplify SamDB connect code.Jelmer Vernooij1-6/+1
2010-01-29Fixed a bug caused by a typo. Infrastructure role didn't work.Nadezhda Ivanova1-1/+1
2010-01-27Implemented net fsmo command for transferring fsmo rolesNadezhda Ivanova1-0/+202
The command allows the user to transfer a fsmo role to the server to which the connection is established. Roles can be transferred or seized. By default a transfer is attempted even if seize option is chosen, as it is dangerous to seize a role if the current owner is still running. example use: net fsmo show --host=hostnameoraddress --username=username --password=password net fsmo transfer --role=role --host=hostnameoraddress --username=username --password=password net fsmo seize --role=role --host=hostnameoraddress --username=username --password=password [--force] Tested against Win2008. Does not work for samba 4 yet as we are missing the GetNCChanges extensions.