1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

160 Commits

Author SHA1 Message Date
Andrew Bartlett
e350ca0bcb r19336: Merge from release branch: new Mapped OIDs, in own subtree.
Andrew Bartlett
(This used to be commit ac5abff4b6)
2007-10-10 14:21:12 -05:00
Andrew Bartlett
064b605fab r19315: Record some OID allocations.
Andrew Bartlett
(This used to be commit 0ceffb52eb)
2007-10-10 14:21:07 -05:00
Andrew Bartlett
227831537a r19311: Try to keep the schema map files fairly similar (hope for less weird bugs).
Andrew Bartlett
(This used to be commit a1f14d10fd)
2007-10-10 14:21:06 -05:00
Andrew Bartlett
e0294c9f66 r19310: Add another conflicting oid
Cope with there being no attributes to skip in the ad2oLscheam tool

Andrew Bartlett
(This used to be commit 942d7ad0c3)
2007-10-10 14:21:06 -05:00
Andrew Bartlett
d70fbdbefa r19258: Don't delete the contents of the partitions twice, and in particular
don't delete their contents until we have specified the new partition
locations.

However, preserve the important part of tridge's change, that is to
ensure that no database index is present when the mass delete occours.
In my testing, it is best to leave the index until the provision is
compleated.

Andrew Bartlett
(This used to be commit 962219df7d)
2007-10-10 14:20:58 -05:00
Andrew Tridgell
557ca55ed7 r19253: its not so useful to index on objectclass. Much better to search on
objectCategory

provision now takes 2.4 secs, down from 24s on my laptop
(This used to be commit 3d3144cc06)
2007-10-10 14:20:58 -05:00
Andrew Bartlett
7135bb9e63 r19216: Merge from SAMBA_4_0_RELEASE:
Move default for subobj.LDAPMODULES into scripting/libjs/provision.js
so that SWAT can provision again.

Andrew Bartlett
(This used to be commit a4aafe307d)
2007-10-10 14:20:54 -05:00
Andrew Bartlett
08478f8f92 r19115: Add the mapping required between Samba4's AD schema OIDs and what
Fedora DS can support.

Andrew Bartlett
(This used to be commit bdeb10de2e)
2007-10-10 14:20:36 -05:00
Andrew Bartlett
736e797983 r18979: With these extra indexes (also added for the normal case) and a
DB_CONFIG file, we now get reasonable enought performance to pass
'make test' against OpenLDAP.

We do have to double the maximum runtime for the torture client however.

Andrew Bartlett
(This used to be commit 5b3c8cc036)
2007-10-10 14:20:26 -05:00
Andrew Bartlett
df7ec4a31a r18933: Add helpful emacs marker
(This used to be commit 5fd53ea6a3)
2007-10-10 14:20:22 -05:00
Simo Sorce
6c48dc8612 r18440: "builtinDomain" is not a child of "domain"
(This used to be commit b34646f202)
2007-10-10 14:18:30 -05:00
Simo Sorce
b2355bf077 r18316: Build the parent too
(This used to be commit 1fcf725bc0)
2007-10-10 14:18:07 -05:00
Andrew Bartlett
ba1c80524a r17982: One final hack...
When against a real, schema-checking LDAP backend, we need
extensibleObject on the baseDN entry (as entryUUID isn't run for
creating this basic ldif) output.
(This used to be commit befac43f59)
2007-10-10 14:17:01 -05:00
Simo Sorce
6c68f1ae9e r17926: add trustedDomain class
(This used to be commit 43e95f4572)
2007-10-10 14:16:54 -05:00
Andrew Bartlett
2b99336a56 r17876: Require one less patch for the LDAP backend to work.
This lets the modules or backend generate the host and domain GUID,
rather than the randguid() function.  These can still be specified
from the command line.

Andrew Bartlett
(This used to be commit 32996ca9d6)
2007-10-10 14:16:50 -05:00
Simo Sorce
25ba47eaf8 r17839: do not reference possibleInferiors we have not extracted
trim duplicate may attributes
(This used to be commit 4975659fd7)
2007-10-10 14:16:47 -05:00
Andrew Bartlett
7783080810 r17705: Use the paged_searches module by default against the LDAP backend, if
selected.

