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

257 Commits

Author SHA1 Message Date
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
Andrew Bartlett
6c8987464e r25616: Fedora DS now has a way to install the schema and extra configuration
as part of the setup inf file.

Andrew Bartlett
2007-12-21 05:42:54 +01:00
Andrew Bartlett
70467fa4c5 r25452: Move the creation of the server entry to the self join, as this makes
no sense on a member server.

Andrew Bartlett
2007-10-10 15:07:37 -05:00
Andrew Bartlett
3c4f107239 r25451: Rework the display of provision options to use printf syntax, and
avoid %s in the substituted strings from becoming a problem.

Andrew Bartlett
2007-10-10 15:07:37 -05:00
Andrew Bartlett
a186a0fa68 r25450: Make it easier to test with a particular version of OpenLDAP, by
setting OPENLDAP_PATH, move to using hdb as the backend (allows
subtree renames), and re-enable the --quiet option.

Andrew Bartlett
2007-10-10 15:07:37 -05:00
Andrew Bartlett
a00044d229 r25354: Thanks to Amin Azez <azez@ufomechanic.net> for finally getting me to
fix a provision without an smb.conf already setup.

Andrew Bartlett
2007-10-10 15:07:16 -05:00
Andrew Bartlett
9789bd3c0a r25303: Print out the options the provision script generated. This should
help users produce predictable setups.

Andrew Bartlett
2007-10-10 15:07:10 -05:00
Andrew Bartlett
4cc4ed7719 r25299: Modify the provision script to take an additional argument: --server-role
This must be set to either 'domain controller', 'domain member' or 'standalone'.

The default for the provision now changes to 'standalone'.

This is not because Samba4 is particularlly useful in that mode, but
because we still want a positive sign from the administrator that we
should advertise as a DC.

We now do more to ensure the 'standalone' and 'member server'
provision output is reasonable, and try not to set odd things into the
database that only belong for the DC.

Andrew Bartlett
2007-10-10 15:07:09 -05:00
Andrew Bartlett
e882dcb7aa r25203: Don't use subclasses in Samba4, as we always fill out the full
objectClass list.

Andrew Bartlett
2007-10-10 15:06:51 -05:00
Andrew Bartlett
d17a0058ba r24914: In response to bug #4892 by Matthias Wallnöfer <mwallnoefer@yahoo.de>,
allow the objectclass module to reconstruct the objectclass hierarchy,
rather than using templates.

The issue being fixed in particular is that 'top' was not being set on
containers.

This should ensure we do this right for all objects.

Andrew Bartlett
2007-10-10 15:03:37 -05:00
Andrew Bartlett
4634bb282b r24913: Fix typo 2007-10-10 15:03:37 -05:00
Andrew Bartlett
9f18a97117 r24911: Make better use of substituted variables in example named.conf
Andrew Bartlett
2007-10-10 15:03:36 -05:00
Andrew Bartlett
99f832e7ed r24909: Patch from Andrew Kroeger <andrew@sprocks.gotdns.com> on the slow road
to working GSS-TSIG DDNS.

Andrew Bartlett
2007-10-10 15:03:36 -05:00
Andrew Bartlett
876003f6c6 r24760: Ensure we base64 encode any password being put into LDIF, to avoid
provision failures when some of the random password values are illigal
LDIF.

Andrew Bartlett
2007-10-10 15:03:05 -05:00
Andrew Bartlett
af4d331eef r24729: First try and publishing a DNS service account, for folks to play with.
The keytab in dns.keytab should (I hope) do the job.

Andrew Bartlett
2007-10-10 15:02:58 -05:00
Jelmer Vernooij
aa98d21957 r24704: Fix bug in the registry patch code.. all the more proves this code needs tests. 2007-10-10 15:02:51 -05:00
Jelmer Vernooij
67ad556b73 r24703: Use standard registry diff files when provisioning rather than
LDIF files for the registry files.
2007-10-10 15:02:50 -05:00
Andrew Bartlett
35ee4aee71 r24696: Fix bug 4918 reported by Matthias Wallnöfer <mwallnoefer@yahoo.de>
with a patch from Andrew Kroeger <andrew@sprocks.gotdns.com>.

The changes to samldb_fill_foreignSecurityPrincipal_object() look much
larger then they are: We just skip all the objectSid generation if the
SID is supplied.

By providing a few more objects, standard dialogs on the clients are
better behaved, for these 'well known' users.

