1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

382 Commits

Author SHA1 Message Date
Andrew Bartlett
ee257e902a 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
(This used to be commit 4cc4ed7719aff712e735628410bd3813c7d6aa40)
2007-10-10 15:07:09 -05:00
Andrew Bartlett
09a5ef1384 r25203: Don't use subclasses in Samba4, as we always fill out the full
objectClass list.

Andrew Bartlett
(This used to be commit e882dcb7aaa52843c656084c47c0b3c49557c22e)
2007-10-10 15:06:51 -05:00
Andrew Bartlett
8294016a1b 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
(This used to be commit d17a0058ba8492b8b3f81b6f10fc34b3e45bb8a6)
2007-10-10 15:03:37 -05:00
Andrew Bartlett
d14a29fb74 r24913: Fix typo
(This used to be commit 4634bb282bec35c75e74e47f5ce67835a3556b68)
2007-10-10 15:03:37 -05:00
Andrew Bartlett
ced6fc995f r24911: Make better use of substituted variables in example named.conf
Andrew Bartlett
(This used to be commit 9f18a9711771a88be7c38bc26ae6e59fb98f93dd)
2007-10-10 15:03:36 -05:00
Andrew Bartlett
b4aa01dcd1 r24909: Patch from Andrew Kroeger <andrew@sprocks.gotdns.com> on the slow road
to working GSS-TSIG DDNS.

Andrew Bartlett
(This used to be commit 99f832e7edcf940003fe9a2506622d991bc00f27)
2007-10-10 15:03:36 -05:00
Andrew Bartlett
f681306335 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
(This used to be commit 876003f6c6466bfd37ec9b05c9a1f1cc83dd9898)
2007-10-10 15:03:05 -05:00
Andrew Bartlett
73388ce54c 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
(This used to be commit af4d331eef91ef7699d179d15e7337fff1eff7bb)
2007-10-10 15:02:58 -05:00
Jelmer Vernooij
349cc1e14b r24704: Fix bug in the registry patch code.. all the more proves this code needs tests.
(This used to be commit aa98d219571c4a7af1e5a0f8483cc17a4b6b36e2)
2007-10-10 15:02:51 -05:00
Jelmer Vernooij
2edf63b6d6 r24703: Use standard registry diff files when provisioning rather than
LDIF files for the registry files.
(This used to be commit 67ad556b7388e5d82756e0a3cfc596e44136329c)
2007-10-10 15:02:50 -05:00
Andrew Bartlett
4b31fd4409 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
(This used to be commit 35ee4aee719e69983d650602d1c6422a31600001)
2007-10-10 15:02:48 -05:00
Andrew Bartlett
ebce7a586b r24694: Remove objectCategory entries from the setup templates. These can be
autogenerated by the objectclass module when the the entries are
added.

Andrew Bartlett
(This used to be commit 79e13349f00d009fc5dd0cdddade379df906ebc8)
2007-10-10 15:02:48 -05:00
Jelmer Vernooij
b409d4120f 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
(This used to be commit 7a1eec6358bc863dfc671c542b7185d3e39d7b5a)
2007-10-10 15:02:34 -05:00
Simo Sorce
7663475111 r24651: Allow dynamic updates for the domain controller over its own name
(This used to be commit ce9b64341159cb1a8f42809dcecc0b1e80eb8a5e)
2007-10-10 15:02:32 -05:00
Simo Sorce
61582b5d8a r24650: Some more instructions to have make GSS-TSIG work
(This used to be commit 98350b35ab0b0f06cc9ddf8edaf3dfe705c3e5bf)
2007-10-10 15:02:32 -05:00
Andrew Bartlett
2da0be9d5e 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
(This used to be commit 8f02ade1b2cc164f64f4ea8a371c107ccf6a81b3)
2007-10-10 15:02:28 -05:00
Andrew Bartlett
ae7819d715 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
(This used to be commit 53c248c2645e86fbc8720860aed92a479483b528)
2007-10-10 15:01:32 -05:00
Andrew Bartlett
4e697b288b 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
(This used to be commit d053b8e218767cb12e20a00fb18995e30869db11)
2007-10-10 15:01:21 -05:00
Andrew Bartlett
10f6e16573 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
(This used to be commit 45cadf3bc0d38f6600666511a392e1ce353adee7)
2007-10-10 15:01:05 -05:00
Andrew Bartlett
1cc770fc58 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
(This used to be commit 625a9e6c041bedc93925bdebb3a60af1dbdde317)
2007-10-10 14:59:22 -05:00
Andrew Bartlett
967866f170 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
(This used to be commit 49ff929be6fcf57721532de13bdd7a7e1617af6f)
2007-10-10 14:59:08 -05:00
Andrew Bartlett
90b49dc520 r23717: We need to remove the _ in LDAP_MANAGERPASS for the
--ldap-manager-pass= option to work.