Andrew Bartlett
(This used to be commit 3bb0a0d91e)
2007-10-10 14:16:28 -05:00
Andrew Bartlett
7fcafb7a9e r17682: Add newline to end of file
(This used to be commit 0e97b71386)
2007-10-10 14:16:23 -05:00
Simo Sorce
7cb4dcf146 r17662: some more enhancements to our schema extraction tool,
with a nasty hack in minschema.js that I really hate
(This used to be commit 74c40719f2)
2007-10-10 14:16:21 -05:00
Simo Sorce
3f229bd583 r17653: fix typo
(This used to be commit aca800bdcc)
2007-10-10 14:16:20 -05:00
Simo Sorce
d7799784af r17652: add oMSyntax to these attributes
(This used to be commit 425fda84e2)
2007-10-10 14:16:20 -05:00
Simo Sorce
cb4ebd8917 r17651: Commit the set of classess used to generate our schema
and update the schema with the latest additions
(This used to be commit 09a3272611)
2007-10-10 14:16:20 -05:00
Andrew Bartlett
49b335c756 r17600: Finish the schema conversion tool, and add a mapping file, used to map
OIDs and skip built-in attributes.

Andrew Bartlett
(This used to be commit cb2b9d800d)
2007-10-10 14:16:16 -05:00
Andrew Bartlett
0cc8a1780d r17528: This is an additional item of schema we require.
Where is the script we used to create this schema file in the first
place?

Andrew Bartlett
(This used to be commit dec2b6961a)
2007-10-10 14:15:33 -05:00
Andrew Bartlett
8f42f1292c r17526: Move timestamp generation into the objectGUID module. It probably
needs to be renamed (operation_add?).

This allows me to match the behaviour and substitute with the
entryUUID module for remote LDAP connections.

Andrew Bartlett
(This used to be commit af02b4d7c6)
2007-10-10 14:15:33 -05:00
Simo Sorce
71041a5007 r17504: Do not use the invented unixID but use the rfc2307 uidNumber and gidNumber attributes instead
Do not change unixName right now, we don't have an attribute to use in the posixGroup class,
and I think we should remove its usage altogether and look up users and groups by their uid/gid only.

Simo.
(This used to be commit d57b521aad)
2007-10-10 14:15:30 -05:00
Andrew Bartlett
6e4940cf79 r17499: Open the main database only the minimum times during a provision.
This causes things to operate as just one transaction (locally), and
to make a minimum of TCP connections when connecting to a remote LDAP
server.

Taking advantage of this, create another file to handle loading the
Samba4 specific schema extensions.  Also comment out 'middleName' and
reassign the OID to one in the Samba4 range, as it is 'stolen' from a
netscape range that is used in OpenLDAP and interenet standards for
'ref'.

Andrew Bartlett
(This used to be commit 009d090594)
2007-10-10 14:15:30 -05:00
Andrew Bartlett
05aa6b85ce r17377: This attribute is maintained by the modules, don't override it.
Andrew Bartlett
(This used to be commit d942a8b2b6)
2007-10-10 14:15:20 -05:00
Andrew Bartlett
cf7ccba67e r17352: Don't do a modify on the objectClasses, as OpenLDAP doesn't like
this.  Instead, handle this one in the add.

Andrew Bartlett
(This used to be commit ab355e1f5f)
2007-10-10 14:15:18 -05:00
Andrew Bartlett
bd8fd50982 r17351: Remove extra LDB partition we don't actually use (these are in the
main database, under cn=templates).

Andrew Bartlett
(This used to be commit b1d061d36a)
2007-10-10 14:15:18 -05:00
Andrew Bartlett
7b99b2048e r17330: Enable the partitions module.
This module redirects various samdb requests into different modules,
depending on the prefix.  It also makes moving to an LDAP backend
easier, as it is just a different partition backend.

This adds yet another stage to the provision process, as we must setup
the partitions before we setup the magic attributes.

Andrew Bartlett
(This used to be commit 31225b9cb6)
2007-10-10 14:15:15 -05:00
Simo Sorce
cb85a76d77 r17208: Add a away to test the ldb module.
Actually you can't test both classic and ldb together, but you can replace the standard
script/tests/mktestsetup.sh file with this one and run make test to see share_ldb in action
(This used to be commit d4c2b89350)
2007-10-10 14:10:19 -05:00
Andrew Bartlett
673cce7817 r16768: Add a simple script to set a user's password. This should grow into a
real smbpasswd command some day.

Andrew Bartlett
(This used to be commit 8d05827966)
2007-10-10 14:09:44 -05:00
Andrew Bartlett
f77c410084 r16264: Add, but do not yet enable, the partitions module.
This required changes to the rootDSE module, to allow registration of
partitions.  In doing so I renamed the 'register' operation to
'register_control' and 'register_partition', which changed a few more
modules.

Due to the behaviour of certain LDAP servers, we create the baseDN
entry in two parts: Firstly, we allow the admin to export a simple
LDIF file to add to their server.  Then we perform a modify to add the
remaining attributes.

To delete all users in partitions, we must now search and delete all
objects in the partition, rather than a simple search from the root.
Against LDAP, this might not delete all objects, so we allow this to
fail.

In testing, we found that the 'Domain Controllers' container was
misnamed, and should be 'CN=', rather than 'OU='.

