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

103 Commits

Author SHA1 Message Date
Andrew Bartlett
95ac786136 Rework memberof handling in slapd.conf (used for OpenLDAP backend)
Instead of using an include file, put the generated configurationd
directly into slapd.conf.

Andrew Bartlett
2008-03-15 19:03:04 +11:00
Andrew Bartlett
bda6a38b05 Rework to have member server 'domains' be CN=NETBIOSNAME
This reworks quite a few parts of our provision system to use
CN=NETBIOSNAME as the domain for member servers.

This makes it clear that these domains are not in the DNS structure,
while complying with our own schema (found by OpenLDAP's schema
validation).

Andrew Bartlett
2008-03-13 11:36:58 +11:00
Andrew Bartlett
b2d9b03ba3 Update the provision scripts and selftest for LDAP
This should allow us to provision onto an OpenLDAP backend again.

Also ensure we always have a sysvol and netlogon share in the selftest
environment.

Andrew Bartlett
2008-03-13 09:55:06 +11:00
Andrew Bartlett
a0754c2a85 Upgrade provision-backend to python.
This required a large rework of the provision code, so as to move much
of the 'guess' logic into subprocedures, rather than just inline in
the provision code.

Andrew Bartlett
2008-03-13 08:08:05 +11:00
Andrew Bartlett
b4da374a99 Fix provision script to work without smb.conf location specified.
Andrew Bartlett
2008-03-11 14:41:10 +11:00
Andrew Bartlett
d331bc400f Try to fix up part of the upgrade test.
There are still problems with the upgrade test, but these are not
related to the provision system.

Andrew Bartlett
2008-03-07 19:20:39 +11:00
Andrew Bartlett
0923de1228 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
2008-03-07 10:57:52 +11:00
Andrew Bartlett
a6997c333c Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local 2008-03-07 07:38:44 +11:00
Andrew Bartlett
e462a107d3 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
2008-03-07 07:33:14 +11:00
Andrew Bartlett
1169e8d7be 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
2008-03-06 21:55:26 +11:00
Andrew Bartlett
272eb765b8 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
2008-03-03 13:03:19 +11:00
Douglas VanLeuven
62536750ae 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".
2008-03-03 11:08:59 +11:00
Andrew Bartlett
16378219fb Reorder modules to have rdn_name before objectclass.
This ensures the relative DN is placed in the correct case into the
DB.

Andrew Bartlett
2008-02-28 08:39:45 +11:00
Kai Blin
6ac6de8476 idmap: Handle uid->SID mapping 2008-02-21 11:21:59 +01:00
Jelmer Vernooij
bc0fab89e3 Formatting fixes. 2008-02-16 15:23:26 +01:00
Jelmer Vernooij
4b9d5bc57c Use struct for provision parameters since there are so many of them. 2008-02-15 15:14:55 +01:00
Jelmer Vernooij
8b33860954 Initial work on a test for samba.tests.samdb 2008-02-13 02:18:45 +01:00
Jelmer Vernooij
bd0ef811c4 Fix invalid symbol. 2008-02-13 01:21:06 +01:00
Jelmer Vernooij
eb04de69c0 Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths. 2008-02-11 13:20:24 +01:00
Jelmer Vernooij
7777611c0f Add tests for upgrade of WINS database. 2008-02-09 22:29:42 +01:00
Jelmer Vernooij
073ed0dd1c Add docstring. 2008-02-09 17:42:31 +01:00
Jelmer Vernooij
68f13d87eb Fix syntax of docstrings, set project name when generating Python API documentation. 2008-02-09 17:37:42 +01:00
Jelmer Vernooij
361b9f43fb Fix upgrade after provision parameter rename. 2008-02-09 03:59:45 +01:00
Jelmer Vernooij
b173fa6bd2 Fix provision python test. 2008-02-09 03:09:56 +01:00
Jelmer Vernooij
4eec2bbc9a Add tests for findnss(), add some docstrings. 2008-02-09 02:10:49 +01:00
Jelmer Vernooij
373ef4287f Remove unused class members. 2008-02-09 01:42:38 +01:00
Jelmer Vernooij
e367df5d99 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Conflicts:

	source/scripting/python/samba/provision.py
2008-02-08 14:02:22 +01:00
Andrew Bartlett
603e981250 Fix LDAP backend with python
We were still setting the hard-coded users.ldb etc, rather than
switching to the ldapi:// URI

Andrew Bartlett
2008-02-08 17:11:26 +11:00
Jelmer Vernooij
73d1b0fcb6 Fix formatting. 2008-02-08 03:03:44 +01:00
Jelmer Vernooij
079200b824 python: Use relative paths for registry. 2008-01-26 04:22:42 +01:00
Jelmer Vernooij
41571bbb93 python: Load smb.conf file for the provision tests. 2008-01-26 02:55:03 +01:00
Jelmer Vernooij
64babbec22 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Conflicts:

	source/scripting/python/samba/provision.py
2008-01-25 11:50:00 +01:00
Jelmer Vernooij
04fe8c8aef python/provision: Reload secrets when necessary, fix unix names in mappings.
Pair programmed with Andrew.
2008-01-25 11:47:44 +01:00
Andrew Bartlett
5370484d25 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
2008-01-25 17:11:20 +11:00
Jelmer Vernooij
dff54ff043 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. :-(
2008-01-25 03:54:33 +01:00
Jelmer Vernooij
9173c678ef python: Add test for secretsdb_become_dc 2008-01-25 01:37:47 +01:00
Jelmer Vernooij
859cffed9d python: fix tests for check_all_substituted. 2008-01-25 01:30:43 +01:00
Jelmer Vernooij
688adcbb63 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 :-)
2008-01-25 01:02:13 +01:00
Jelmer Vernooij
e726ce5bc5 python: Add function to look for unsubsituted variables. 2008-01-24 22:18:27 +01:00
Jelmer Vernooij
c09efa7b77 python: Add bindings for SamDB.set_invocation_id(). 2008-01-24 22:08:39 +01:00
Jelmer Vernooij
1de69a772e Python: add some docstrings. 2008-01-24 01:06:19 +01:00
Jelmer Vernooij
a90f3e8c42 python: Support --no-pass. 2008-01-24 01:05:57 +01:00
Jelmer Vernooij
b3afde0f00 python: Add convenience function for getting command line loadparm context
and default to using system smb.conf.
2008-01-23 23:38:57 +01:00
Andrew Bartlett
d822dfa017 Remove --ldap-base from the python provision script
(This is a merge from the ejs script)

Andrew Bartlett
2008-01-18 13:25:01 +11:00
Jelmer Vernooij
0a039fabcb python: Add simple test for samr python code. 2008-01-14 19:53:08 +01:00
Jelmer Vernooij
16fc69b843 python: Be more pythonic - turn WERROR and NTSTATUS return codes into exceptions. 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
bd3e6c41c4 python: Fix python code for winreg, add test. 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
25a0cd091b python: Fix last bugs in rpcecho test. It passes now! 2008-01-14 19:53:07 +01:00
Jelmer Vernooij
4c87af9531 pidl/python: Pass credentials and loadparm context when connecting using DCE/RPC. 2008-01-14 19:53:06 +01:00
Jelmer Vernooij
ebb78ea423 python: Fix rpcecho tests. 2008-01-14 19:53:06 +01:00