1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

1162 Commits

Author SHA1 Message Date
Oliver Liebel
805dd85291 Generate Multi-Master Replication configuration for OpenLDAP
This patches provision-backend and the related scripts to generate the
correct configuration blobs for N-way multi-master replication using
OpenLDAP.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
(This used to be commit 6ed0b3f2475022288f636605492ca27fde97cd52)
2008-08-19 12:03:04 +10:00
Jelmer Vernooij
47124efe42 Add helper object Hostconfig to make it easier to get to e.g. the
SAM database.
(This used to be commit be75b2a36ee49f66ada3ec3ababa82d74085d559)
2008-08-01 21:12:37 +02:00
Jelmer Vernooij
1c94f3e95d Use new style python classes.
(This used to be commit 2a39aae0cef310a79427feb1b85f6794ea36849a)
2008-08-01 21:00:09 +02:00
Jelmer Vernooij
fff006bd84 Move domain DN determination out of newuser function.
(This used to be commit cbac27e6faa99ebaa3e6d653017c968db836560a)
2008-08-01 20:47:22 +02:00
Jelmer Vernooij
3b4ff07ded Actually fix missing substitution variables.
(This used to be commit 783412ecb27d646b171993da0ac2f11a821901d3)
2008-08-01 20:47:03 +02:00
Jelmer Vernooij
2fbe25b39d Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into manpage
(This used to be commit c87a8ba1fef1ba508ad6527d0bae4bcdd5b3cb69)
2008-08-01 20:17:56 +02:00
Jelmer Vernooij
3573420d7d Fix some forgotten substitute variables in provision, add check to prevent this sort of regression in the future.
(This used to be commit a461118f3b668779f907c4d77cebe1e76fa4e39f)
2008-08-01 20:17:29 +02:00
Jelmer Vernooij
ee505f36dd Be more pythonic.
(This used to be commit 20d40e31942f96ca9d077e57c6dd4c1d38f79b4b)
2008-07-30 13:29:29 +02:00
Andrew Bartlett
e80115deb9 We don't use EXTENSIBLEOBJECT any more.
(This used to be commit 4b137085c8b89773d4639372bbffd516a41dfc8f)
2008-07-28 20:51:02 +10:00
Andrew Bartlett
08795db6d6 Make it even clearer what to do next in the LDAP backend setup
(This used to be commit bace931ad674b5071d53bf9c99c383f1d8957e1b)
2008-07-28 20:26:14 +10:00
Andrew Bartlett
45d60f5bd9 Always print the slapd startup command
(This used to be commit b1d05e7d14c65133e8ab0ff9d41a26fa7e3d41d3)
2008-07-28 20:18:17 +10:00
Andrew Bartlett
cff30c6da6 Remove unused function and make sensitive directories private.
(This used to be commit e23333d16397606d38e90684d2d916b5b967cde4)
2008-07-28 08:04:15 +10:00
Stefan Metzmacher
934cfb9880 mamachinepw: add better error handling
metze
(This used to be commit 7ac424137f62ceacf44e477f4e3805267013005b)
2008-07-26 20:45:47 +02:00
Volker Lendecke
998b0fef11 Add "mymachinepw" to fetch our machine password out of secrets.ldb
(This used to be commit 4fbe16deb0e06e145f643568a699b80b431d4f42)
2008-07-26 20:45:47 +02:00
Andrew Bartlett
1f285560bc Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit b12dd8ee5443ebfc204d1684f541d68ffb351197)
2008-07-25 11:58:51 +10:00
Andrew Bartlett
11798902dc Complain if we are told to use an ldap backend, without the type
(This used to be commit e9c3c9ad8289ee48efa998ab6b486250dcd40b52)
2008-07-25 08:45:16 +10:00
Andrew Bartlett
c9c296b6bb Install'named.txt' to private/ as documentation.
This document is much more use when subbed with all the right things.

Andrew Bartlett
(This used to be commit 136a85599815670c807f212d7d4003ec53a13729)
2008-07-22 11:09:18 +10:00
Matthias Dieter Wallnöfer
fb3e663678 Improve DNS and Group poicy configurations.
- fixes bug #4813 (simplify DNS setup)
  - This reworks the named.conf to be a fully fledged include
  - This also moves the documentation into named.txt
 - improves bug #4900 (Group policy support in Samba)
   - by creating an empty GPT.INI
 - fixes bug #5582 (DNS: Enhanced zone file)
   - This is now closer to the zone file AD creates

