1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-14 12:59:07 +03:00
Commit Graph

177 Commits

Author SHA1 Message Date
14c5f968e1 Rework provision scripts for more testing
This fixes up some issues with testdir (was not honoured) and
increases test coverage.

We now check all the major provision modes.  In doing so, to make it
possible to call from the multiple layers of 'sh', I have allowed 'dc'
to alias 'domain controller' and 'member' to alias 'member server'.
Fighting shell quoting in the test system was just too hard...

Also fix upgrade.py

Andrew Bartlett
(This used to be commit 0923de1228)
2008-03-07 10:57:52 +11:00
449c0c5242 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit a6997c333c)
2008-03-07 07:38:44 +11:00
8b24d248b7 Start to rework provision for LDAP backends
This is the start of the rework of the provision script to handle an
LDAP backend correctly.  For example, we must not set the 'tdb
modules' against an LDAP backend such as OpenLDAP that handles subtree
renames.

Andrew Bartlett
(This used to be commit e462a107d3)
2008-03-07 07:33:14 +11:00
7e0ef3fd0e Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).
To make Samba4, using the python provision system, pass this test
required some major rework.  Untested code is broken code, and some of
the refactoring for a seperate provision test (which also now passes)
broke things.

Similarly, the iconv work has compiled, but these codepaths have never
been run (NULL pointer de-reference).

In working to use a local, rather than global, loadparm context, and
to support using a target directory, a few things needed to be
reworked, particularly around path handling.

Andrew Bartlett
(This used to be commit 1169e8d7be)
2008-03-06 21:55:26 +11:00
4d4a898742 Fix failure to re-provision.
Somewhere in the conversion from ejs we lost calling the 'delete
partitions' code.  However, we have to be careful not to wipe
partitions when we are the second client connecting to an LDAP server.

Andrew Bartlett
(This used to be commit 272eb765b8)
2008-03-03 13:03:19 +11:00
c20cf59768 Fix member server provision
Can't add "member server" because the script aborts with null
reference when no match on serverrole.  This is fixed by checking for
the keyword "member server".
(This used to be commit 62536750ae)
2008-03-03 11:08:59 +11:00
21208d3303 Fix typos, avoid DEPEND_LIST from growing with empty elements.
(This used to be commit b30fd477ff)
2008-02-29 14:32:37 +01:00
09447777d0 use gmake to handle .py file copies.
(This used to be commit d54421a9ee)
2008-02-29 13:42:59 +01:00
2ba62662f8 Remove sDefault as static variable.
(This used to be commit 16f36ce499)
2008-02-28 20:04:58 +01:00
9b7baec42b Reorder modules to have rdn_name before objectclass.
This ensures the relative DN is placed in the correct case into the
DB.

Andrew Bartlett
(This used to be commit 16378219fb)
2008-02-28 08:39:45 +11:00
895874d966 idmap: Handle uid->SID mapping
(This used to be commit 6ac6de8476)
2008-02-21 11:21:59 +01:00
845664e94b Avoid python2.2-specific types.
(This used to be commit d45c6b5574)
2008-02-20 11:32:56 +01:00
7c96ca88c4 Formatting fixes.
(This used to be commit bc0fab89e3)
2008-02-16 15:23:26 +01:00
85fe22a85f Use struct for provision parameters since there are so many of them.
(This used to be commit 4b9d5bc57c)
2008-02-15 15:14:55 +01:00
08e3f99f14 Initial work on a test for samba.tests.samdb
(This used to be commit 8b33860954)
2008-02-13 02:18:45 +01:00
b4ce9dc360 Fix invalid symbol.
(This used to be commit bd0ef811c4)
2008-02-13 01:21:06 +01:00
04aef38453 Fix subunit runner exit codes.
(This used to be commit 7911308dbc)
2008-02-12 22:10:25 +01:00
fdd75e135a Correctly increment counters in Subunit test runner.
(This used to be commit c474a2bb83)
2008-02-12 21:59:23 +01:00
af007e5837 Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.
(This used to be commit eb04de69c0)
2008-02-11 13:20:24 +01:00
2cf29aebff Add tests for upgrade of WINS database.
(This used to be commit 7777611c0f)
2008-02-09 22:29:42 +01:00
63aa4b9021 Remove unused define.
(This used to be commit 64d6d72913)
2008-02-09 20:47:12 +01:00
ec106a1421 Merge branch 'v4-0-trivial' into v4-0-python
(This used to be commit b874f07175)
2008-02-09 20:06:54 +01:00
cf287aa831 Add docstring.
(This used to be commit 073ed0dd1c)
2008-02-09 17:42:31 +01:00
2fa4c15858 Fix syntax of docstrings, set project name when generating Python API documentation.
(This used to be commit 68f13d87eb)
2008-02-09 17:37:42 +01:00
c61dc38494 Re-enable python support in BECOME-DC test.
(This used to be commit ed44fd59bf)
2008-02-09 15:42:19 +01:00
4932e4bb7a Fix upgrade after provision parameter rename.
(This used to be commit 361b9f43fb)
2008-02-09 03:59:45 +01:00
bd0bfe6833 Fix provision python test.
(This used to be commit b173fa6bd2)
2008-02-09 03:09:56 +01:00
2aac2a5df8 Add tests for findnss(), add some docstrings.
(This used to be commit 4eec2bbc9a)
2008-02-09 02:10:49 +01:00
c1d8ac0ab1 Remove unused class members.
(This used to be commit 373ef4287f)
2008-02-09 01:42:38 +01:00
f47093baf0 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Conflicts:

	source/scripting/python/samba/provision.py
