1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-30 08:23:49 +03:00
Commit Graph

424 Commits

Author SHA1 Message Date
Andrew Bartlett
7c80cd18d5 Correctly normalise records against OpenLDAP.
Fixing this simple typo allows more of the ldap.js test to pass.

Andrew Bartlett
2008-03-13 14:12:18 +11:00
Andrew Bartlett
bda6a38b05 Rework to have member server 'domains' be CN=NETBIOSNAME
This reworks quite a few parts of our provision system to use
CN=NETBIOSNAME as the domain for member servers.

This makes it clear that these domains are not in the DNS structure,
while complying with our own schema (found by OpenLDAP's schema
validation).

Andrew Bartlett
2008-03-13 11:36:58 +11:00
Andrew Bartlett
5a92771fb5 Don't segfault on invalid objectClass input.
If the objectClass found does not include a defaultSecurityDescriptor,
then we should not segfault in the SDDL parser.

Andrew Bartlett
2008-03-13 10:27:09 +11:00
Andrew Bartlett
1169e8d7be Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).
To make Samba4, using the python provision system, pass this test
required some major rework.  Untested code is broken code, and some of
the refactoring for a seperate provision test (which also now passes)
broke things.

Similarly, the iconv work has compiled, but these codepaths have never
been run (NULL pointer de-reference).

In working to use a local, rather than global, loadparm context, and
to support using a target directory, a few things needed to be
reworked, particularly around path handling.

Andrew Bartlett
2008-03-06 21:55:26 +11:00
Andrew Bartlett
cdff1b0802 The DN in objectCategory should, if possible, be returned pretty...
This avoids going via the canonicalise_fn(), which will upper case the DN

Andrew Bartlett
2008-03-04 13:40:50 +11:00
Andrew Bartlett
447d5a7954 Users and computers now share the same template.
Slowly work away at the samldb module again, it is clear that AD does
not use much of a templating system.  samAccountType is managed, as
far as I can tell, when groupType or userAccountControl changes.

Andrew Bartlett
2008-02-28 08:43:10 +11:00
Jelmer Vernooij
ce332130ea Fix use of some modules (needed _PUBLIC_). 2008-02-20 04:33:43 +01:00
Jelmer Vernooij
85c96a3258 Use struct-based rather than function-based initialization for ldb modules everywhere. 2008-02-20 01:54:32 +01:00
Andrew Bartlett
69af290c91 Explain that these OIDs are DNs
Andrew Bartlett
2008-02-19 09:36:56 +11:00
Andrew Bartlett
57b4b43b65 Reset error strings
Avoid leaking error strings up to the application, when we are ignoring them.
2008-02-08 17:09:49 +11:00
Jelmer Vernooij
1163c2ad54 ldb: Add ldb_oom() calls in a couple of places. 2008-01-26 23:49:33 +01:00
Stefan Metzmacher
ba495f9d19 repl_meta_data: add some TODOs to replmd_modify_originating()
metze
2008-01-25 08:08:50 +01:00
Andrew Bartlett
e8fb5da5a1 Use the repl_meta_data module by default.
This means that, except when we back onto LDAP, when it will be
replaced with the mapping backend, we will keep this codepath tested.

Andrew Bartlett
2008-01-24 14:28:25 +11:00
Andrew Bartlett
7b87a58502 Fix DRSUAPI replication test - NET-API-BECOME-DC.
The main change here is to work with the current module stack,
replacing only the objectGUID module, rather than a number of modules.

However, two changes were key:
 - Fixing a typo search_req->handle -> change_req->handle
 - Allowing an error of NO_SUCH_OBJECT - it is quite valid
   for the object not to exist when being replicated in.

Other small changes were required to the ejs provision to match
changes in that code.

Andrew Bartlett
2008-01-23 15:43:14 +11:00
Andrew Bartlett
669f137f0e ranged_results: fix use of uninitialised variable (end)
This matches the range parsing in the search and callback - end was
uninitilaised, causing occasional failures in make test.

Andrew Bartlett
2008-01-23 08:57:16 +11:00
Andrew Bartlett
45f6ccefda Only set showOnlyInAdvancedView: TRUE when adding default values.
False is the default, so only set this when the schema requires the
hiding behaviour.

Andrew Bartlett
2008-01-18 18:08:49 +11:00
Andrew Bartlett
51422414be Merge commit 'origin/v4-0-test' into 4-0-local 2008-01-18 17:05:17 +11:00
Andrew Bartlett
673f180500 Add showInAdvancedViewOnly to every new object
Unless already set, the default value for this comes from the
defaultHidingValue in the schema.

Andrew Bartlett
2008-01-18 16:56:41 +11:00
Andrew Bartlett
35148fd51f Search for memberOf when clients ask for a wildcard against OpenLDAP
The memberOf module in OpenLDAP make this attribute operational, so we
need to add it here or clients won't get it when using *.

Andrew Bartlett
2008-01-18 13:27:05 +11:00
Andrew Bartlett
d427cf4fa6 Correct authorship of instanceType module
Andrew Bartlett
2008-01-18 12:16:27 +11:00
Andrew Bartlett
2a418f3370 Add in a new module to handle instanceType
This code raided from the repl_meta_data module, which probably needs
to be downsized to just handling the replication data.

Andrew Bartlett
2008-01-18 10:13:43 +11:00
Andrew Bartlett
ee93b4e2ee ldb_map objectClass munging: Don't hard-code 'extensibleObject'.
This allows objectClass munging to be removed, or modified to not
include adding an objectClass, or for that objectClass to be something
different.

