1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-22 16:23:49 +03:00
Commit Graph

288 Commits

Author SHA1 Message Date
Jelmer Vernooij
66df250ff3 python/provision: Create private dir if it didn't exist yet. 2008-01-25 01:41:06 +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
Andrew Bartlett
ae2ea1bd0c Make the repl_meta_data module the default for domain controllers.
Andrew Bartlett
2008-01-24 16:17:45 +11:00
Andrew Bartlett
e9bb130d63 Kill another sub that the modules will handle for us. 2008-01-24 11:33:37 +11:00
Andrew Bartlett
f65e5c1644 Remove useless subs from the ejs provision
The less things we manually place into the templates, the easier the
conversion to python will be.

Andrew Bartlett
2008-01-24 11:26:21 +11: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
c2f2e01357 Remove default 'showInAdvancedViewOnly' values.
This means we only show and set the values when they are not the
values the schema and objectclass module would impose.

Andrew Bartlett
2008-01-18 18:10:18 +11:00
Andrew Bartlett
e9003feb1b Don't set 'name' in the LDIF, this is handled by the rdn_name module.
Andrew Bartlett
2008-01-18 17:08:34 +11:00
Andrew Bartlett
f6dbdf34e8 Don't manually specify instanceID in the template files.
The instanceid module creates this automaticlly, so we don't need this
any more.

Andrew Bartlett
2008-01-18 13:30:20 +11:00
Andrew Bartlett
ffb12aad8a Use syncrepl on all OpenLDAP databases (creates contextCSN attribute)
This module needs to be loaded on each database, not just the main
partition.  We use it to create the usn for the entries.

Andrew Bartlett
2008-01-18 13:28:52 +11: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
Andrew Bartlett
e77375758d provision: simplfy by removing old code to manually create baseDNs.
Previously, we would create the first record in the DB as an LDIF
file, with the expectation that the administrator would use slapadd to
create the database.

We now do everything over LDAP, which is far simpler, and allows the
LDB module chain to do its work, without special cases.

Also fix naming of the output schema when suggesting the comamnd line
to run ad2oLschema in provision-backend.

Andrew Bartlett
2008-01-17 12:00:27 +11:00
Andrew Bartlett
4c869c54c2 OpenLDAP backend: Place the refint overlay after the memberof overlay
This still doesn't work for me, but is the recommended order.

Andrew Bartlett
2008-01-17 10:35:08 +11:00
Andrew Bartlett
f7f765c29b Start generating a configuration for the refint overlay. This
OpenLDAP module should ensure that after a subtree rename, attributes
are still consistant.

Andrew Bartlett
2008-01-16 09:26:14 +11:00
Andrew Bartlett
e3a76be047 Add in new module to normalise DNs being returned from OpenLDAP. This
fixes the case of the attribute in teh DN.

Fix option spelling for example re-provision

Andrew Bartlett
2008-01-11 10:44:49 +11:00
Andrew Bartlett
48dc07902f Make Samba4 and Fedora DS happier
Recent changes to Samba4 have made the Fedora DS backend fail.  This
is a start on fixing that.

Andrew Bartlett
2008-01-11 09:54:22 +11:00
Jelmer Vernooij
fdd2ba336b r26691: registry: Add subkeys required for Server Manager Alerts and Peplication. See bugs 4934 and 4935. 2008-01-07 16:42:02 -06:00
Andrew Bartlett
51cd93344d r26686: Fix bug 5143 by Jason Tarbet. This prevented an easy cut-and-paste of
the provision options used.

Andrew Bartlett
2008-01-06 23:57:02 -06:00
Andrew Bartlett
3b6f461e9a r26636: Remove useless 'backend' parameter, and make the memberof overlay use global.
Andrew Bartlett
2007-12-31 22:06:01 -06:00
Andrew Bartlett
f2731fddf0 r26635: The OpenLDAP folks have been very accommodating, and their memberof plugin allows the error being returned to be adjusted.
Andrew Bartlett
2007-12-31 21:33:05 -06:00
Jelmer Vernooij
3ee6209407 r26622: python: Update license version, clarify copyright. 2007-12-28 10:33:02 -06:00
Jelmer Vernooij
46580d51d3 r26621: vampire: Add simple Python-based vampire script 2007-12-28 10:33:01 -06:00
Andrew Bartlett
5a4a2d10bc r26610: Write out a memberof.conf, to run the memberof plugin on all linked
attributes, as found in the schema.

Index 'cn', as otherwise exact match searches on this attribute always
fail (need to figure out what is so special about cn in OpenLDAP).

