summaryrefslogtreecommitdiff
path: root/source4/scripting/devel
AgeCommit message (Collapse)AuthorFilesLines
2011-02-02s4-python Ensure we add the Samba python path first.Andrew Bartlett1-1/+1
This exact form of the construction is important, and we match on it in the installation scripts. Andrew Bartlett
2010-12-22s4-devel/pfm_verify: Move schemaInfo getter into separate functionKamen Mazdrashki1-4/+12
so it can be used against Windows DC without fetching prefixMap Fetching prefixMap doesn't work against WinDCs for some reason at the moment Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Dec 22 01:28:49 CET 2010 on sn-devel-104
2010-12-18s4-devel/pfm_verify: Extend the tool to verify schemaInfo attribute valueKamen Mazdrashki1-6/+43
2010-12-15s4-tests: Added a speedtest for LDAP search operations with different accounts.Nadezhda Ivanova1-11/+67
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Wed Dec 15 21:32:09 CET 2010 on sn-devel-104
2010-11-29s4-ldapcmp: make ldapcmp a samba-tool commandAndrew Tridgell1-818/+0
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-ldapcmp: fixed exception handlingAndrew Tridgell1-19/+17
This pattern, which is common in our code, is wrong: except LdbError, (ERR_NO_SUCH_OBJECT, _): what it actually does it to change the value of ldb.ERR_NO_SUCH_OBJECT to be equal to whatever ldb error occurred! This led to some really bizarre behavior
2010-11-28chgtdcpass: Fix program name in usage message.Jelmer Vernooij1-5/+4
2010-11-27show_test_time: Move to root scripting directory as it's useful for s3Jelmer Vernooij1-19/+0
and s4. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Nov 27 17:17:29 CET 2010 on sn-devel-104
2010-11-25s4-tests: Modified speedtest.py to use samba.tests.delete_forceNadezhda Ivanova1-8/+3
Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Thu Nov 25 01:28:19 CET 2010 on sn-devel-104
2010-11-24s4-devel: we don't need to override these scripts nowAndrew Tridgell1-2/+0
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Nov 24 01:02:43 CET 2010 on sn-devel-104
2010-11-23s4-pfm_verify: Explicitly pass LoadParm() instance to system_session() functionKamen Mazdrashki1-1/+1
Otherwise system_session() creates a LoadParm() instance wich resets certain params to their defaults from smb.conf ("log level" for instance)
2010-11-22s4-pfm_verify: fix usage stringKamen Mazdrashki1-1/+1
Thanks Tridge!
2010-11-19wintest: moved to top levelAndrew Tridgell3-970/+0
the plan is to expand wintest to test a lot more of Samba against windows, including testing the Samba3 file server, winbind, nmbd etc
2010-11-18s4-wintest: reliability and usability improvementsAndrew Tridgell3-116/+166
- allow for missing VMs - improved VM names - added join of w2k3 to Samba domain - cope with w2k3 dcpromo output - wait for port 139 not 23, to avoid windows telnet server bug Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Nov 18 23:56:11 CET 2010 on sn-devel-104
2010-11-18s4-wintest: remove files in var/ when reprovisioningAndrew Tridgell1-0/+1
2010-11-18s4-test: added --rebase and --clean optionsAndrew Tridgell1-1/+13
2010-11-18s4-test: use --fail-immediately for samba_dnsupdate testingAndrew Tridgell1-2/+2
2010-11-18s4-test: added greater control over tests to runAndrew Tridgell3-220/+320
now supports --list to list tests, and --skip to skip the named tests Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Nov 18 04:29:24 UTC 2010 on sn-devel-104
2010-11-18s4-test: rename scripting/devel/howto to scripting/devel/wintestAndrew Tridgell3-0/+0
this won't just be for the howto anymore Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Nov 18 00:45:18 UTC 2010 on sn-devel-104
2010-11-18s4-wintest: added wintest.py libraryAndrew Tridgell2-420/+462
converted test-howto.py to use the wintest library. The idea is for us to create other tests that test lots of different interactions with windows
2010-11-17s4-test: updates to test-howto.pyAndrew Tridgell2-59/+122
- handle clock skew using "net time" on windows after we open the telnet connection - allow checking for result lists in order - replicate all partitions after vampiring so we don't need to wait for periodic replication - use a krb5 ccache in the prefix for kinit based tests The complete test suite now passes on my system, taking just over 13 minutes to complete
2010-11-17s4-test: added testing of w2k3 DC join to test-howto.pyAndrew Tridgell2-19/+105
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Nov 17 01:16:19 UTC 2010 on sn-devel-104
2010-11-16s4-test: fixes for test-howto.pyAndrew Tridgell2-25/+36
this fixes some timing issues, plus ensures we test both with and without kerberos Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Nov 16 07:58:55 UTC 2010 on sn-devel-104
2010-11-15s4-devel: a script to test the Samba4 HOWTOAndrew Tridgell2-0/+605
This provides a script that allows testing of most of the steps of the Samba4 HOWTO. The big difference between this and 'make test' is that it test against windows, using pexpect to control windows boxes via telnet. The info about VMs and other parameters are in separate conf files. I've included a sample config file that I use on my laptop.
2010-11-11s4:speedtest.py - use "unicodePwd" for setting user's passwordMatthias Dieter Wallnöfer1-1/+2
It's available on all AD hosts (including Windows 2000) and on all configurations!
2010-11-11s4:speedtest.py - remove duplicated codeMatthias Dieter Wallnöfer1-2/+0
2010-11-11s4:speedtest.py - fix script name in the help textMatthias Dieter Wallnöfer1-2/+2
2010-11-11s4:speedtest.py - make it executableMatthias Dieter Wallnöfer1-0/+0
2010-11-11s4-devel: useful script for testing join with empty smb.confAndrew Tridgell1-0/+43
this sets up all the needed --options for a join with a prefix other than the one compiled in
2010-11-07s4-join: modify join behaviour according to domain levelAndrew Tridgell1-1/+1
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun Nov 7 23:32:16 UTC 2010 on sn-devel-104
2010-11-06s4-join: switch over to the new DC join in make testAndrew Tridgell1-1/+1
2010-11-05s4: net -> samba-toolAndrew Tridgell1-1/+1
2010-11-04s4-devel: Verify prefixMap is saved correctly in LDB on diskKamen Mazdrashki1-0/+146
2010-11-04Speed test with user objectsZahari Zahariev1-0/+191
This is a modest speed test that aims to show performance difference between Samba4 vs MS Active Directory. It should be used with Samba-style credentials and no arguments like every other python unittest. Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com> Autobuild-User: Anatoliy Atanasov <anatoliy@samba.org> Autobuild-Date: Thu Nov 4 00:11:20 UTC 2010 on sn-devel-104
2010-11-01s4-test: we don't need to set LDB_MODULES_PATH any moreAndrew Tridgell1-1/+0
2010-10-26Add a script for formating test result of st/subunitMatthieu Patou1-0/+19
This script show the time of each test and tests are sorted by execution time (from the slowest to the quickest) Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Tue Oct 26 20:42:11 UTC 2010 on sn-devel-104
2010-10-02s4-ldapcmp.py: Don't guess credentials for second Credentials objectKamen Mazdrashki1-1/+1
This allow us to fallback to first credentials given. Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Sat Oct 2 23:05:20 UTC 2010 on sn-devel-104
2010-09-30LDAPCmp feature to compare nTSecurityDescriptorsZahari Zahariev1-34/+252
New feature that enables LDAPCmp users to find unmatched or missing ACEs in objects for the three naming contexts between DCs in one domain (default) or different domains. Comparing security descriptors is not the default action but attribute compatison. So to activate the new mode there is --sd switch. However there are two view modes to the new --sd action which are 'section' (default) or 'collision'. In 'section' mode you can only find differences connected to missing or value unmatched ACEs but not disorder unmatch if ACE values and count are the same. All of the mentioned differences plus disorder ACE unmatch you can observe under 'collision' view however it is more verbose. Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2010-09-29s4-devel: added new options to getncchanges scriptAndrew Tridgell1-9/+65
added --pas, --dest-dsa and --replica-flags options Pair-Programmed-With: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2010-09-26s4-ldapcmp: Fix usage of 'paged_search' module for remote LDB connectionsKamen Mazdrashki1-2/+3
2010-09-26s4-ldapcmp: Extend ldapcmp to be able to compare more than one context at a timeKamen Mazdrashki1-20/+33
If no arguments given, ldapcmp will compare all NCs
2010-09-22s4-ldapcmp: Enable comparisons between LDBs tooKamen Mazdrashki1-3/+12
This will enable us to compare two LDBs or and LDB with running AD server. Comparing LDB against running running server may come into handy when one want to see if 'net vampire' command does what it does the right way
2010-09-21s4-devel-getncchanges: Add common Samba options as a group to be displayedKamen Mazdrashki1-0/+1
Those options are processed but never shown with --help argument
2010-09-18s4-ldapcmp: Fix options parsing for common Samba optionsKamen Mazdrashki1-4/+10
And also set 'creds2' to be equal to 'creds' in case username2 paramater is not supplied on cmd line
2010-09-17s4-devel: developer script for adding DNS entries via netlogon RPCAndrew Tridgell1-0/+43
this calls the netlogon DsrUpdateReadOnlyServerDnsRecords call to add DNS entries for a RODC via RPC calls. The call is routed via a IRPC call to winbind, as winbind is the one with the schannel credential chaining setup. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-26s4-devel: added enumprivs developer scriptAndrew Tridgell1-0/+58
this enumerates all LSA privileges on a server Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-23s4-devel: added a getncchanges developer scriptAndrew Tridgell1-0/+120
this allows for command line access to getncchanges it also provides a good example of calling DRSUAPI interfaces from python Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-08-20Remove place-holders when it is single domainZahari Zahariev1-18/+32
This patch changes the behavior of LDAPCmp in a single domain scenario. No place-holders will be applied during comparison so replication will be fully tested and even the silightest difference will pop up. There is a second smaller fix when we compre hosts in different domains. This fix disables ${SERVERNAME} paace-holder when there are more then one serevr (domain controller) in the given domain.
2010-07-15s4: Add a simple script to change dc passwordMatthieu Patou1-0/+63
This script will mostly be used by unit test (blackbox type) to test the change of the dc password Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-05DNS objects should not be ignoredZahari Zahariev1-21/+9
Recently I have found that after vampireing from a clean Windows server we have the same DNS objects in the ldb. So ldapcmp has to no longer ignore them. Signed-off-by: Kamen Mazdrashki <kamenim@samba.org>