To avoid the Templates being found in default searches, they have been
moved to CN=Templates from CN=Templates,${BASEDN}.

Andrew Bartlett
(This used to be commit b49a4fbb57)
2007-10-10 14:09:09 -05:00
Andrew Bartlett
5f44da36e7 r16166: Remove hexidecimal constants from the Samba4 provision files.
This change is required for compatibility with the OSX client, in
particular, but returning 0x80000002 rather than -2147483646 violates
what LDAP clients expect in general.

Andrew Bartlett
(This used to be commit 81f3cd1c45)
2007-10-10 14:09:03 -05:00
Andrew Bartlett
2ab5bafd72 r16082: Index objectCategory like objectClass, as it is searched on a lot.
Andrew Bartlett
(This used to be commit 954785db03)
2007-10-10 14:08:57 -05:00
Andrew Bartlett
b31c685ec2 r16028: Re-add the objectclass module, in the new async scheme.
Add a test to show that we need this, and to prove it works (for add
at least).

Andrew Bartlett
(This used to be commit f72079029a)
2007-10-10 14:08:51 -05:00
Simo Sorce
0c7b82e5f6 r15942: Remove the sync internal ldb calls altogether.
This means that some modules have been disabled as well as they
have not been ported to the async interface

One of them is the ugly objectclass module.
I hope that the change in samldb module will make the MMC happy
without the need of this crappy module, we need proper handling
in a decent schema module.

proxy and ldb_map have also been disabled
ldb_sqlite3 need to be ported as well (currenlty just broken).
(This used to be commit 51083de795)
2007-10-10 14:08:43 -05:00
Simo Sorce
8081e4f402 r15795: Try to use the async code by default
It passess all my tests, but I still need to work on a lot of stuff.
Shouldn't impact anybody else work, so I want to commit now and see what happens

Will work to remove the old code from modules and backends soon, and make some
more restyling in ldb internals.

So, if there is something you don't like in this desgin please speak now.

Simo.
(This used to be commit 8b2a563e71)
2007-10-10 14:08:21 -05:00
Andrew Tridgell
5196640c2c r15518: the 'password' option in POPT_COMMON_CREDENTIALS was conflicting with
the password option in newuser. Move the local options above the
global options to fix.
(This used to be commit 2adcd4ff4e)
2007-10-10 14:05:45 -05:00
Andrew Bartlett
ca7f7a4615 r14313: Add comments describing some of the dependencies here.
Andrew Bartlett
(This used to be commit a79a185b6a)
2007-10-10 13:57:11 -05:00
Andrew Bartlett
acd190d8f6 r14200: Now we have real USN support, don't force the values in the provision
scripts.

This tests the real module, and avoids duplication.

Andrew Bartlett
(This used to be commit 0859ba59ae)
2007-10-10 13:56:59 -05:00
Andrew Bartlett
87cfc4ea24 r13907: By ordering things this way, we allow the password_hash module to set
the pwdLastSet time on new users (with passwords) correctly.

Andrew Bartlett
(This used to be commit e1b346b8e0)
2007-10-10 13:52:22 -05:00
Simo Sorce
b56282dec7 r13369: let's have a way to show the samba4 version through ejs
and use it in provisioning to fullfill rfc 3045 requirements
(This used to be commit 3fb9571a76)
2007-10-10 13:51:50 -05:00
Andrew Bartlett
1d9ffbbe67 r13320: Fix kpasswd's use of the local HDB. /dev/null was a bad idea, we want
'no filename' instead.

Andrew Bartlett
(This used to be commit 7de385dca4)
2007-10-10 13:51:43 -05:00
Andrew Bartlett
c06911376c r13239: Silly little patch: make the order of declaration match the order of use.
(This used to be commit 2b605cf22c)
2007-10-10 13:51:36 -05:00
Andrew Bartlett
28d78c40ad r13107: Follow the lead of Heimdal's kpasswdd and use the HDB (hdb-ldb in our
case) as the keytab.

This avoids issues in replicated setups, as we will replicate the
kpasswd key correctly (including from windows, which is why I care at
the moment).

Andrew Bartlett
(This used to be commit 849500d1aa)
2007-10-10 13:51:26 -05:00
Andrew Tridgell
0fb2e148d1 r13097: move the creation of the default sam name -> unix name mappings into
the main provision logic, so it can also be used as part of the
vampire process
(This used to be commit 95e90169f4)
2007-10-10 13:51:24 -05:00
Jelmer Vernooij
c95cac9420 r13063: Add --realm option to upgrade
(This used to be commit e6aa4e92f0)
2007-10-10 13:51:20 -05:00
Andrew Bartlett
ba07f94438 r12945: Try to move closer to getting Samba3 import working again.
There still a few things to work out

Andrew Bartlett
(This used to be commit 701558b5fe)
2007-10-10 13:51:12 -05:00