summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba
Commit message (Collapse)AuthorAgeFilesLines
* samba-tool: exit with non-zero status on dbcheck failureAndrew Tridgell2011-06-171-1/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: show success message on group operationsAndrew Tridgell2011-06-171-0/+4
|
* s4-pysamdb: fixed the normalisation of grouptype in group addAndrew Tridgell2011-06-171-1/+7
| | | | | | | ldap integers are signed Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jun 17 05:43:18 CEST 2011 on sn-devel-104
* samba-tool: report total error count and suggest --fix if neededAndrew Tridgell2011-06-171-3/+10
|
* samba-tool: added attribute normalisation checksAndrew Tridgell2011-06-171-3/+53
| | | | | this checks that all attributes have the right normalisation, and offers to fix the ones that don't
* s4-pydsdb: added dsdb_normalise_attributes() callAndrew Tridgell2011-06-171-0/+5
| | | | | | this call converts a set of attributes to DRSUAPI format and back to ldb format. This has the effect of normalising the attributes using the schema syntax rules
* samba-tool: disable validation on removing an empty attribute in dbcheckAndrew Tridgell2011-06-141-1/+1
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Jun 14 10:49:34 CEST 2011 on sn-devel-104
* s4-samba-tool: added dbcheck commmandAndrew Tridgell2011-06-102-0/+125
| | | | | | | | | this will be used as a consistency checker and repair tool for sam.ldb. This initial checkin just checks for empty attributes and offers to fix them Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jun 10 10:31:56 CEST 2011 on sn-devel-104
* 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-ipv6: don't default to 127.0.0.1 in provisionAndrew Tridgell2011-06-091-5/+8
| | | | | | it is better to just leave the IPv4 address out of the zone file Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-provision: fixed detection of V4/V6 addressesAndrew Tridgell2011-06-071-2/+29
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Jun 7 06:07:24 CEST 2011 on sn-devel-104
* s4-param Remove 'modules dir'Andrew Bartlett2011-06-061-2/+3
| | | | | | | | The Samba waf build ensures that dyn_MODULESDIR is always correct (even for in-tree binaries), so we don't need to allow the user to configure this at run time. Andrew Bartlett
* s4-param Remove 'sid generator'Andrew Bartlett2011-06-062-7/+5
| | | | | | | This was only used by the Fedora DS backend for Samba4. We agreed to no longer support external LDAP backends. Andrew Bartlett
* s4-param Remove 'idmap database'Andrew Bartlett2011-06-062-3/+2
| | | | This is now just idmap.ldb in the private dir, which remains.
* s4-param Remove 'secrets database' parameterAndrew Bartlett2011-06-061-2/+1
| | | | This is now just secrets.ldb in the private dir, which remains.
* s4-param Remove 'sam database' parameterAndrew Bartlett2011-06-063-5/+4
| | | | | | This now just relies on the private dir parameter, which remains. Andrew Bartlett
* s4-gpo: fixed display of GPO version numbersAndrew Tridgell2011-06-061-1/+1
|
* samba3sam.py: don't assume order of ldb results.Rusty Russell2011-06-021-142/+164
| | | | | | | | | Switching to tdb2 breaks this test horribly, because it relied on the order of TDB1 traversal. Fix it to sort te results (by db), then check them. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* samba-tool: improved error handling in user setexpiryAndrew Tridgell2011-06-012-1/+9
|
* samba-tool: improved user enable error handlingAndrew Tridgell2011-06-012-1/+8
|
* s4:samba-tool: Move samba-tool setexpiry to samba-tool user setexpiry <user>Theresa Halloran2011-06-013-70/+37
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4/samba-tool: Move samba-tool enableaccount to samba-tool user enable command.Theresa Halloran2011-06-013-62/+43
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4-provision Use correct tkey-gssapi-credentialAndrew Bartlett2011-05-251-1/+3
| | | | | | | | We changed to ${DNSNAME} (the fully qualified domain name) a while back, and while it's usually functionally idential to the previous setting, this breaks down if there is more than one DNS server. Andrew Bartlett
* s4-python: Remove not used importsMatthieu Patou2011-05-212-7/+4
|
* s4-python: move function find_provision_key_parameters to provision ↵Matthieu Patou2011-05-213-110/+108
| | | | namespace as it can be used not only for upgradeprovision
* selftest: Re-enable strings.py from source3/stf as a python subunit testAndrew Bartlett2011-05-183-0/+137
|
* s4-libnet: Remove libnet_Join and create libnet_Join_memberAndrew Bartlett2011-05-181-8/+7
| | | | | | | | libnet_Join conflicts with a function in the source3 netapi of the same name, and the ability to join as a DC via this particular method is unused. Andrew Bartlett
* s4-python: keep wheel_gid as an integerMatthieu Patou2011-05-171-1/+1
|
* s4-python: raise an error if unable to bind remote ldap while joiningMatthieu Patou2011-05-171-0/+11
|
* s4-samba-tool: allow specification of targetdir when joining as (RO)DCMatthieu Patou2011-05-051-4/+5
| | | | | Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Thu May 5 02:04:13 CEST 2011 on sn-devel-104
* provision: reorganize attributes so that we don't attribute with DN syntax ↵Matthieu Patou2011-04-301-0/+5
| | | | | | | that depends on non present object Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sat Apr 30 14:51:16 CEST 2011 on sn-devel-104
* samba-tool: fix machinepw command so that we use the full path to the secret ↵Matthieu Patou2011-04-171-3/+6
| | | | | | | database and raise an error if secret can't be found Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Sun Apr 17 13:12:27 CEST 2011 on sn-devel-104
* s4-test: fixed a problem with very verbose NDR debugAndrew Tridgell2011-04-062-3/+3
| | | | | | | | 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 samba-tool: Implement "testparm" commandKai Blin2011-04-052-0/+208
| | | | | | | | This is a port of the existing "testparm" python script to a samba-tool command. Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Tue Apr 5 07:49:13 CEST 2011 on sn-devel-104
* s4-samba-tool: give a bit better error on user delete failureAndrew Tridgell2011-04-041-1/+5
|
* Avoid uppercasing server role in error message.Jelmer Vernooij2011-04-031-1/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Apr 3 20:01:48 CEST 2011 on sn-devel-104
* 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-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-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>
* upgradeprovision: Fix typoMatthieu Patou2011-03-201-1/+1
|
* s4-unittests: replace assertEquals(res, []) by assertEquals(len(res), 0)Matthieu Patou2011-02-211-1/+1
|
* s4/samba.tests: Raise BlackboxProcessError exception in case check_output ↵Kamen Mazdrashki2011-02-201-2/+2
| | | | | | | | | method fails This way the caller gets the chance to receive STDOUT and STDERR for a failed process. We may use this info to check if a process has failed properly, e.g. with expected output
* s4/samba.tests: Extend CalledProcessError class to store STDOUT and STDERR ↵Kamen Mazdrashki2011-02-201-0/+13
| | | | for a failed rocess call
* s4:ldapcmp: cope with range retrivals of multivalued attributesStefan Metzmacher2011-02-141-1/+72
| | | | | | | | | | | | | | | A Windows Server returns a 'member;range=0-1499' attribute with the first 1500 values of the 'member' attribute. The client can do a BASE search on the given object and ask for the 'member;range=1500-*' attribute. It needs to loop until the high part of the returned range is '*'. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Feb 14 16:26:46 CET 2011 on sn-devel-104
* s4-tools: Added --sddl option, which allows the user to add an ACE to an ↵Nadezhda Ivanova2011-02-101-4/+8
| | | | | | | | | object's security descriptor in SDDL format Useful for testing purposes. Autobuild-User: Nadezhda Ivanova <nivanova@samba.org> Autobuild-Date: Thu Feb 10 15:28:04 CET 2011 on sn-devel-104
* s4/tests: Implement a blackbox test for 'samba-tool drs' commandKamen Mazdrashki2011-02-091-0/+100
| | | | | Autobuild-User: Kamen Mazdrashki <kamenim@samba.org> Autobuild-Date: Wed Feb 9 11:45:30 CET 2011 on sn-devel-104
* s4/tests: Move command line processing into separate method to be reusedKamen Mazdrashki2011-02-091-6/+6
|
* s4/tests: Implement BlackboxTestCase.check_output() methodKamen Mazdrashki2011-02-091-0/+11
| | | | I am going to need this to check if output is OK (kind of)