1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00
Commit Graph

178 Commits

Author SHA1 Message Date
Andrew Bartlett
13908a8cb4 r24761: Permit subtree renames in Samba4.
The module is scary: On a rename, it does a search for all entries
under that entry (including itself), and fires off a seperate rename
call for each result.  This will fail miserably on an LDAP backend,
but I'll need to work on using hdb for OpenLDAP, and hope Fedora DS
can implement subtree renames at some point.

Andrew Bartlett
2007-10-10 15:03:05 -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
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
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
07a9db1438 r23907: Fix bug 4790 reported by mwallnoefer@yahoo.de:
Before the provisioning enters to the function provision_default_paths (in
scripting/libjs/provision.js), the variable subobj.DNSDOMAIN isn't properly set
(for example for the filename of the DNS zonefile).

Andrew Bartlett
2007-10-10 15:01:09 -05:00
Andrew Bartlett
923d67ea9d r23875: As pointed out by mwallnoefer@yahoo.de:
On default Active Directory installations, the NETLOGON share isn't
an indipendent directory. In fact it's mapped to the subdirectory
"scripts" from the share SYSVOL under <Domain name>.

Andrew Bartlett
2007-10-10 15:01:06 -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
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
Andrew Bartlett
dcff83ebe4 r23560: - Activate metze's schema modules (from metze's schema-loading-13 patch).
- samba3sam.js: rework the samba3sam test to not use objectCategory,
  as it's has special rules (dnsName a simple match)
- ldap.js: Test the ordering of the objectClass attributes for the baseDN
- schema_init.c: Load the mayContain and mustContain (and system...) attributes when
  reading the schema from ldb
- To make the schema load not suck in terms of performance, write the
  schema into a static global variable
- ldif_handlers.c: Match objectCategory for equality and canonicolisation
  based on the loaded schema, not simple tring manipuation
- ldb_msg.c: don't duplicate attributes when adding attributes to a list
- kludge_acl.c: return allowedAttributesEffective based on schema results
  and privilages

Andrew Bartlett
2007-10-10 14:53:27 -05:00
Andrew Bartlett
bb583463bf r23361: Merge from SAMBA_4_0_RELEASE:
Print the smb.conf path being created in provision.

Andrew Bartlett
2007-10-10 14:53:11 -05:00
Andrew Bartlett
430c998dc9 r23351: Merge from SAMBA_4_0_RELEASE:
Fix a nasty issue we had with SWAT.  We could not provision into a
different domain, as we didn't re-calcuate the DOMAINDN after the user
changed it in the form.

Andrew Bartlett
2007-10-10 14:53:11 -05:00
Andrew Bartlett
f687bc92ae r23264: Make it more clear what this is actually setting up 2007-10-10 14:53:07 -05:00
Andrew Bartlett
0f457b1d2e r23189: Work towards a totally scripted setup of LDAP backends, so others can
easily try this out.

I also intend to use this for the selftest, but I'm chasing issues
with the OpenlDAP (but not Fedora DS) backend.

Andrew Bartlett
2007-10-10 14:53:02 -05:00
Andrew Bartlett
01d54d13dc r23177: Add in a new provision-backend script. This helps set up the OpenLDAP or Fedora DS backend.
This required a new mkdir() call in ejs.

