summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd/fsmo.py
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-277/+0
| | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
* s4:samba-tool: Fix samba-tool fsmo --role=schemaArvid Requate2012-11-161-1/+1
| | | | | | | | | | | | | | | | | Fix traceback: samba-tool fsmo --role=schema --force ERROR(<type 'exceptions.TypeError'>): uncaught exception - argument 2 must be string, not ldb.Dn File "/usr/lib/python2.6/dist-packages/samba/netcmd/__init__.py", line 168, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.6/dist-packages/samba/netcmd/fsmo.py", line 160, in run self.seize_role(role, samdb, force) File "/usr/lib/python2.6/dist-packages/samba/netcmd/fsmo.py", line 119, in seize_role m.dn = ldb.Dn(samdb, self.schema_dn) Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Nov 16 00:40:24 CET 2012 on sn-devel-104
* samba-tool: Some more unifications...Karolin Seeger2012-10-091-1/+1
| | | | | | in the usage message. Karolin
* samba-tool: Unify usage messages.Karolin Seeger2012-10-081-3/+3
| | | | | | | Karolin Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Mon Oct 8 14:26:52 CEST 2012 on sn-devel-104
* s4-python: Various formatting fixes.Jelmer Vernooij2012-09-271-1/+1
| | | | | | * Trailing whitespace * use of "==" where "is" should be used * double spaces
* s4-samba-tool: Fix samba-tool fsmo seizeAndrew Bartlett2012-04-191-45/+50
| | | | | | This is currently untested, and a restructure broke it. Andrew Bartlett
* s4-python: Remove env from non-executable netcmd scripts.Andreas Schneider2012-03-131-2/+0
|
* s4:samba-tool fsmo * - fix missing "takes_optiongroups"Matthias Dieter Wallnöfer2012-02-171-0/+12
| | | | | | This has been reported in bug #8755. Reviewed-by: Jelmer
* Revert "samba-tool: moved takes_optiongroups definition to Command base class"Jelmer Vernooij2012-02-071-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
* samba-tool: Don't require full prog line to be in synopsis.Jelmer Vernooij2011-10-141-11/+6
|
* samba-tool: Use self.outf in a few more places.Jelmer Vernooij2011-10-131-2/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 13 05:06:52 CEST 2011 on sn-devel-104
* pyldb: fixed places where we try to concatenate a Dn with a stringAndrew Tridgell2011-09-191-1/+1
| | | | you need to either use str(dn) or use %s in a format string
* samba-tool: use get_config_basedn() to get configuration NC DNAndrew Tridgell2011-09-191-2/+2
| | | | | | this allows these commands to work for subdomains Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: epilog option to OptionParser available in python >= 2.6Amitay Isaacs2011-09-091-1/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* samba-tool: Changed fsmo implementationGiampaolo Lauria2011-09-091-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>
* samba-tool: Expanded acronym descriptionsGiampaolo Lauria2011-09-091-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>
* samba-tool: add -H or --URL where necessaryGiampaolo Lauria2011-07-281-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>
* samba-tool: moved takes_optiongroups definition to Command base classGiampaolo Lauria2011-07-211-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>
* samba-tool: fix summary of the fsmo command to be clearerGiampaolo Lauria2011-07-211-1/+1
| | | | | | fsmo command is for general FSMO management Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-fsmo: say which role is being transferredAndrew Tridgell2011-03-291-4/+4
| | | | this is particularly useful for "samba-tool fsmo transfer --role=all"
* s4-fsmo: samba-tool fsmo transfer now gets full error codeAndrew Tridgell2011-03-291-2/+2
| | | | | | We now wait for the transfer to succeed or fail Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-fsmo: nicer error messages on failed FSMO transfersAndrew Tridgell2011-03-291-5/+12
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-fsmo: samba-tool fsmo takes a URL, not a hostnameAndrew Tridgell2011-03-291-3/+3
| | | | | | better to call the option --url Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tools: more reasonable defaults for samba-tool commandsAndrew Tridgell2010-12-081-1/+1
| | | | | | - fallback to machine account where possible - default to local hostname where this is reasonable
* s4:fsmo.py - fix an obvious typoMatthias Dieter Wallnöfer2010-09-121-1/+1
|
* s4-python: python is not always in /usr/binAndrew Tridgell2010-06-241-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>
* s4:net utility - make outprinted description comments more consistentMatthias Dieter Wallnöfer2010-05-091-1/+1
| | | | | I've added a [server connection needed] when commands won't work on the local SamDB.
* s4-python: Fix formatting, use standard convention to call instance methods.Jelmer Vernooij2010-04-081-10/+10
|
* s4-net: Simplify SamDB connect code.Jelmer Vernooij2010-04-081-6/+1
|
* Fixed a bug caused by a typo. Infrastructure role didn't work.Nadezhda Ivanova2010-01-291-1/+1
|
* Implemented net fsmo command for transferring fsmo rolesNadezhda Ivanova2010-01-271-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.