1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00
Commit Graph

646 Commits

Author SHA1 Message Date
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
948ee9b7ac Get more information from ldb when reporting a failed replication.
Andrew Bartlett
2008-01-23 15:44:02 +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
e8081333b8 Fix segfaults in codepaths only tested by the NET-API-BECOME-DC test.
(I presume this has resulted from the global variable elimination)

Perhaps the iconv handle argument to ndr_push_struct needs to be
marked as 'not NULL' or similar?

Andrew Bartlett
2008-01-23 15:34:44 +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
Andrew Bartlett
a0cf47c335 r26697: Leak less memory into the ldb context.
(Trying to chase down memory leaks in provision)

Andrew Bartlett
2008-01-08 23:42:02 -06:00
Andrew Bartlett
b4a95a8985 r26679: It is very bad to free the ldb handle when you didn't create it...
(My bad when copying this code into samdb_is_gc()).

Andrew Bartlett
2008-01-06 18:51:02 -06:00
Jelmer Vernooij
18cd08623e r26672: Janitorial: Remove uses of global_loadparm. 2008-01-05 13:06:03 -06:00
Jelmer Vernooij
8a97886e24 r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct. 2008-01-03 12:33:36 -06:00
Andrew Bartlett
592c10ae11 r26648: Move detection of global catalog captability to a central function, so
this can be shared with the CLDAP server (for the netlogon reply).

Andrew Bartlett
2008-01-03 12:33:35 -06: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
Kai Blin
41a1f59850 r26528: dsdb: Fix a warning. 2007-12-21 05:51:51 +01:00
Jelmer Vernooij
174aa15837 r26521: Fix newlines. 2007-12-21 05:51:40 +01:00
Jelmer Vernooij
10d0631c95 r26508: Tighter dependencies in an attempt to fix missing symbol errors on sun9. 2007-12-21 05:51:13 +01:00
Jelmer Vernooij
84d2f784bf r26493: Fix includes for dsdb/common. 2007-12-21 05:50:48 +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
Jelmer Vernooij
d37136b7ab r26429: Avoid use of global_smb_iconv_convenience. 2007-12-21 05:49:56 +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
Andrew Bartlett
a8b0f5af9a r26412: Add comments and refactor to reuse common code.
Andrew Bartlett
2007-12-21 05:49:43 +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
eeb2251d22 r26327: Explicit loadparm_context for RPC client functions. 2007-12-21 05:48:41 +01:00
Andrew Bartlett
8089283784 r26324: Fix includes for Jelmer.
Andrew Bartlett
2007-12-21 05:48:35 +01:00
Jelmer Vernooij
95a6ef7fc8 r26319: Split encoding functions out of libcli_ldap. 2007-12-21 05:48:33 +01:00