summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python
Commit message (Collapse)AuthorAgeFilesLines
* s4/ldapcmp: Two new options are added to the toolZahari Zahariev2011-01-071-40/+76
| | | | | | | | | | | | The new ones are --base and --scope they give us the opportunity to compare DN subsets of the partitions. Now we are also able to compare any two objects even if they have different DNs. This is exteremely helpful when you are after nasty nTSecurityDescriptor bug. Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com> Autobuild-User: Anatoliy Atanasov <anatoliy.atanasov@postpath.com> Autobuild-Date: Fri Jan 7 13:22:26 CET 2011 on sn-devel-104
* Use new style objects.Jelmer Vernooij2011-01-061-1/+2
|
* s4/ldapcmp: Correct fix for creds2Anatoliy Atanasov2011-01-051-0/+3
| | | | | We need to set domain and workstation to creds2 otherwise we get Segfault because they are not initialized correctly.
* Revert "s4/ldapcmp: Fix the parsing of the second set of credentials"Anatoliy Atanasov2011-01-051-1/+1
| | | | | This reverts commit 1cbce84683ef4fa49b85d87988c5e8db7057530a. Wrong assumption about a segmentation fault
* Revert "s4/ldapcmp: Check if creds2 is actualy set by the command line"Anatoliy Atanasov2011-01-051-1/+1
| | | | | This reverts commit f8275bae5d7b471967be7222170d049c18b8882f. Wrong assumption about a segmentation fault.
* s4-python: Allow setting TEST_DEBUG_LEVEL to override debug level for tests.Jelmer Vernooij2011-01-051-0/+10
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Jan 5 01:58:44 CET 2011 on sn-devel-104
* s4/ldapcmp: Check if creds2 is actualy set by the command lineAnatoliy Atanasov2011-01-041-1/+1
| | | | | | | | | When parsing the command line for the second set of credentials the parser returns wrong user if the second set of parameters isn't set. So check if the password is set instead. Autobuild-User: Anatoliy Atanasov <anatoliy.atanasov@postpath.com> Autobuild-Date: Tue Jan 4 18:11:26 CET 2011 on sn-devel-104
* s4/ldapcmp: Fix the parsing of the second set of credentialsAnatoliy Atanasov2011-01-041-1/+1
| | | | | | | | We need this second set of credentials so we can do comparison between DCs in two different domains. Autobuild-User: Anatoliy Atanasov <anatoliy.atanasov@postpath.com> Autobuild-Date: Tue Jan 4 16:36:06 CET 2011 on sn-devel-104
* pyglue: Add prototype for init function.Jelmer Vernooij2010-12-181-0/+2
|
* join: Properly cancel transaction on exceptions.Jelmer Vernooij2010-12-151-35/+44
|
* Move get_loadparm() and get_credentials() to samba.tests.TestCase.Jelmer Vernooij2010-12-151-8/+15
|
* s4:scripting/python/pyglue.c - add a OOM handlingMatthias Dieter Wallnöfer2010-12-121-0/+4
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 12 20:50:55 CET 2010 on sn-devel-104
* s4:scripting/python/pyglue.c - optimise includesMatthias Dieter Wallnöfer2010-12-121-4/+0
|
* s4-tests: Moved some commonly redefined security descriptor methods to a ↵Nadezhda Ivanova2010-12-101-0/+79
| | | | | | utils class These methods are used in more than one testsuite now so they are now in a utility class instead of being defined everywhere.
* subunitrun: Use unittest.TestProgram if subunit.TestProgram is notJelmer Vernooij2010-12-101-16/+1
| | | | | | | available. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Dec 10 03:49:03 CET 2010 on sn-devel-104
* s4-python: Add convenience function for forcibly importing bundledJelmer Vernooij2010-12-101-0/+15
| | | | package.
* s4-python: Fix use of bundled modules.Jelmer Vernooij2010-12-101-1/+1
|
* s4-python: Split up ensure_external_module.Jelmer Vernooij2010-12-101-8/+22
|
* build: do not duplicate the checks for python in samba4Matthieu Patou2010-12-091-12/+0
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Thu Dec 9 00:47:23 CET 2010 on sn-devel-104
* samba-tools: more reasonable defaults for samba-tool commandsAndrew Tridgell2010-12-0813-53/+79
| | | | | | - fallback to machine account where possible - default to local hostname where this is reasonable
* samba-tools: export doesn't need any credentialsAndrew Tridgell2010-12-081-2/+1
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision Always run slaptest to convert the config fileAndrew Bartlett2010-12-081-13/+13
| | | | | | | | | | If the directory exists, it does not mean that it is configured - we may be on a re-run of the provision. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Dec 8 05:19:12 CET 2010 on sn-devel-104
* s4-provision Add an invalid names check for 'domain == netbiosname'Andrew Bartlett2010-12-081-1/+4
| | | | | | (This is also invalid) Andrew Bartlett
* s4-python: Add more module docstrings.Jelmer Vernooij2010-12-0510-3/+23
|
* s4-python: Add some more module docstrings.Jelmer Vernooij2010-12-0516-0/+33
|
* s4:password_hash LDB module - allow empty ("") passwordsMatthias Dieter Wallnöfer2010-12-021-0/+30
| | | | | | | | This seems to have been broken some time ago - till someone on the mailing list noticed it. I've also added a testsuite (and some additional SamDB python helpers) which should prove this.
* 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-samba-tool Show when we have created the user successfullyAndrew Bartlett2010-12-011-0/+1
|
* s4-drs: the options attribute is optional on NTDSDSA objectsAndrew Tridgell2010-12-011-1/+1
|
* s4-provision: fixed check for missing msDS-SupportedEncryptionTypesAndrew Tridgell2010-12-011-3/+2
| | | | thanks to Jelmer for spotting this
* s4-samdb: give a better exception if multiple users match in password changeAndrew Tridgell2010-11-291-1/+2
|
* s4-samba-tool: fixed exception handling in subcommandsAndrew Tridgell2010-11-2913-74/+68
| | | | | | | this switches to the new pattern of: except Exception, e: raise CommandError("some error message", e)
* s4-samba-tool: fixed ldb exception handling in domainlevel commandAndrew Tridgell2010-11-291-4/+4
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-samba-tool: improved exception handling in samba-toolAndrew Tridgell2010-11-291-5/+44
| | | | | | | | we now do reasonable printing on a wide range of common exception classes, and always force a backtrace on an exception if the debug level is >= 3 Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* s4-join: fixed exception handling in join commandAndrew Tridgell2010-11-291-9/+10
|
* s4-ldapcmp: make ldapcmp a samba-tool commandAndrew Tridgell2010-11-292-0/+832
| | | | | | The ldapcmp tool is very useful, and should be available to Samba admins, not just developers. This makes it a samba-tool command, which also gives it the nicer command line handling that samba-tool has
* s4-pyglue: added get_debug_level() methodAndrew Tridgell2010-11-292-0/+8
| | | | Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
* s4-gpo: started on samba-tool gpo list commandAndrew Tridgell2010-11-291-0/+99
|
* s4-samba-tool: started on gpo subcommands in pythonAndrew Tridgell2010-11-292-0/+122
| | | | | | this adds the listall GPO command. Currently the python variants are available as "samba-tool gpo2 SUBCOMMAND". These will replace the "samba-tool gpo" commands when complete
* samba.tests.hostconfig: Fix import.Jelmer Vernooij2010-11-281-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 28 18:08:33 CET 2010 on sn-devel-104
* s4-python: Some reformatting for the purpose of pydoctor.Jelmer Vernooij2010-11-2811-64/+105
|
* samba.upgradehelpers: Simplify code a bit.Jelmer Vernooij2010-11-281-21/+17
|
* samba.hostconfig: Move samba.shares into samba.hostconfig.Jelmer Vernooij2010-11-283-68/+57
|
* samba.getopt: Fix missing import of sys.Jelmer Vernooij2010-11-281-8/+14
|
* 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
* samba.provision: Fix setup_path.Jelmer Vernooij2010-11-283-72/+73
|
* samba.provision: Add package with provision and backend modules.Jelmer Vernooij2010-11-283-323/+337
|
* s4-python: Fix formatting of docstrings for the purpose of pydoctor.Jelmer Vernooij2010-11-286-104/+114
|
* samba.tests: Fix formatting.Jelmer Vernooij2010-11-281-22/+25
|
* s4-samba-tool: support help, and show description of commandsAndrew Tridgell2010-11-281-7/+7
| | | | | | | | | when you don't specify a subcommand, show the description of the subcommands in the list of available subcommands. Also show the list of subcommands when you use 'help', '--help' or '-h' as a subcommand Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun Nov 28 01:56:46 CET 2010 on sn-devel-104