committed by Andrew Bartlett
(This used to be commit 74d684f6b329d7dd573cdc55e16bb8e629474b02)
2008-07-22 11:06:47 +10:00
Andrew Bartlett
3408a2d18f Make a seperate template for the refint configuration too
(This used to be commit d2a527acc5ee6fe9b943657dc9c3ace920b2d619)
2008-07-18 18:58:56 +10:00
Andrew Bartlett
cfc2063f23 Put the memberof template into a seperate setup/ file.
Set a memberof-dn in a fruitless attempt to fix the ACL problem I'm
having with OpenLDAP

Andrew Bartlett
(This used to be commit 6d6e03834a1a77a8ceba41fbe8c9d49680065ba3)
2008-07-18 18:44:07 +10:00
Andrew Bartlett
fe9fa62a05 Reorder whitespace in generated slapd.conf
This helps us see the real groupings in the generated memberOf
handling.

Andrew Bartlett
(This used to be commit ec70ebb8310e563324233662f8e779c55fb87514)
2008-07-16 14:04:24 +10:00
Andrew Bartlett
e400b3ec4e Fix asking for credentials for non-LDAP provisions.
(This used to be commit 78416f4840df4f8d1f9cc5e46a48b19c86888050)
2008-07-15 18:44:58 +10:00
Andrew Bartlett
0f1eea2672 Rework provision to handle both simple and SASL binds.
Fedora DS is still setup for simple binds only, at this point.
(it also fails on other issues).

Andrew Bartlett
(This used to be commit b24c572d5a38c1f6906751c2ad2f809e1995b510)
2008-07-15 15:46:32 +10:00
Andrew Bartlett
a6b842f963 Connect to the LDAP backend with SASL credentials.
This reworks our LDAP backend code to move from anonymous access to a
shared-secret SASL-protected connection.  (SASL selects NTLM or
DIGEST-MD5 on my system).

To get this working, we must pre-populate the LDAP backend with a DN
to store ths SASL secret on, and we use back-ldif for this.

This gives us a reasonable basis to deploy a replicated OpenLDAP
backend solution.

Andrew Bartlett
(This used to be commit cd0745253c4a9ec59a035e830e54d74a05b71aaa)
2008-07-15 15:15:12 +10:00
Andrew Bartlett
44ea6a26fd rename sambaPassword -> userPassword.
This attribute is used in a very similar way (virtual attribute
updating the password) in AD on Win2003, so eliminate the difference.

This should not cause a problem for on-disk passwords, as by default
we do not store the plaintext at all.

Andrew Bartlett
(This used to be commit 1cf0d751493b709ef6b2234ec8847a7499f48ab3)
2008-07-12 15:26:42 +10:00
Andrew Bartlett
9ea25cacf1 Add a blackbox test for the provision-backend script.
This test (as most tests do :-) found a few bugs, also fixed in this
commit.

Andrew Bartlett
(This used to be commit d96a6482dad54d1d27a87107865e833a9c32cf53)
2008-06-19 11:05:20 +10:00
Simo Sorce
370f95acfc Try to get a bit further with provisioning
(This used to be commit 649f6c0c1084828dda7d50bd2904208192de77da)
2008-06-16 17:52:50 -04:00
Jelmer Vernooij
4c144bbc9e Clarify error when SWIG can't be found - it's not required unless you
intend to do development.
(This used to be commit 0f57fcaa2e8af3e2b03ba401f4fda812fe55745b)
2008-06-11 00:11:11 +02:00
Jelmer Vernooij
230503ad84 Add working Python bindings for NBT.
(This used to be commit 9c88f5e1de9db34751f16c2247fa91ae2445c5f7)
2008-06-11 00:05:58 +02:00
Andrew Bartlett
be14efbdf9 Revert Jelmer's CFLAGS commit e2b71a0ecbf10a78a59a8ec6371bdee57b1bfa6c
This commit broke the build, because not all files (libreplace, popt)
were updated.

Andrew Bartlett
(This used to be commit 3faacf4351d68a10aea78b53768571d2059772ae)
2008-05-31 08:35:55 +10:00
Jelmer Vernooij
2772871146 Fix samdb python test.
(This used to be commit 0e3d488cc108174ca0f875aab16b9771c2933f19)
2008-05-30 14:15:40 +02:00
Jelmer Vernooij
5107f093c2 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-defs
Conflicts:

	source/samba4-skip