Andrew Bartlett
2008-01-17 08:53:18 +11:00
Andrew Bartlett
8c88e4eb1c Rework linked_attributes module for the REPLACE case.
This moves to a smarter 'find the delta' based operation of the linked
attributes module, when the caller asks for a 'replace' of the link
source.  Previously we would spray operations all over the database,
even if the net result was just to modify one record.

This also means we need the transaction safety less, which may be
useful for some LDAP backends that don't provide this functionality on
the LDAP server.

Andrew Bartlett
2008-01-16 15:14:05 +11:00
Andrew Bartlett
fc57a119f5 Rework control handling to remove the 'domain_scope' control
Also remove the search_options control earlier, before, rather than
after duplicating the request.

When we generate referalls in the partition module, the domain_scope
control with suppress them.

Andrew Bartlett
2008-01-16 08:49:54 +11:00
Andrew Bartlett
47a1b76f7f Remove 'dn' from mapping, it isn't a valid attribute in AD, and causes
problems with ldap.js test with OpenLDAP as the backend.

Likewise, remove it from the template lookup (for consistancy).

TODO:  see if it can be removed from ldb

Andrew Bartlett
2008-01-11 15:19:27 +11:00
Andrew Bartlett
e3a76be047 Add in new module to normalise DNs being returned from OpenLDAP. This
fixes the case of the attribute in teh DN.

Fix option spelling for example re-provision

Andrew Bartlett
2008-01-11 10:44:49 +11:00
Jelmer Vernooij
7d14b657b3 r26642: samba3sam.py: Remove more EJS-specific code. 2008-01-01 19:57:02 -06:00
Jelmer Vernooij
c863f4ebde r26640: Janitorial: Remove some more uses of global_loadparm. 2008-01-01 19:57:01 -06:00
Jelmer Vernooij
2f29f80e07 r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange. 2008-01-01 16:12:15 -06:00
Jelmer Vernooij
61ad78ac98 r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob(). 2008-01-01 16:12:11 -06:00
Jelmer Vernooij
84f1e82d8f r26637: More work converting to Python. 2008-01-01 16:12:05 -06:00
Jelmer Vernooij
4be1161337 r26630: Split up big tests into various smaller functions, making it easier to debug. 2007-12-30 10:51:06 -06:00
Andrew Bartlett
66cb9601e7 r26612: Tests show that we don't need to use a callback.
Andrew Bartlett
2007-12-27 01:51:04 -06:00
Jelmer Vernooij
d649f73431 r26598: Simplify the way Python tests are run. 2007-12-26 11:57:08 -06:00
Jelmer Vernooij
150cf39fbd r26593: - More work on the python versions of samba3dump and the samba3sam tests.
- Initial work converting the upgrade code to Python.
- Removed the old EJS upgrade code because it has been broken for a long time.
2007-12-26 11:57:07 -06:00
Jelmer Vernooij
874f0ac056 r26573: Fix warnings. 2007-12-24 01:51:04 -06:00
Jelmer Vernooij
c550c03372 r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.
2007-12-24 01:51:03 -06:00
Jelmer Vernooij
6ac86f8be7 r26540: Revert my previous commit after concerns raised by Andrew. 2007-12-21 05:52:06 +01:00
Jelmer Vernooij
e53e79eebe r26539: Remove unnecessary statics. 2007-12-21 05:52:05 +01:00
Jelmer Vernooij
174aa15837 r26521: Fix newlines. 2007-12-21 05:51:40 +01:00
Andrew Bartlett
91bcb60d31 r26488: Implement tests for the ranged_results module.
Untested code is broken code, so rework the module until it passes...

It turns out that AD puts search attributes onto the wire in the
reverse order to what Samba does.  This complicates exact value
matching, so this is skipped for now.

Andrew Bartlett
2007-12-21 05:50:45 +01:00
Andrew Bartlett
2277f2d887 r26485: Fix indent, remove left-over debug.
Andrew Bartlett
2007-12-21 05:50:42 +01:00
Jelmer Vernooij
85eeecf997 r26483: Merge ldb module dependency fixes, fix auth python module. 2007-12-21 05:50:41 +01:00
Jelmer Vernooij
1b947fe0e6 r26430: require explicit specification of loadparm context. 2007-12-21 05:49:58 +01:00
Andrew Bartlett
044b509472 r26419: Add a module to implement 'ambigious name resolution' by munging the
incoming LDAP filter.

Warning: Any anr search will perform a full index search.  Untill ldb
gets substring indexes, this is unavoidable.

Also implement a testsutie to show we match AD behaviour for this
important extension (used in the Active Directory Users and Computers
MMC plugin, as a genereral 'find').

This will also be useful to OpenChange, as their server needs to
implement this.

Andrew Bartlett
2007-12-21 05:49:48 +01:00
Jelmer Vernooij
3616ced29e r26360: Add some const. 2007-12-21 05:49:03 +01:00
Jelmer Vernooij
ddf233346d r26329: Fix more loadparm_context references. Only about a 100 left now. 2007-12-21 05:48:42 +01:00
Jelmer Vernooij
95a6ef7fc8 r26319: Split encoding functions out of libcli_ldap. 2007-12-21 05:48:33 +01:00
Andrew Bartlett
47422b5e59 r26297: Correct error message. This function verifies attributes, not
objectclasses.

Andrew Bartlett
2007-12-21 05:48:14 +01:00
Andrew Bartlett
1dc771f903 r26284: Rather than just debug, push the error back up the stack as the error
string, if we fail to load the schema.

Andrew Bartlett
2007-12-21 05:48:08 +01:00