Jelmer Vernooij [Sat, 26 Jan 2008 03:22:42 +0000 (04:22 +0100)]
python: Use relative paths for registry.
(This used to be commit
079200b824de6dd8c7de3e5b76ed1805fde02965)
Jelmer Vernooij [Sat, 26 Jan 2008 01:55:03 +0000 (02:55 +0100)]
python: Load smb.conf file for the provision tests.
(This used to be commit
41571bbb933c763a9608f4ba56f1a5a97af133ab)
Günther Deschner [Fri, 25 Jan 2008 21:42:14 +0000 (22:42 +0100)]
Fix netlogon rpc-server build.
Guenther
(This used to be commit
7a10be2ac77124a78fcc4ddda5e05c036ed920fa)
Günther Deschner [Fri, 25 Jan 2008 16:43:15 +0000 (17:43 +0100)]
Add IDL for netr_DsrDeregisterDNSHostRecords (just for completion).
Guenther
(This used to be commit
722b4dfdc4821ecf349f87f57146f3b52e719b3d)
Stefan Metzmacher [Fri, 25 Jan 2008 14:45:18 +0000 (15:45 +0100)]
NET-BECOME-DC: always try to build ejs and python code
We let getenv("PROVISION_PYTHON") decide what we want
at runtime.
metze
(This used to be commit
acb5661f61ad62c02b5ec83d0f1f0c969f356c9f)
Stefan Metzmacher [Fri, 25 Jan 2008 14:41:51 +0000 (15:41 +0100)]
torture: the libnet torture test depend on python
metze
(This used to be commit
d64a2288a2cb3a8f74a18b740b265a460773635d)
Stefan Metzmacher [Fri, 25 Jan 2008 14:40:55 +0000 (15:40 +0100)]
configure: define HAVE_WORKING_PYTHON
metze
(This used to be commit
351c2e99ab8b6a91f7355077b2d2944fd820839c)
Andrew Tridgell [Fri, 25 Jan 2008 12:16:34 +0000 (23:16 +1100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit
1e042908992cdf3149ffc24472c7f0b1c3f9edef)
Jelmer Vernooij [Fri, 25 Jan 2008 11:16:13 +0000 (12:16 +0100)]
python: Give precedence to Samba's syspath over the already set system one.
(This used to be commit
f3ebaf0a0c0b881da28063c69bb6306f6aa1c774)
Jelmer Vernooij [Fri, 25 Jan 2008 10:50:00 +0000 (11:50 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
Conflicts:
source/scripting/python/samba/provision.py
(This used to be commit
64babbec22f165e34799d36ff4b76806d9fead50)
Jelmer Vernooij [Fri, 25 Jan 2008 10:47:44 +0000 (11:47 +0100)]
python/provision: Reload secrets when necessary, fix unix names in mappings.
Pair programmed with Andrew.
(This used to be commit
04fe8c8aefae8da8966954d0654c37adf2d0361d)
Stefan Metzmacher [Fri, 25 Jan 2008 09:07:43 +0000 (10:07 +0100)]
pidl/Samba4::Header: fix typedefs of unions and structs without elements
metze
(This used to be commit
3131847cb67dadd8ee6fcbca5055927b8ba8a219)
Stefan Metzmacher [Fri, 25 Jan 2008 07:42:30 +0000 (08:42 +0100)]
configure.ac: we should use AC_CONFIG_FILES() in order to use AC_OUTPUT only once
metze
(This used to be commit
bcaba3cb725e1cbbe164132179a0849c7b546a73)
Stefan Metzmacher [Fri, 25 Jan 2008 07:40:03 +0000 (08:40 +0100)]
configure.ac: we should only create ldb.pc when use the internal ldb
metze
(This used to be commit
2c75bd5009020171e31b56ab3d8d6a86f19f3b49)
Stefan Metzmacher [Fri, 25 Jan 2008 07:08:33 +0000 (08:08 +0100)]
repl_meta_data: add some TODOs to replmd_modify_originating()
metze
(This used to be commit
ba495f9d19e7c7cfc9135a5d40e1050dd8f9ebc6)
Andrew Tridgell [Fri, 25 Jan 2008 06:27:36 +0000 (17:27 +1100)]
added latency reporting
(This used to be commit
f0ffbb8e19c1085bf54d226f62c667868e14f62e)
Andrew Tridgell [Fri, 25 Jan 2008 06:27:17 +0000 (17:27 +1100)]
this is in seconds
(This used to be commit
019dd9a3d7d9af8ab71a10802c728f5ab5cf781d)
Andrew Bartlett [Fri, 25 Jan 2008 06:11:20 +0000 (17:11 +1100)]
Tidy up the last regresesions on the python smbscript, from my work
with Jelmer today.
The only remaining issue is that for the build farm, we will need to
manually specify the users and groups from the NSS_WRAPPPER, as python
isn't compiled with this.
Andrew Bartlett
(This used to be commit
5370484d25b8c7a5bde730d9be36ecbbb0aaf315)
Andrew Tridgell [Fri, 25 Jan 2008 04:00:45 +0000 (15:00 +1100)]
more useful output
(This used to be commit
033cab6546d943089eefc298b335db03c1d0ebb6)
Andrew Tridgell [Fri, 25 Jan 2008 04:00:11 +0000 (15:00 +1100)]
added a offline file torture test BASE-OFFLINE
(This used to be commit
d4b26fb2a38aa5b0ed2b6083641b9d8306af8c58)
Jelmer Vernooij [Fri, 25 Jan 2008 02:54:33 +0000 (03:54 +0100)]
python: Fix representation of UUIDs as strings in zone files rather than binary blobs, fix escaping of LDAP URL's in PHP LDAP admin configuration.
Pair-programmed with Andrew, but git doesn't appear to support multiple --author arguments. :-(
(This used to be commit
dff54ff043563f93b86361039c46e662045f62cc)
Jelmer Vernooij [Fri, 25 Jan 2008 02:46:47 +0000 (03:46 +0100)]
ldb/python: Add bindings for schema functions.
(This used to be commit
9f6ea4692ca79c607538871c597698b98abf13d0)
Jelmer Vernooij [Fri, 25 Jan 2008 00:41:06 +0000 (01:41 +0100)]
python/provision: Create private dir if it didn't exist yet.
(This used to be commit
66df250ff355d3c1b7f0252fc1f95a8c79a28c6d)
Jelmer Vernooij [Fri, 25 Jan 2008 00:37:47 +0000 (01:37 +0100)]
python: Add test for secretsdb_become_dc
(This used to be commit
9173c678efb6f74dbec64298bcb00952feff2ed7)
Jelmer Vernooij [Fri, 25 Jan 2008 00:30:43 +0000 (01:30 +0100)]
python: fix tests for check_all_substituted.
(This used to be commit
859cffed9d3a62f9f7610d74472aa3c0d1979a35)
Jelmer Vernooij [Fri, 25 Jan 2008 00:03:13 +0000 (01:03 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit
d35d4f983d1eb7450cd9f92a5217c14ec073396f)
Jelmer Vernooij [Fri, 25 Jan 2008 00:02:13 +0000 (01:02 +0100)]
python/provision: Reconcile code partitions-only provisioning and generic provisioning, some other minor refactoring of the provisioning.
Pair-programmed by Andrew and me using obby :-)
(This used to be commit
688adcbb635af87fcfedb869b7f1857a947fd2f9)
Jelmer Vernooij [Thu, 24 Jan 2008 23:51:09 +0000 (00:51 +0100)]
python: Make SamDB.set_ntds_invocation_id take a string.
(This used to be commit
59bb26772f089cf4d8727c12230cfef8126762b1)
Günther Deschner [Thu, 24 Jan 2008 23:04:24 +0000 (00:04 +0100)]
Fix netlogon rpc-server build.
Guenther
(This used to be commit
31980e03faedaa44317f64d940c458d38a103627)
Günther Deschner [Thu, 24 Jan 2008 22:35:02 +0000 (23:35 +0100)]
Add IDL for netr_LogonGetTrustRid.
Guenther
(This used to be commit
d0893014ab02f4a628bc05135e7afedd11427116)
Günther Deschner [Thu, 24 Jan 2008 22:52:16 +0000 (23:52 +0100)]
Rename samr_*AccessMask bitfields to start with SAMR_.
Guenther
(This used to be commit
70773be51a568dfc793111044cef93baa343d715)
Günther Deschner [Thu, 24 Jan 2008 22:55:40 +0000 (23:55 +0100)]
Revert "Add pidl --samba3-libnetapi option."
This reverts commit
fe299e0336fcff780ef69a6b4f56cd1e0d0c50a8.
(This used to be commit
e22f042c6f3d535644e5a21f4175a10e5d74359f)
Jelmer Vernooij [Thu, 24 Jan 2008 21:18:27 +0000 (22:18 +0100)]
python: Add function to look for unsubsituted variables.
(This used to be commit
e726ce5bc515ae8d10b472396e228cfd35737476)
Jelmer Vernooij [Thu, 24 Jan 2008 21:08:39 +0000 (22:08 +0100)]
python: Add bindings for SamDB.set_invocation_id().
(This used to be commit
c09efa7b778f9cb29032a6abfd914fcaae8df163)
Jelmer Vernooij [Thu, 24 Jan 2008 21:00:07 +0000 (22:00 +0100)]
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit
d4d4120b715dc37b708b1c6074eab4f5c23d6b8f)
Günther Deschner [Thu, 24 Jan 2008 16:43:38 +0000 (17:43 +0100)]
Add pidl --samba3-libnetapi option.
Guenther
(This used to be commit
fe299e0336fcff780ef69a6b4f56cd1e0d0c50a8)
Stefan Metzmacher [Thu, 24 Jan 2008 14:04:58 +0000 (15:04 +0100)]
pidl: get rid of stupid ';' char to terminate bitmap defines
metze
(This used to be commit
dd77fc45eee2dde7bdd31a2e39387e94cec158aa)
Stefan Metzmacher [Thu, 24 Jan 2008 13:57:30 +0000 (14:57 +0100)]
pidl/Samba4::Header: we don't need to check if (defined($enum->{ELEMENTS})) twice
metze
(This used to be commit
c1ac13ee12d6d7e41b3700f207c9a8811bb05cd4)
Stefan Metzmacher [Thu, 24 Jan 2008 12:52:47 +0000 (13:52 +0100)]
netlogon.idl: add some MSV1_0_ values from samba3 and use a bitmap32
metze
(This used to be commit
7222edb9cde5cdeb9d065e890775a7254b26648f)
Stefan Metzmacher [Thu, 24 Jan 2008 09:24:41 +0000 (10:24 +0100)]
netlogon.idl: make use of bitmap samr_GroupAttrs
metze
(This used to be commit
6d68161e676d381600c77c3f862bd7e013968724)
Stefan Metzmacher [Thu, 24 Jan 2008 09:22:45 +0000 (10:22 +0100)]
netlogon.idl: remove unused netr_GroupsMembership structure
We have samr_RidWithAttribute and use that in all cases.
metze
(This used to be commit
3c5bae2249d01213ff4bd7df2b4e3ac04da4a52d)
Andrew Bartlett [Thu, 24 Jan 2008 05:25:35 +0000 (16:25 +1100)]
Ensure we set subobj.BACKEND_MOD for the 'partitions only' case.
Andrew Bartlett
(This used to be commit
be5eb2da241452ccc0526f4f115aa44c0793c351)
Andrew Bartlett [Thu, 24 Jan 2008 05:17:45 +0000 (16:17 +1100)]
Make the repl_meta_data module the default for domain controllers.
Andrew Bartlett
(This used to be commit
ae2ea1bd0cd2b326b09b372428969f2cf52ce519)
Andrew Bartlett [Thu, 24 Jan 2008 03:28:25 +0000 (14:28 +1100)]
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
(This used to be commit
e8fb5da5a18c1c3bd788b1ab3f814ffb847b00fd)
Andrew Bartlett [Thu, 24 Jan 2008 00:33:37 +0000 (11:33 +1100)]
Kill another sub that the modules will handle for us.
(This used to be commit
e9bb130d63e86fafc4cbf379e2e237354b88bcf8)
Andrew Bartlett [Thu, 24 Jan 2008 00:26:21 +0000 (11:26 +1100)]
Remove useless subs from the ejs provision
The less things we manually place into the templates, the easier the
conversion to python will be.
Andrew Bartlett
(This used to be commit
f65e5c164476b80468aa19452b108db17c642f8b)
Jelmer Vernooij [Thu, 24 Jan 2008 00:06:19 +0000 (01:06 +0100)]
Python: add some docstrings.
(This used to be commit
1de69a772e1cc007220add1f51bffe83784c3344)
Jelmer Vernooij [Thu, 24 Jan 2008 00:05:57 +0000 (01:05 +0100)]
python: Support --no-pass.
(This used to be commit
a90f3e8c420bec7fd7a39e0d5e2df6b32aedcdd5)
Jelmer Vernooij [Thu, 24 Jan 2008 00:05:19 +0000 (01:05 +0100)]
python: Add bindings for cli_credentials_set_cmdline_callbacks().
(This used to be commit
557207f86ba901262e76704df5c51888b2737ddf)
Jelmer Vernooij [Wed, 23 Jan 2008 22:38:21 +0000 (23:38 +0100)]
Default to creating anonymous credentials.
(This used to be commit
f93bd899f1402a9d89f55d5dca67318a60f5a72b)
Jelmer Vernooij [Wed, 23 Jan 2008 22:33:36 +0000 (23:33 +0100)]
python: Add convenience function for getting command line loadparm context
and default to using system smb.conf.
(This used to be commit
b3afde0f00ab5093b577b139a062c233d4db2524)
Jelmer Vernooij [Wed, 23 Jan 2008 22:15:39 +0000 (23:15 +0100)]
Add bindings for lp_load_default().
(This used to be commit
ffd793bbde636366855462f980f1f7d0e25afaab)
Andrew Bartlett [Wed, 23 Jan 2008 04:44:02 +0000 (15:44 +1100)]
Get more information from ldb when reporting a failed replication.
Andrew Bartlett
(This used to be commit
948ee9b7acd90b994bb9d9f7c1813a8eca430e4f)
Andrew Bartlett [Wed, 23 Jan 2008 04:43:14 +0000 (15:43 +1100)]
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
(This used to be commit
7b87a58502a052de391f4e1c56ac78a8d35b4e34)
Andrew Bartlett [Wed, 23 Jan 2008 04:34:44 +0000 (15:34 +1100)]
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
(This used to be commit
e8081333b8d43d96974c9e06a26aaa25dd34da56)
Andrew Bartlett [Wed, 23 Jan 2008 04:09:55 +0000 (15:09 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit
f82eec69f1846aa46e4afe595d956cfd2256c335)
Andrew Tridgell [Wed, 23 Jan 2008 02:09:37 +0000 (13:09 +1100)]
Added PFIF notice to Samba 4.0 tree
(This used to be commit
df2664ac94efbc2eee4d8a24a793e5f1e77b2d88)
Andrew Bartlett [Tue, 22 Jan 2008 22:00:00 +0000 (09:00 +1100)]
Make ranged results tests in ldap.js easier to debug.
This adds some extra information to the failure message, to chase down
which test is failing.
Andrew Bartlett
(This used to be commit
281bc76d3d7605f18ee914cf01dbf09062f5a5f0)
Andrew Bartlett [Tue, 22 Jan 2008 21:57:16 +0000 (08:57 +1100)]
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
(This used to be commit
669f137f0ecad10248a51b337c8f115d14d55b05)
Jelmer Vernooij [Tue, 22 Jan 2008 17:49:51 +0000 (18:49 +0100)]
build: Remove support for DESCRIPTION setting that is now unused.
(This used to be commit
91d7ba5202e6c375456a42c2c6861f63c7fcfc20)
Jelmer Vernooij [Tue, 22 Jan 2008 17:47:18 +0000 (18:47 +0100)]
build: remove support for automatically building .pc files.
(This used to be commit
e9f99732677f46d599c270cfcb5042c11d34d338)
Jelmer Vernooij [Tue, 22 Jan 2008 17:43:07 +0000 (18:43 +0100)]
dcerpc_samr: Use manually written .pc file.
(This used to be commit
4b83dc06471818089790c42157b972964d8d02e2)
Jelmer Vernooij [Tue, 22 Jan 2008 17:41:30 +0000 (18:41 +0100)]
param: Use manually written .pc file.
(This used to be commit
c0165aab47b4948b8767517b7795c6ec28fb6b6b)
Jelmer Vernooij [Tue, 22 Jan 2008 17:39:54 +0000 (18:39 +0100)]
gensec: Use manually written .pc file.
(This used to be commit
96a5ac9db2399019518e134a00c564ec1066f536)
Jelmer Vernooij [Tue, 22 Jan 2008 17:38:14 +0000 (18:38 +0100)]
torture: Use manually written .pc file.
(This used to be commit
d43b18cc5e8b58ca965205cccfe25f8a120d2ca7)
Jelmer Vernooij [Tue, 22 Jan 2008 17:36:14 +0000 (18:36 +0100)]
dcerpc: Use manually written .pc files for dcerpc and ndr.
(This used to be commit
676fd18fa2914b7b5530014a944a11ea1d6f631d)
Jelmer Vernooij [Tue, 22 Jan 2008 17:28:51 +0000 (18:28 +0100)]
registry: Use manually written .pc file.
(This used to be commit
5c64d4adaf50215ec2645f76e6c0335572147614)
Jelmer Vernooij [Tue, 22 Jan 2008 17:24:00 +0000 (18:24 +0100)]
ldb/talloc/tdb: Use manually written pc file.
(This used to be commit
c8947fda23eb874a7694bdee1b4de605744c2769)
Jelmer Vernooij [Tue, 22 Jan 2008 17:21:48 +0000 (18:21 +0100)]
build: Allow manually written pkg-config files.
(This used to be commit
8104907c5222ee72d78272ab81583d25c3132d0d)
Jelmer Vernooij [Tue, 22 Jan 2008 17:14:12 +0000 (18:14 +0100)]
tdb: Add URL in pc file.
(This used to be commit
2fc26c09026a0f2f74e5c7c86002e662b559d265)
Jelmer Vernooij [Tue, 22 Jan 2008 16:34:44 +0000 (17:34 +0100)]
ldb: Fix typo.
(This used to be commit
da0952bdd6196b23200063cadd866b1d5551a65c)
Jelmer Vernooij [Tue, 22 Jan 2008 16:13:39 +0000 (17:13 +0100)]
ldb: Increase version number to make it easier to create new Debian snapshots.
(This used to be commit
9a5cc88b090125b45e61da1ea1c9ac52f5ff6ab2)
Jelmer Vernooij [Tue, 22 Jan 2008 15:21:54 +0000 (16:21 +0100)]
python: Avoid duplicate copies of some objects in different packages.
(This used to be commit
bd293cde1b1deadcfb0f74c82aae6ba4de39925b)
Stefan Metzmacher [Tue, 22 Jan 2008 11:21:55 +0000 (12:21 +0100)]
libreplace: getpwent_r/getgrent_r on IRIX are similar to solaris but use size_t
metze
(cherry picked from commit
2f460915111066d79f5dc9b4ae4d003918d06852)
(This used to be commit
d2ac8be28d3aff59eddbdc6189a255a34c10d502)
Andrew Bartlett [Mon, 21 Jan 2008 11:01:32 +0000 (22:01 +1100)]
Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit
b99b604a5f8b7eb98a6285145188c0b94946df78)
Andrew Bartlett [Mon, 21 Jan 2008 09:56:27 +0000 (20:56 +1100)]
Be sure to pass iconv handle down to compression subcontexts (fixes
segfaults in NET-API-BECOME-DC)
Andrew Bartlett
(This used to be commit
70c1e918e6bd01946425e2d89cb680f14152f9fc)
Jelmer Vernooij [Sun, 20 Jan 2008 23:50:04 +0000 (00:50 +0100)]
build: Don't build heimdal as library.
(This used to be commit
c04cf0c0520ae35ebe173d733d5dc8ffa5bf4ed9)
Jelmer Vernooij [Sun, 20 Jan 2008 17:04:19 +0000 (18:04 +0100)]
python: Fix init functions.
(This used to be commit
4b057b9bffcef9ecc61fe016746f5ce6f17f6d06)
Jelmer Vernooij [Sun, 20 Jan 2008 15:28:43 +0000 (16:28 +0100)]
build: Demote a bunch of libraries to subsystems. This makes packaging easier and should also make it easier
to migrate to a new build system.
(This used to be commit
77b400764e3dadfa05407343af649ad9298cc085)
Jelmer Vernooij [Sun, 20 Jan 2008 15:24:11 +0000 (16:24 +0100)]
python: Reenable modules for libcli_nbt and libcli_smb.
(This used to be commit
4fa8a2789c7a2fa912645f08ca5a3be891d173dd)
Jelmer Vernooij [Sun, 20 Jan 2008 15:10:43 +0000 (16:10 +0100)]
ldb: Fix building python modules against system-provided ldb.
(This used to be commit
583ea85ae04c0bc2e70ab2e595e05f76f65c3be1)
Jelmer Vernooij [Sun, 20 Jan 2008 15:10:14 +0000 (16:10 +0100)]
build: Allow overriding CFLAGS for python packages.
(This used to be commit
2c2b16b5aeef83a3adce1859e1fbfd9c4f6ffdd5)
Volker Lendecke [Sun, 20 Jan 2008 14:51:02 +0000 (15:51 +0100)]
Add an exception for S3
Doing this correctly would involve a create_file call for qpathinfo
(This used to be commit
da9a5b571ea87b2e08c74463d3fae58a9eb0828a)
Jelmer Vernooij [Sun, 20 Jan 2008 00:19:59 +0000 (01:19 +0100)]
build: Fix handling of external pkg-config dependencies when generating pkg-config files.
(This used to be commit
88f9e11286bf0f12fc766dbf21f311e5373f0811)
Jelmer Vernooij [Sat, 19 Jan 2008 20:16:56 +0000 (21:16 +0100)]
howto: Update instructions for git, and use ReST formatting.
(This used to be commit
8deaaa52d305e799d04fc879c25ccbf82f01287e)
Julien Kerihuel [Fri, 18 Jan 2008 17:30:00 +0000 (18:30 +0100)]
pidl: Add --version argument.
(This used to be commit
ed1e58e8b35bc971451f4e0a357daa903cd7820d)
Andrew Bartlett [Fri, 18 Jan 2008 07:10:18 +0000 (18:10 +1100)]
Remove default 'showInAdvancedViewOnly' values.
This means we only show and set the values when they are not the
values the schema and objectclass module would impose.
Andrew Bartlett
(This used to be commit
c2f2e01357c1b087aa1261fb2cac8687426d5a78)
Andrew Bartlett [Fri, 18 Jan 2008 07:08:49 +0000 (18:08 +1100)]
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
(This used to be commit
45f6ccefda39e8f0a9820ba55b1924b7cfb12262)
Andrew Bartlett [Fri, 18 Jan 2008 06:08:34 +0000 (17:08 +1100)]
Don't set 'name' in the LDIF, this is handled by the rdn_name module.
Andrew Bartlett
(This used to be commit
e9003feb1b9eb3d5b82e82910b63306e5ecc2908)
Andrew Bartlett [Fri, 18 Jan 2008 06:05:17 +0000 (17:05 +1100)]
Merge commit 'origin/v4-0-test' into 4-0-local
(This used to be commit
51422414bed28f425197519298c6b04a9f4e2c4e)
Andrew Bartlett [Fri, 18 Jan 2008 05:56:41 +0000 (16:56 +1100)]
Add showInAdvancedViewOnly to every new object
Unless already set, the default value for this comes from the
defaultHidingValue in the schema.
Andrew Bartlett
(This used to be commit
673f1805006f879fa5302aab8411767a22488e64)
Andrew Tridgell [Fri, 18 Jan 2008 04:45:22 +0000 (15:45 +1100)]
merged changes from v3-2-test
(This used to be commit
7077df3e2e3f171532f6a5ac87d45201736c9c11)
Andrew Tridgell [Fri, 18 Jan 2008 04:33:57 +0000 (15:33 +1100)]
merged tdb changes from ctdb
(This used to be commit
c54c087a19e36e0522eb4546c9425ae446f0628b)
Jelmer Vernooij [Fri, 18 Jan 2008 02:37:06 +0000 (03:37 +0100)]
registry: Use correct return values.
(This used to be commit
98ebdbe52fd615ea62a3caa17acfe8bb31b8f85d)
Jelmer Vernooij [Fri, 18 Jan 2008 02:00:00 +0000 (03:00 +0100)]
registry: Avoid mapping registry return codes: return the right value in the first place.
(This used to be commit
434e4857cec17d6d9e8983e151c170eed59fc6d1)
Andrew Kroeger [Fri, 18 Jan 2008 01:51:51 +0000 (02:51 +0100)]
When Windows attempts to create a new key, it looks for an available key name
starting with "New Key #1" and iterating up to "New Key #99" before giving up.
ldb_open_key() calls reg_path_to_ldb() to build the appropriate dn from the key
name. reg_path_to_ldb() was not catching the error returned by
ldb_dn_add_base_fmt() due to the unescaped '#' character, causing the returned
dn to be that of the parent key, not the potential new key. Additionally,
Windows expects a return value of WERR_BADFILE when a key does not exist, but
WERR_NOT_FOUND was being returned instead. Correcting the building of the dn
and the providing the expected return value allows new key creation to succeed.
When attempting to delete a key, Windows passes the complete path to the key,
not just the name of the child key to be deleted. Using reg_path_to_ldb() to
build the correct dn allows key deletion to succeed.
(This used to be commit
d57792d67b865ef43e7f21640b158862627f4b45)
Jelmer Vernooij [Fri, 18 Jan 2008 01:45:00 +0000 (02:45 +0100)]
registry: Improve error codes and update tests.
Rather than map the error returned by the registry to the correct error,
return the correct error in the first place.
Also deal with the fact that the right error code is now returned in a
couple of places.
(This used to be commit
1e31fcb8a097810a97e2d4bb1f243f1b34cc2415)
Andrew Kroeger [Fri, 18 Jan 2008 00:50:33 +0000 (01:50 +0100)]
When Windows initially creates a new value, the value name is "New Value #1".
The '#' character was causing problems, as it was not being escaped for the dn,
but the failure returned by ldb_dn_add_child_fmt() was not being caught. This
was causing the new value to be added on the parent key, not the current key.
When attempting to delete the new value (now on the parent key) the same
escaping error was returned by ldb_dn_add_child_fmt(), causing the delete to
delete the key and not the value.
When attempting to rename a value, Windows first tries to ensure the new name
does not already exist. When a value does not exist, Windows expects a return
value of WERR_BADFILE, but WERR_NOT_FOUND was being returned instead.
Providing the WERR_BADFILE that Windows expects allows values to be renamed.
(This used to be commit
94fb39cfd967455ce5a554720c1c7e6183f91056)
Andrew Kroeger [Fri, 18 Jan 2008 00:48:48 +0000 (01:48 +0100)]
registry: Properly check return values from ldb_*() functions.
There were a few cases left that attempted to detect errors from ldb_*()
function calls using "(ret < 0)". As all LDB_* error codes are greater than
zero, there was no chance any errors would be detected. Changed all such tests
to use "(ret != LDB_SUCCESS)".
(This used to be commit
0ed6f1b1628da5b922f02a5f9a6c60071b6277f2)
Jelmer Vernooij [Fri, 18 Jan 2008 00:47:10 +0000 (01:47 +0100)]
registry: Check for more specific LDB return codes, handle changing existing values better.
(This used to be commit
c8b22ef30c7fc0ccc15e9fc9a38fdc639fc4b976)