Andrew Bartlett
(This used to be commit fbcb1ec14125a4ca57922ec75b01af9a99dcd954)
2007-10-10 14:59:07 -05:00
Andrew Bartlett
97172e1120 r23716: Clarify LDAP Manager DN and fix slapd startup syntax.
Andrew Bartlett
(This used to be commit 17dad5d8c345c2c3a7643bff7a43473339a22d40)
2007-10-10 14:59:06 -05:00
Andrew Bartlett
c37cfae81e r23715: Make the provision-backend script print out the exact commands to run,
to set up the LDAP backend.

Andrew Bartlett
(This used to be commit cc7900210a2e473060d5897ec729923ac6b2f18d)
2007-10-10 14:59:06 -05:00
Andrew Bartlett
3a78f7323a r23703: Start to get Samba4 to again work with LDAP backends, after I turned
on metze's schema work.

Andrew Bartlett
(This used to be commit 3111bbdf64f57bf8d2638fd9829c071dcfeb4af1)
2007-10-10 14:59:06 -05:00
Andrew Bartlett
e9d19477e4 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
(This used to be commit dcff83ebe463bc7391841f55856d7915c204d000)
2007-10-10 14:53:27 -05:00
Günther Deschner
b3f3a4b529 r23559: After running testprogs/ejs/minschema.js update schema.ldif (on abartlet's
request).

Guenther
(This used to be commit 5410b23ea6649f49e8f24a57854f5e72f114aaef)
2007-10-10 14:53:27 -05:00
Andrew Bartlett
e6aecd8b91 r23235: Don't do a seperate LDAP provision step. Instead, everything we need
(including the config files) is created by provision-backend.

Andrew Bartlett
(This used to be commit 6d4d90399f5a0451fcf2156a465123801e027359)
2007-10-10 14:53:05 -05:00
Andrew Bartlett
66d0f5c7a3 r23232: Add in some extra files required by the new provision-backend.
(sorry for breaking the build)

Andrew Bartlett
(This used to be commit 0108334fe3331b7a2cfa972c6f0674b56d436cb5)
2007-10-10 14:53:04 -05:00
Stefan Metzmacher
9f6c762b0a r23205: abartlet please commit the correct content ...
this just fixes make install

