summaryrefslogtreecommitdiff
path: root/source4/scripting/python
AgeCommit message (Collapse)AuthorFilesLines
2011-02-02s4-waf Don't install any Samba packages into PYTHONDIRAndrew Bartlett1-1/+1
This causes the parts of Samba installed into PYTHONARCHDIR to then be missed in mixed python/C module namespaces. Andrew Bartlett
2011-02-02s4-python Remove manipuation of python path from samba moduleAndrew Bartlett1-2/+1
This manipulation should be done by top level scripts, otherwise we won't find samba in the first place (and these can be munged correctly for the install). Andrew Bartlett
2011-02-02s4-python Remove unused missing.py (used by old build system)Andrew Bartlett1-17/+0
2011-01-19pygensec: remove special case handling for None for buffersAndrew Tridgell1-1/+1
always returning a buffer makes life easier for callers Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-18s4-gensec Extend python bindings for GENSEC and the associated testAndrew Bartlett1-6/+51
This now tests a real GENSEC exchange, including wrap and unwrap, using GSSAPI. Therefore, it now needs to access a KDC. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Jan 18 11:41:26 CET 2011 on sn-devel-104
2011-01-17s4-provision: Fixed owner/group for hard-coded Sites descriptor.Nadezhda Ivanova1-3/+1
We must not specify explicitly owner and group. As there is a difference between WIN_2003 and WIN_2008, we should let descriptor module compute the correct default ones. Also removed inherited ACEs, they are ignored during SD creation anyway. Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Mon Jan 17 18:23:24 CET 2011 on sn-devel-104
2011-01-17s4-tools: Fixed a bug in ldapcmp - DACL was not retrieved correctly if the ↵Nadezhda Ivanova1-1/+4
object had no SACL. --Pair-Programmed-With: Zahari Zahariev
2011-01-17s4-tools: Added a --sort-aces option to ldapcmpNadezhda Ivanova1-6/+12
This option sorts the ACE lists during SD comparison in collision view to make it easier to determine of a difference is only in ACE order, and if not, where do differences start. Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Mon Jan 17 14:09:09 CET 2011 on sn-devel-104
2011-01-17web_server: Display trivial placeholder page if SWAT could not be found.Jelmer Vernooij1-6/+19
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Jan 17 01:27:10 CET 2011 on sn-devel-104
2011-01-17web_server: Avoid references to swat. Load samba.web_server instead.Jelmer Vernooij1-0/+39
2011-01-14waf: use PYTHONARCHDIR for installing python shared libsAndrew Tridgell1-0/+4
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jan 14 08:19:40 CET 2011 on sn-devel-104
2011-01-14s4-samba-tool: fixed the gpo command to use the right DN for access checksAndrew Tridgell1-5/+14
2011-01-14s4-samba_tool Added ACL checking to python GPO management toolAndrew Bartlett1-8/+26
2011-01-07s4/ldapcmp: Two new options are added to the toolZahari Zahariev1-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
2011-01-06Use new style objects.Jelmer Vernooij1-1/+2
2011-01-05s4/ldapcmp: Correct fix for creds2Anatoliy Atanasov1-0/+3
We need to set domain and workstation to creds2 otherwise we get Segfault because they are not initialized correctly.
2011-01-05Revert "s4/ldapcmp: Fix the parsing of the second set of credentials"Anatoliy Atanasov1-1/+1
This reverts commit 1cbce84683ef4fa49b85d87988c5e8db7057530a. Wrong assumption about a segmentation fault
2011-01-05Revert "s4/ldapcmp: Check if creds2 is actualy set by the command line"Anatoliy Atanasov1-1/+1
This reverts commit f8275bae5d7b471967be7222170d049c18b8882f. Wrong assumption about a segmentation fault.
2011-01-05s4-python: Allow setting TEST_DEBUG_LEVEL to override debug level for tests.Jelmer Vernooij1-0/+10
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Jan 5 01:58:44 CET 2011 on sn-devel-104
2011-01-04s4/ldapcmp: Check if creds2 is actualy set by the command lineAnatoliy Atanasov1-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
2011-01-04s4/ldapcmp: Fix the parsing of the second set of credentialsAnatoliy Atanasov1-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
2010-12-18pyglue: Add prototype for init function.Jelmer Vernooij1-0/+2
2010-12-15join: Properly cancel transaction on exceptions.Jelmer Vernooij1-35/+44
2010-12-15Move get_loadparm() and get_credentials() to samba.tests.TestCase.Jelmer Vernooij1-8/+15
2010-12-12s4:scripting/python/pyglue.c - add a OOM handlingMatthias Dieter Wallnöfer1-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
2010-12-12s4:scripting/python/pyglue.c - optimise includesMatthias Dieter Wallnöfer1-4/+0
2010-12-10s4-tests: Moved some commonly redefined security descriptor methods to a ↵Nadezhda Ivanova1-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.
2010-12-10subunitrun: Use unittest.TestProgram if subunit.TestProgram is notJelmer Vernooij1-16/+1
available. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Fri Dec 10 03:49:03 CET 2010 on sn-devel-104
2010-12-10s4-python: Add convenience function for forcibly importing bundledJelmer Vernooij1-0/+15
package.
2010-12-10s4-python: Fix use of bundled modules.Jelmer Vernooij1-1/+1
2010-12-10s4-python: Split up ensure_external_module.Jelmer Vernooij1-8/+22
2010-12-09build: do not duplicate the checks for python in samba4Matthieu Patou1-12/+0
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Thu Dec 9 00:47:23 CET 2010 on sn-devel-104
2010-12-08samba-tools: more reasonable defaults for samba-tool commandsAndrew Tridgell13-53/+79
- fallback to machine account where possible - default to local hostname where this is reasonable
2010-12-08samba-tools: export doesn't need any credentialsAndrew Tridgell1-2/+1
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-12-08s4-provision Always run slaptest to convert the config fileAndrew Bartlett1-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
2010-12-08s4-provision Add an invalid names check for 'domain == netbiosname'Andrew Bartlett1-1/+4
(This is also invalid) Andrew Bartlett
2010-12-05s4-python: Add more module docstrings.Jelmer Vernooij10-3/+23
2010-12-05s4-python: Add some more module docstrings.Jelmer Vernooij16-0/+33
2010-12-02s4:password_hash LDB module - allow empty ("") passwordsMatthias Dieter Wallnöfer1-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.
2010-12-01s4-drs: cope with invalid NTDS DNs from DsReplicaInfo()Andrew Tridgell1-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
2010-12-01s4-samba-tool Show when we have created the user successfullyAndrew Bartlett1-0/+1
2010-12-01s4-drs: the options attribute is optional on NTDSDSA objectsAndrew Tridgell1-1/+1
2010-12-01s4-provision: fixed check for missing msDS-SupportedEncryptionTypesAndrew Tridgell1-3/+2
thanks to Jelmer for spotting this
2010-11-29s4-samdb: give a better exception if multiple users match in password changeAndrew Tridgell1-1/+2
2010-11-29s4-samba-tool: fixed exception handling in subcommandsAndrew Tridgell13-74/+68
this switches to the new pattern of: except Exception, e: raise CommandError("some error message", e)
2010-11-29s4-samba-tool: fixed ldb exception handling in domainlevel commandAndrew Tridgell1-4/+4
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-11-29s4-samba-tool: improved exception handling in samba-toolAndrew Tridgell1-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>
2010-11-29s4-join: fixed exception handling in join commandAndrew Tridgell1-9/+10
2010-11-29s4-ldapcmp: make ldapcmp a samba-tool commandAndrew Tridgell2-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
2010-11-29s4-pyglue: added get_debug_level() methodAndrew Tridgell2-0/+8
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>