Andrew Bartlett
2007-10-10 15:02:48 -05:00
Andrew Bartlett
79e13349f0 r24694: Remove objectCategory entries from the setup templates. These can be
autogenerated by the objectclass module when the the entries are
added.

Andrew Bartlett
2007-10-10 15:02:48 -05:00
Jelmer Vernooij
7a1eec6358 r24667: Finally merge the registry improvements that Wilco Baan Hofman and I have
been working on for at least half a year now. Contains the following
improvements:

 * proper layering (finally!) for the registry library. Distinction is
   now made between 'real' backends (local, remote, wine, etc) and
   the low-level hive backends (regf, creg, ldb, ...) that are only used
   by the local registry backend
 * tests for all important hive and registry operations
 * re-enable RPC-WINREG tests (still needs more work though, as
							   some return values aren't checked yet)
 * write support for REGF files
 * dir backend now supports setting/reading values, creating keys
 * support for storing security descriptors
 * remove CREG backend as it was incomplete, didn't match the data model
   and wasn't used at all anyway
 * support for parsing ADM files as used by the policy editor (see lib/policy)
 * support for parsing PREG files (format used by .POL files)
 * new streaming interface for registry diffs (improves speed and memory usage
	for regdiff/regpatch significantly)

   ... and fixes a large number of bugs in the registry code
2007-10-10 15:02:34 -05:00
Simo Sorce
ce9b643411 r24651: Allow dynamic updates for the domain controller over its own name 2007-10-10 15:02:32 -05:00
Simo Sorce
98350b35ab r24650: Some more instructions to have make GSS-TSIG work 2007-10-10 15:02:32 -05:00
Andrew Bartlett
8f02ade1b2 r24640: Add a suggested BIND configuration snippit, to help with DNS configuration.
When we sort out GSS-TSIG on the server, we can expand this to have
the 'right stuff'.

Andrew Bartlett
2007-10-10 15:02:28 -05:00
Andrew Bartlett
53c248c264 r24262: Set the objectCategory by default in the objectclass module, rather than using templates.
Modify the samba3sam test to be less fussy, and not use the
objectclass module (which requires proper schema stuff now).

Andrew Bartlett
2007-10-10 15:01:32 -05:00
Andrew Bartlett
d053b8e218 r24060: Fix bug #4806 by Matthias Wallnöfer <mwallnoefer@yahoo.de>: We need to
include the attribute allowedChildClassesEffective for MMC to allow
the creation of containers.

This may need further refinement, but it seems to work for now.

Andrew Bartlett
2007-10-10 15:01:21 -05:00
Andrew Bartlett
45cadf3bc0 r23859: Work to have Group Policy work 'out of the box' in Samba4.
This involves creating the SYSVOL and NETLOGON shares at provision
time, and creating the right subdirectories.

This also changes the behaviour of lp.get("foo") in ejs - we now
return undefined, rather than syntax error, if the parameter doesn't
exist (perhaps because the share isn't defined).

Andrew Bartlett
2007-10-10 15:01:05 -05:00
Andrew Bartlett
625a9e6c04 r23815: Thanks to Matthias Wallnoefer <mwallnoefer@yahoo.de> for pointing out
that we had the wrong objectClass for OU=Domain
Controllers,${DOMAINDN} (was CN=Domain Controllers,${DOMAINDN})

This fixes both the SAMR server and the LDIF templates.

Andrew Bartlett
2007-10-10 14:59:22 -05:00
Andrew Bartlett
49ff929be6 r23720: Allow the member server to work against an LDAP Backend. Another case
where LDB isn't as strict as OpenLDAP, the self join record contains
duplicate servicePrincipalNames once the DNS name and domain name are
made equal.  (Easier to just skip the useless self-join).

Andrew Bartlett
2007-10-10 14:59:08 -05:00
Andrew Bartlett
fbcb1ec141 r23717: We need to remove the _ in LDAP_MANAGERPASS for the
--ldap-manager-pass= option to work.

Andrew Bartlett
2007-10-10 14:59:07 -05:00
Andrew Bartlett
17dad5d8c3 r23716: Clarify LDAP Manager DN and fix slapd startup syntax.
Andrew Bartlett
2007-10-10 14:59:06 -05:00
Andrew Bartlett
cc7900210a r23715: Make the provision-backend script print out the exact commands to run,
to set up the LDAP backend.

Andrew Bartlett
2007-10-10 14:59:06 -05:00
Andrew Bartlett
3111bbdf64 r23703: Start to get Samba4 to again work with LDAP backends, after I turned
on metze's schema work.

Andrew Bartlett
2007-10-10 14:59:06 -05:00