metze
(This used to be commit 236da2cb3db5297b6b9c40a572c3d547954f5090)
2007-10-10 14:53:03 -05:00
Andrew Bartlett
86a4886e39 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
(This used to be commit 0f457b1d2e20c36ab220b4a6711ce7930c4c7d21)
2007-10-10 14:53:02 -05:00
Andrew Bartlett
5fb459e4fa 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
(This used to be commit 01d54d13dc66ef2127ac52c64ede53d0790738ec)
2007-10-10 14:53:00 -05:00
Stefan Metzmacher
1b67925851 r23033: regenerate schema.ldif with minischema.js
metze
(This used to be commit c9e017c00864d08ad6eb38092abd29810604e207)
2007-10-10 14:52:42 -05:00
Andrew Bartlett
e40d9cbdc8 r23027: Make sure the parent object always exists.
Andrew Bartlett
(This used to be commit 55c7c0906ccb741ab002f460164ccbbe56b55a98)
2007-10-10 14:52:41 -05:00
Andrew Tridgell
4f9977aaba r22984: not everyone uses tridgell.net (fortunately)
(This used to be commit f60817d7970ab449ac327f4da312f10350b9636f)
2007-10-10 14:52:35 -05:00
Andrew Tridgell
c0aa1f0d9e r22972: added the basic ldif needed to support group policies in Samba4. WinXP
clients do correctly see our group policies, but the gpmc admin tool
doesn't yet work to allow you to edit the policies
(This used to be commit 4c6e01a585f59caf7d2d87833f5eedc018ed8acc)
2007-10-10 14:52:34 -05:00
Andrew Bartlett
5ca5e6bdf9 r22921: This index saves another 7 seconds off a 'make quicktest', and is a common search operator.
Andrew Bartlett
(This used to be commit a258455e757dcc67637502bedf7066580cbf4034)
2007-10-10 14:52:30 -05:00
Andrew Tridgell
e9dcc9a3da r22887: and servicePrincipalName ....
(This used to be commit 45d668d19f661cbaff257b91ed2525577e3cf0d2)
2007-10-10 14:52:29 -05:00
Andrew Tridgell
71cbc569cb r22885: now we use kernberos more, we need to index on userPrincipalName
(This used to be commit 600d39e0bacfd669bdee0ea3aec6bdc02113993b)
2007-10-10 14:52:29 -05:00
Andrew Bartlett
112728c651 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
(This used to be commit ee7b06fc832ca7c572205c7c268c3c7c552effa0)
2007-10-10 14:52:15 -05:00
Andrew Bartlett
82ad0ea6ea r22572: Don't manually set objectGUID values
(This used to be commit b5afec8b828e1aba231501b68aa4196b94a87c32)
2007-10-10 14:51:46 -05:00
Andrew Bartlett
4d23d4b210 r22531: Fix up OpenLDAP schema map to almost pass 'make test'.
Andrew Bartlett
(This used to be commit ef9320ae5b0b01bd39b60c22ff4e3698ac0ae9a7)
2007-10-10 14:51:38 -05:00
Stefan Metzmacher
e5ea03737f r22530: use message() to make --quiet work
metze
(This used to be commit 7c381b2d4f92622ac7efdcc6b8e405d418e2d4bb)
2007-10-10 14:51:38 -05:00
Andrew Bartlett
17078a46b8 r22497: Support renaming objectclasses and attributes for the LDAP backend.
OpenLDAP is fussy about operational attributes in user-supplied
schema.

Andrew Bartlett
(This used to be commit d7cd4b768a7f56ced8ed94b9a63d01865ba7d10a)
2007-10-10 14:51:33 -05:00
Andrew Bartlett
f1851e7abc r22494: Skip subSchema again, but we will need to remap this objectClass.
Make the Fedora DS backend test again.

Andrew Bartlett
(This used to be commit 65327a0e4d61e2c9813720f04fe24ffc5c49278b)
2007-10-10 14:51:33 -05:00
Andrew Bartlett
3d4c4c5fa3 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
(This used to be commit 860dfa4ea1ab2b62d4d4fe0644e0a9b882fdafa1)
2007-10-10 14:51:31 -05:00
Jelmer Vernooij
99fb785ea1 r21673: Fix Samba 3 data read tests. I can't figure out why the upgrade one is broken, so that one is still disabled.
(This used to be commit ef794f03d50022a77303c77045a04d9407d07cbc)
2007-10-10 14:49:08 -05:00
Stefan Metzmacher
c200374325 r21583: add missing CN=
metze
(This used to be commit 199416a4d3d7e0f4c416c66cb92e49fc9a83a556)
2007-10-10 14:49:00 -05:00
Stefan Metzmacher
760f438553 r21435: ntPwdHash,lmPwdHash,sambaNTPwdHistory,sambaLMPwdHistory and krb5Key
are not used anymore

metze
(This used to be commit 9e91bd64492c45ee333f5e797d4d492378600356)
2007-10-10 14:48:34 -05:00
Simo Sorce
7ca399c075 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.
(This used to be commit 35886b4ae68be475b0fc8b2689ca04d766661261)
2007-10-10 14:48:18 -05:00