We can now provision just the schema for ad2oLschema to operate on
(with provision_schema(), without performing the whole provision, just
to wipe it again (adjustments to 'make test' to come soon).

Andrew Bartlett
2007-10-10 14:53:00 -05:00
Andrew Bartlett
5b6f704b24 r23032: Remove calls to println(), and ensure we print the ldb errstring().
Andrew Bartlett
2007-10-10 14:52:42 -05:00
Andrew Tridgell
b9f8650b20 r23012: we need a POLICYGUID in provision 2007-10-10 14:52:39 -05:00
Andrew Bartlett
ee7b06fc83 r22756: Make it easier to setup an LDAP replica. Provision with
--partitions-only (suggestions for a better name welcome) will setup
the partitions records, but no any data in those partitions.  This can
then point at the already configured remote LDAP server.

Andrew Bartlett
2007-10-10 14:52:15 -05:00
Andrew Bartlett
860dfa4ea1 r22478: Update the LDAP backend code to handle initialisation of multiple
partitions onto the target LDAP server.

Make the LDAP provision run before smbd starts, then stop the LDAP
server.  This ensures this occurs synchronously, We then restart it
for the 'real run' (with slapd's stdin being the FIFO).

This required fixing a few things in the provision scripts, with more
containers being created via a add/modify pair.

Andrew Bartlett
2007-10-10 14:51:31 -05:00
Jelmer Vernooij
ef794f03d5 r21673: Fix Samba 3 data read tests. I can't figure out why the upgrade one is broken, so that one is still disabled. 2007-10-10 14:49:08 -05:00
Andrew Bartlett
ea4c2ea22f r21513: I don't know how long this has been wrong, but fix this up so we can
re-provision (as is required for the TEST_LDAP=yes version of make
test).

Andrew Bartlett
2007-10-10 14:48:48 -05:00
Simo Sorce
35886b4ae6 r21351: Change ldb ejs bindings return codes.
We were returning just true/false and discarding error number and string.

This checking probably breaks swat, will fix it in next round as swat
is what made me look into this as I had no way to get back error messages
to show to the users.

Simo.
2007-10-10 14:48:18 -05:00
Stefan Metzmacher
838d307e6c r21294: this is useless, now that there's no operation in between...
metze
2007-10-10 14:48:03 -05:00
Andrew Bartlett
6ce557a1af r21135: Instead of having hooks to update keytabs as an explicit thing, update
them as a hook on ldb modify, via a module.

This should allow the secrets.ldb to be edited by the admin, and to
have things update in the on-disk keytab just as an in-memory keytab
would.

This isn't really a dsdb plugin, but I don't have any other good ideas
about where to put it.

Andrew Bartlett
2007-10-10 14:44:31 -05:00
Stefan Metzmacher
306ea74f85 r20953: add templates in provision_become_dc()
metze
2007-10-10 14:44:01 -05:00
Stefan Metzmacher
edc37501d6 r20922: use the show_deleted module by default
metze
2007-10-10 14:43:52 -05:00
Stefan Metzmacher
a096a97415 r20806: make it possible to configure the secrets.ldb url
via "secrets database = my_secrets.ldb"

metze
2007-10-10 14:43:33 -05:00
Stefan Metzmacher
c78e345fea r20805: don't use hardcoded values for secrects.keytab and sam.ldb
metze
2007-10-10 14:43:32 -05:00
Simo Sorce
6976f283fc r20689: "pdc" and "bdc" have been replaced by "domain controller" 2007-10-10 14:40:23 -05:00
Stefan Metzmacher
55f845377c r20683: load indexes before applying replicated objects,
as for every object the repl_meta_data module needs to look
up the object by objectGUID

metze
2007-10-10 14:40:21 -05:00
Stefan Metzmacher
0f387d58e6 r20575: apply records to the test_samdb.ldb (my birthday present to myself...:-)
we need to modify some modules to only handle originating changes...

metze
2007-10-10 14:37:05 -05:00
Stefan Metzmacher
e84b0c7d40 r20572: - prepare a test_samdb.ldb in the NET-API-BECOME-DC torture test
- we call a ejs script from the torture test for this task
  so that we can use the provision template ldif's.

metze
2007-10-10 14:37:03 -05:00
Stefan Metzmacher
5875ce1ac6 r20568: split out the rootdse ldif
and set the isSyncronized = TRUE when we done

metze
2007-10-10 14:37:02 -05:00
Stefan Metzmacher
cbebe559a2 r20565: configure the list of global ldb modules also in js code
metze
2007-10-10 14:36:59 -05:00
Stefan Metzmacher
3e337ec276 r20560: make it possible to configure the backend and modules
for all partitions and make it not use LDAP in the variable names
because it isn't specific to the ldap backend case.

metze
2007-10-10 14:36:57 -05:00
Stefan Metzmacher
2a6e6a2695 r20557: use ${DOMAINDN} instead of ${BASEDN}
metze
2007-10-10 14:36:56 -05:00
Stefan Metzmacher
09622f0122 r20555: fix typo...
metze
2007-10-10 14:36:55 -05:00
Stefan Metzmacher
ebbd8a83c9 r20554: - use ${ROOTDN} for the rootDomainNamingContext
- the ${CONFIGDN} is a child of the ${ROOTDN}

metze
2007-10-10 14:36:55 -05:00
Stefan Metzmacher
09ca6aae12 r20553: add ${CONFIGDN} and ${SCHEMADN} instead of using hardcoded paths
under ${BASEDN}

metze
2007-10-10 14:36:54 -05:00
Andrew Bartlett
5781d0f41a r20505: I had the wrong ldif name here.
Andrew Bartlett
2007-10-10 14:36:02 -05:00
Andrew Bartlett
f45504e271 r20495: Further notes on joining with fedora DS.
Add in a hook for adding an ACI, needed to allow anonymous access
until we hook across a SYSTEM token to the LDAP server.

Andrew Bartlett
2007-10-10 14:36:00 -05:00
Andrew Bartlett
600c7f1a68 r20492: Add in instructions/sample LDIF to setup Fedora DS as a backend.
Add a new module entrypoint to handle the new, interesting and
different mappings required for Fedora DS.

Andrew Bartlett
2007-10-10 14:35:59 -05:00
Andrew Bartlett
99faff0ad8 r20468: Patch from Martin Kuehl <kuehl@univention.de> to make it easier to load
into an exsting LDAP server.  (Allow some parts to pre-exist, and try
to blow away less data).

Andrew Bartlett
2007-10-10 14:35:54 -05:00
Stefan Metzmacher
0fcdc8c243 r19427: print out the currect name
metze
2007-10-10 14:21:29 -05:00
Simo Sorce
57ee79c155 r19334: Commit commented provisioning code to activate the schema 2007-10-10 14:21:11 -05:00
Andrew Bartlett
9b77d285d8 r19318: Because we don't test the vampire code in SWAT very regularly, it bit-rotted.
Fix up interfaces and interaction between the two..

Andrew Bartlett
2007-10-10 14:21:08 -05:00