(This used to be commit 7b0e0eb346c2f6a240b20fbcf14029539c6512b9)
2008-05-30 12:18:07 +02:00
Andrew Bartlett
21377a7ea9 Fix the samba4.dcerpc.bare.python test.
The loadparm context isn't really optional, as otherwise we can't find
the right server to connect to.

Andrew Bartlett
(This used to be commit 2b5acb5e95b46dd39c6f54b5bb7e15ddb180f7ec)
2008-05-30 15:26:10 +10:00
Andrew Bartlett
d579540085 Fix rpcecho test.
(This used to be commit df8399ba9dee9d1c706a3e56451c9f2cade96dae)
2008-05-30 15:09:59 +10:00
Andrew Bartlett
b9babfe4cc Fix up provision and samdb tests.
This fixes up the provision to operate with a target directory - it
must override the smb.conf in this case.

Andrew Bartlett
(This used to be commit 89fc39f7edb214065aff461bc225f41443eae3c7)
2008-05-30 14:26:47 +10:00
Jelmer Vernooij
39f50afc57 Move CFLAGS handling out of smb_build.
(This used to be commit e2b71a0ecbf10a78a59a8ec6371bdee57b1bfa6c)
2008-05-30 02:07:28 +02:00
Jelmer Vernooij
6f7b2b6933 Fix samdb test and enable it.
(This used to be commit 6b202d3780f8ff50e0bdfa4a749c43b5639e4880)
2008-05-29 17:38:12 +02:00
Jelmer Vernooij
e16f0e15b4 Update after changes to the provision API, make sure temp dir gets cleaned
up.
(This used to be commit 064e9ddb3786bd7df8785b39754b1e6674496b66)
2008-05-29 17:31:16 +02:00
Jelmer Vernooij
90aeca8ebd Check test directory is cleaned up by Python tests.
(This used to be commit c338269b4b9f2bf4d3386880c1d733a8e47e2c8d)
2008-05-29 17:29:56 +02:00
Andrew Bartlett
b7c8e020a6 Print prefixMap in a human-readable format.
This should allow the prefixMap to be edited, until we find the right
way to autogenerate it.

Andrew Bartlett
(This used to be commit 24ae9a55ec326807afd8d5bfa0a422a6668bd7c3)
2008-05-29 18:38:17 +10:00
Andrew Kroeger
815c0ef2ed provision: Add missing string parameter token when assigning ldap_backend.
(This used to be commit 7d26145a7fba22b2e1c7c57053aab3180a22089d)
2008-05-28 22:43:25 -05:00
Jelmer Vernooij
936b973acb Use new dynconfig.h location.
(This used to be commit c3f556915f09d078253e4c5539910a1cf420eeca)
2008-05-27 14:36:28 +02:00
Jelmer Vernooij
8f25f40a2e Remove unused literal EJS bindings.
(This used to be commit da3094d1ba86a8f4967ca1993383b0767439f79f)
2008-05-26 14:10:34 +02:00
Jelmer Vernooij
3a76da248d Remove unused libjs functions.
(This used to be commit 657a87fecc2e79e3c3f66c551e392cc341bca8cf)
2008-05-26 14:08:17 +02:00
Jelmer Vernooij
1b6396f114 Remove unused param ejs bindings.
(This used to be commit 4dd0d46e27696b6d29d4b6a63c56667ce5e03db6)
2008-05-26 14:03:55 +02:00
Jelmer Vernooij
75e2e1061e Remove unused rand EJS bindings.
(This used to be commit 4016427b77b2bc202a8dc4064ddc7e13f36db06d)
2008-05-26 14:02:37 +02:00
Jelmer Vernooij
4e9ca6caf9 Remove unused EJS net bindings.
(This used to be commit 3923414849c5a3b14379e2cd3e61d862150800a6)
2008-05-26 14:00:28 +02:00
Jelmer Vernooij
335688f640 Revert "remove unused credentials ejs module."
This reverts commit 9861cae1aebdef41f098df71be4e5a33f6af9bf1.
(This used to be commit a429dc730f97388f0b4478b44522b1fe53f8569a)
2008-05-26 13:43:54 +02:00
Jelmer Vernooij
ec362bdbc0 Remove unused datablob and nbt ejs bindings.
(This used to be commit f758553ac50d374f64a8763055dc4f12ab9b0c68)
2008-05-26 13:40:17 +02:00
Jelmer Vernooij
cbe439383a remove unused credentials ejs module.
(This used to be commit 9861cae1aebdef41f098df71be4e5a33f6af9bf1)
2008-05-26 13:36:05 +02:00