summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd/drs.py
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-510/+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
* samba-tool: "drs options" does not need a samdb connectionAndrew Tridgell2012-11-011-1/+0
| | | | | | this gives us a handy pure RPC client test for use in blackbox testing Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* 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-5/+5
| | | | | | | 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:samba-tool/drs: print the dns name of the server belonging to a connectionStefan Metzmacher2012-08-141-1/+4
| | | | | | Pair-Programmed-With: Björn Baumbach <bb@sernet.de> metze
* s4-python: Remove env from non-executable netcmd scripts.Andreas Schneider2012-03-131-2/+0
|
* Revert "samba-tool: moved takes_optiongroups definition to Command base class"Jelmer Vernooij2012-02-071-1/+30
| | | | | | | | | | | | | | | | | 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
* s4-python: factorize the definition of get_dsServiceNameMatthieu Patou2011-12-051-7/+2
|
* s4-python: externalize some function to the drs_utils module so that they ↵Matthieu Patou2011-12-051-25/+9
| | | | can be reused
* s4-python: rename conflicting variable with the import optionMatthieu Patou2011-12-051-2/+2
|
* samba-tool: Don't require full prog line to be in synopsis.Jelmer Vernooij2011-10-141-5/+5
|
* samba-tool: added --full-sync and --sync-all options to samba-tool drs replicateAndrew Tridgell2011-10-041-3/+9
|
* drs.py: Remove tab characters.Jelmer Vernooij2011-09-131-36/+36
|
* samba-tool: Fixed "drs" subcommands syntaxGiampaolo Lauria2011-09-091-8/+17
| | | | | 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: use ldb.binary_encode() on search expression elementsAndrew Tridgell2011-07-291-2/+3
| | | | | | | | this allows us to deal with search elements containing characters that must be escaped in LDAP Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* samba-tool: fixed drs commands synopsisGiampaolo Lauria2011-07-211-5/+5
| | | | | | Added [options] as needed Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: moved takes_optiongroups definition to Command base classGiampaolo Lauria2011-07-211-30/+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: added --local option to drs replicate commandAndrew Tridgell2011-06-091-1/+39
| | | | | | | | | | this allows replication directly to the local SAM, which means it can run without the samba daemon running. It also bypasses all usnChanged checks, which is useful for forcing replication of a set of objects which are not marked as replication being needed Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Jun 9 08:15:10 CEST 2011 on sn-devel-104
* s4-test: fixed a problem with very verbose NDR debugAndrew Tridgell2011-04-061-1/+1
| | | | | | | | lp.get("log level") returns a string, not an integer. It needs to be cast to an integer for comparison with a number Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 6 08:58:05 CEST 2011 on sn-devel-104
* s4-drs: default hostname in samba-tool drs commandAndrew Tridgell2011-03-291-2/+2
| | | | | | default to our hostname Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4/samba-tool/drs: Make use of Command.message() method instead of using 'print'Kamen Mazdrashki2011-02-091-36/+37
|
* s4/samba-tool/drs: Move get_dsServiceName function at module level to be re-usedKamen Mazdrashki2011-02-091-12/+8
|
* s4/samba-tool: 'drs options' command implementationKamen Mazdrashki2011-02-091-0/+71
| | | | Current implementation handle only one flag change per call
* s4/samba-tool: Add --sync-forced flag to 'drs replicate' commandKamen Mazdrashki2011-02-021-1/+4
| | | | | | | | We are going to need this to trigger replication when inbound replication is disabled for a given DC Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Feb 2 09:03:22 CET 2011 on sn-devel-104
* samba-tools: more reasonable defaults for samba-tool commandsAndrew Tridgell2010-12-081-26/+25
| | | | | | - fallback to machine account where possible - default to local hostname where this is reasonable
* s4-drs: cope with invalid NTDS DNs from DsReplicaInfo()Andrew Tridgell2010-12-011-2/+5
| | | | | | | w2k3 sometimes returns a deleted DN Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Dec 1 07:48:19 CET 2010 on sn-devel-104
* s4-drs: the options attribute is optional on NTDSDSA objectsAndrew Tridgell2010-12-011-1/+1
|
* s4-samba-tool: fixed exception handling in subcommandsAndrew Tridgell2010-11-291-10/+10
| | | | | | | this switches to the new pattern of: except Exception, e: raise CommandError("some error message", e)
* Revert "s4:netcmd/drs.py - use "objectClass" for discovering the server and ↵Matthias Dieter Wallnöfer2010-11-281-2/+2
| | | | | | | | | | | it's NTDS settings object" This reverts commit b87c3703cf890bd55340a201536073bd2be1e1d8. Andrew Bartlett told me that exactly the opposite is true - the "objectCategory" lookup is performing better. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Nov 28 14:18:41 CET 2010 on sn-devel-104
* s4-drs: fixed credit for C versionAndrew Tridgell2010-11-281-0/+2
|
* s4:netcmd/drs.py - use "objectClass" for discovering the server and it's ↵Matthias Dieter Wallnöfer2010-11-271-2/+2
| | | | | | | | | | NTDS settings object Small optimisation: we don't need to look for "nTDSDSARO" since it's a subclass of "ntDSDSA". Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 27 23:35:13 CET 2010 on sn-devel-104
* s4-samba-tool: added python implementation of samba-tool drs commandsAndrew Tridgell2010-11-281-0/+402
much simpler than the C code, and this brings us one step closer to a python samba-tool