(This used to be commit e367df5d99)
2008-02-08 14:02:22 +01:00
c1c09e584e LDAP now works with the python provision!
Andrew Bartlett
(This used to be commit 8f0a89ca19)
2008-02-08 17:12:25 +11:00
26897518ea Fix LDAP backend with python
We were still setting the hard-coded users.ldb etc, rather than
switching to the ldapi:// URI

Andrew Bartlett
(This used to be commit 603e981250)
2008-02-08 17:11:26 +11:00
fffe4f3bdd Fix formatting.
(This used to be commit 73d1b0fcb6)
2008-02-08 03:03:44 +01:00
61379d97cd python: Provide PyAPI_DATA macro for older versions of Python (< 2.3).
(This used to be commit 421bdd203e)
2008-01-29 14:27:27 +01:00
bcad73a7f7 Partially revert d64a2288a2 and 351c2e99ab to see if that fixes the build.
(This used to be commit 2a79cebfd9)
2008-01-29 13:10:43 +01:00
cab677a33f python: Use relative paths for registry.
(This used to be commit 079200b824)
2008-01-26 04:22:42 +01:00
172e00d8a1 python: Load smb.conf file for the provision tests.
(This used to be commit 41571bbb93)
2008-01-26 02:55:03 +01:00
e41a632902 configure: define HAVE_WORKING_PYTHON
metze
(This used to be commit 351c2e99ab)
2008-01-25 15:46:54 +01:00
21f5f4d440 python: Give precedence to Samba's syspath over the already set system one.
(This used to be commit f3ebaf0a0c)
2008-01-25 12:16:13 +01:00
1c5e713cce Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Conflicts:

	source/scripting/python/samba/provision.py
(This used to be commit 64babbec22)
2008-01-25 11:50:00 +01:00
6c2d4f2806 python/provision: Reload secrets when necessary, fix unix names in mappings.
Pair programmed with Andrew.
(This used to be commit 04fe8c8aef)
2008-01-25 11:47:44 +01:00
1b18de131c Tidy up the last regresesions on the python smbscript, from my work
with Jelmer today.

The only remaining issue is that for the build farm, we will need to
manually specify the users and groups from the NSS_WRAPPPER, as python
isn't compiled with this.

Andrew Bartlett
(This used to be commit 5370484d25)
2008-01-25 17:11:20 +11:00
dcb04065cd python: Fix representation of UUIDs as strings in zone files rather than binary blobs, fix escaping of LDAP URL's in PHP LDAP admin configuration.
Pair-programmed with Andrew, but git doesn't appear to support multiple --author arguments. :-(
(This used to be commit dff54ff043)
2008-01-25 03:54:33 +01:00
c91791bbc4 python: Add test for secretsdb_become_dc
(This used to be commit 9173c678ef)
2008-01-25 01:37:47 +01:00
76eb7ddd75 python: fix tests for check_all_substituted.
(This used to be commit 859cffed9d)
2008-01-25 01:30:43 +01:00
37f35d2a03 python/provision: Reconcile code partitions-only provisioning and generic provisioning, some other minor refactoring of the provisioning.
Pair-programmed by Andrew and me using obby :-)
(This used to be commit 688adcbb63)
2008-01-25 01:02:13 +01:00
8afcbdcfe7 python: Make SamDB.set_ntds_invocation_id take a string.
(This used to be commit 59bb26772f)
2008-01-25 00:51:09 +01:00
d958f4b391 python: Add function to look for unsubsituted variables.
(This used to be commit e726ce5bc5)
2008-01-24 22:18:27 +01:00
859b847a68 python: Add bindings for SamDB.set_invocation_id().
(This used to be commit c09efa7b77)
2008-01-24 22:08:39 +01:00
a2dcf7bd22 Python: add some docstrings.
(This used to be commit 1de69a772e)
2008-01-24 01:06:19 +01:00