Andrew Bartlett
2007-12-26 22:21:01 -06:00
Jelmer Vernooij
d649f73431 r26598: Simplify the way Python tests are run. 2007-12-26 11:57:08 -06:00
Jelmer Vernooij
2227fb6df6 r26596: Fixed upgrade.py.
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.
2007-12-26 11:57:08 -06:00
Jelmer Vernooij
150cf39fbd r26593: - More work on the python versions of samba3dump and the samba3sam tests.
- Initial work converting the upgrade code to Python.
- Removed the old EJS upgrade code because it has been broken for a long time.
2007-12-26 11:57:07 -06:00
Jelmer Vernooij
b07ca944ba r26562: Fix provisioning using Python. 2007-12-24 01:51:00 -06:00
Jelmer Vernooij
40bf88c8a7 r26535: Get rid of all-knowing ProvisionSettings object. 2007-12-21 05:51:56 +01:00
Jelmer Vernooij
af28f0c56d r26526: Fix argument value. 2007-12-21 05:51:49 +01:00
Jelmer Vernooij
ac1083178f r26523: Refactor provisioning code. 2007-12-21 05:51:44 +01:00
Jelmer Vernooij
a8b1fe15ac r26520: More Python updates. 2007-12-21 05:51:31 +01:00
Jelmer Vernooij
7a15b486ba r26517: Add functions for setting and getting parameters on a LoadParm.
Pass loadparm context along to Ldb contexts.
Other minor Python improvements.
2007-12-21 05:51:23 +01:00
Jelmer Vernooij
b4ae4cbfe5 r26509: Don't make boolean options eat the next argument. 2007-12-21 05:51:14 +01:00
Jelmer Vernooij
73bd4a9566 r26506: Start running (really trivial) tests for upgrade script. 2007-12-21 05:51:12 +01:00
Jelmer Vernooij
d240225166 r26505: Add python bindings for some samdb-related functions, improve provisioning in python. 2007-12-21 05:51:09 +01:00
Jelmer Vernooij
1b89311e5f r26503: Change order of arguments in param interface so it's easier to make the
section name optional. Fix several smaller bits and pieces in the Python code.
2007-12-21 05:51:06 +01:00
Jelmer Vernooij
dbebb4ef47 r26475: Add ldb.set_credentials function. 2007-12-21 05:50:35 +01:00
Andrew Bartlett
1ffada95d2 r26424: Patch and hits from Howard Chu <hyc@symas.com> for our automated setup
of OpenLDAP.

This makes it consistant with the Fedora DS setup, and doesn't mix
both hdb and bdb.

Andrew Bartlett
2007-12-21 05:49:51 +01:00
Jelmer Vernooij
277f216524 r26370: Import upgrade script in Python. 2007-12-21 05:49:07 +01:00
Jelmer Vernooij
090c799f98 r26366: Import provision scripts in Python. 2007-12-21 05:49:06 +01:00
Andrew Bartlett
a00bb94253 r26305: Update template files and testsuite to try and work with current
openldap, and fully support different LDAP server locations.

Andrew Bartlett
2007-12-21 05:48:19 +01:00
Andrew Bartlett
b0de08916e r26298: Use metze's schema loading code to pre-initialise the schema into the
samdb before we start writing entries into it.

In doing so, I realised we still used 'dnsDomain', which is not part
of the standard schema (now removed).

We also set the 'wrong' side of the linked attributes for the
masteredBy on each partition - this is now set in provision_self_join
and backlinks via the linked attributes code.

When we have the schema loaded, we must also have a valid domain SID
loaded, so that the objectclass module works.  This required some ejs
glue.

Andrew Bartlett
2007-12-21 05:48:15 +01:00
Andrew Bartlett
d67e5c7896 r26245: Make it easier to handle the LDAP backend, with it's differing needs,
by seperating the modules list into parts.  That way, we can remove
the modules that the backend will provide.

Andrew Bartlett
2007-12-21 05:47:24 +01:00
Andrew Bartlett
a7be80766f r26137: Rename the entryUUID module to better match it's purpose: being a
simple ldap mapping (a complex mapping will follow).

Fix the module to handle 'name' better, rather than using the 'name'
attribute built into OpenLDAP, rename to samba4RDN.  We need to see if
this can be handled in the backend.

Also rename the functions and inernal module name to entryuuid for
consistancy.

Andrew Bartlett
2007-12-21 05:46:19 +01:00
Andrew Bartlett
ed57862b90 r25960: Enable checks on the validity of the search base on sam.ldb in Samba4.
Remove bogus check to return NO_SUCH_ENTRY in ldap_backend.c, as this
error is now correctly emited from ldb.

Andrew Bartlett
2007-12-21 05:45:19 +01:00
Andrew Bartlett
f1ab90c88c r25940: Rework the samldb and templates handling.
Templates just don't belong in the sam.ldb, as they don't obey any of
the other rules.  This moves them to a seperate templates.ldb.

In samldb, this patch reworks the duplicate SID and Name detection
code, to use ldb_search_exp_fmt() rather than gendb_search.  This
returns far more useful errors, which we now handle and report better.

The call to samdb_search_for_parent_domain() has been moved in samldb,
to allow both the account and SID uniqueness checks to be in the same
domain.  This function also returns better errors.

dcesrv_drsuapi.c is updated for the new prototype of
samdb_search_for_parent_domain()

Andrew Bartlett
2007-12-21 05:45:10 +01:00
Andrew Bartlett
54f4c8ba61 r25921: Now also listen on ldapi by default in the LDAP server
Create a phpLDAPadmin configuration file example to use ldapi to talk
to Samba4

Andrew Bartlett
2007-12-21 05:45:03 +01:00
Andrew Bartlett
0377d85bbd r25891: Test that we get the correct return value when we attempt to reference
invalid entries with a linked attribute.

Make Samba4 pass that test, by fixing a silly bug in the
linked_attributes module.  (By passing down the 'original' request
structure, tdb would override our handle, and therefore we would never
be called for the 'wait', which collects the errors).

Fix up the provision templates to handle the newly required
referential integrity.

Andrew Bartlett
2007-12-21 05:44:41 +01:00
Andrew Bartlett
f3390c9054 r25753: Move cn=rootdse to @ROOTDSE to avoid being caught up in schema restrictions.
Andrew Bartlett
2007-12-21 05:43:45 +01:00
Andrew Bartlett
2ba99d58e9 r25747: Implement linked attributes, for add operations.
Much more work is still required here, particularly to handle this
better during the provision, and to handle modifies and deletes, but
this is a start.

Andrew Bartlett
2007-12-21 05:43:41 +01:00