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

415 Commits

Author SHA1 Message Date
Jelmer Vernooij
91d7ba5202 build: Remove support for DESCRIPTION setting that is now unused. 2008-01-22 18:49:51 +01:00
Jelmer Vernooij
676fd18fa2 dcerpc: Use manually written .pc files for dcerpc and ndr. 2008-01-22 18:36:14 +01:00
Jelmer Vernooij
5c64d4adaf registry: Use manually written .pc file. 2008-01-22 18:28:51 +01:00
Jelmer Vernooij
98ebdbe52f registry: Use correct return values. 2008-01-18 03:42:00 +01:00
Jelmer Vernooij
434e4857ce registry: Avoid mapping registry return codes: return the right value in the first place. 2008-01-18 03:42:00 +01:00
Andrew Kroeger
d57792d67b 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.
2008-01-18 03:41:59 +01:00
Jelmer Vernooij
1e31fcb8a0 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.
2008-01-18 03:41:59 +01:00
Andrew Kroeger
94fb39cfd9 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.
2008-01-18 03:41:59 +01:00
Andrew Kroeger
0ed6f1b162 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)".
2008-01-18 03:41:59 +01:00
Jelmer Vernooij
c8b22ef30c registry: Check for more specific LDB return codes, handle changing existing values better. 2008-01-18 03:41:59 +01:00
Jelmer Vernooij
9fc5f098e0 r26692: registry: Treat key and value names case-insensitively. 2008-01-07 17:48:02 -06:00
Jelmer Vernooij
b06896d237 r26689: registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo(). 2008-01-07 08:18:07 -06:00
Jelmer Vernooij
846876ad32 r26688: Fix listing remote predefined keys and subkeys. This fixes bug 3431. 2008-01-07 08:18:06 -06:00
Jelmer Vernooij
bcd8f50f79 r26665: registry: Fix tests on bigendian machines. 2008-01-05 08:06:04 -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
ecd2d96c31 r26602: Revert my previous commit as it only works with GNU make. 2007-12-26 11:57:09 -06:00
Jelmer Vernooij
b06d3e1a52 r26600: Provide dir variable with current basedir in Makefile. 2007-12-26 11:57:08 -06:00
Jelmer Vernooij
2227fb6df6 r26596: Fixed upgrade.py.
Added blackbox tests for provision and upgrade Python scripts.
Clean up temporary files created by the Python tests.
2007-12-26 11:57:08 -06:00
Kai Blin
1ae9cde510 r26589: torture: Add non-const version of torture_tcase_add_simple_test 2007-12-26 11:57:05 -06:00
Kai Blin
e59c2eaf68 r26588: Janitorial: Rename torture_*_add_*test to torture_*_add_*test_const.
Also rename the corresponding wrap_ functions.
2007-12-26 11:57:05 -06:00
Jelmer Vernooij
ba8be2dfc0 r26576: Allow the static module loading code to be used for the Python modules.
Simplify the way module initialization functions are handled.
2007-12-24 01:51:06 -06:00
Jelmer Vernooij
15038d9586 r26572: Fix warnings in the Python code. 2007-12-24 01:51:04 -06:00
Jelmer Vernooij
cb76c60007 r26571: Hide warnings about unused macros and casting qualifiers in autogenerated files. 2007-12-24 01:51:03 -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
485d1fa3d1 r26565: Fix python registry bindings. 'PROVISION_PYTHON=yes make test' works now. 2007-12-24 01:51:01 -06:00
Jelmer Vernooij
f40fad9827 r26564: More python bindings for registry code. 2007-12-24 01:51:01 -06:00
Jelmer Vernooij
cfffd0357e r26563: Fix reg_diff_apply argument order. 2007-12-24 01:51:01 -06:00
Jelmer Vernooij
a8b1fe15ac r26520: More Python updates. 2007-12-21 05:51:31 +01:00
Jelmer Vernooij
12eb38e553 r26518: Fix provision of registry using Python. 2007-12-21 05:51:25 +01:00
Jelmer Vernooij
760fcc8bfa r26454: Add simple SWIG macro for wrapping talloced types. 2007-12-21 05:50:22 +01:00
Kai Blin
c81ead1c38 r26453: Janitorial: Don't use a static char[] in smb_readline_replacement.
Fix up callers to free the memory returned, as that is needed if we use the
original readline function as well.
2007-12-21 05:50:18 +01:00
Kai Blin
46dfa63d4f r26451: Janitorial: fix warnings in lib/registry/
This does not fix the discarded qualifier warnings in tests, as the test data
is currently passed as const. Jelmer wants to provide a test function that
passes non-const test data, thus allowing for a cleaner way to fix those
warnings.
2007-12-21 05:50:16 +01:00
Jelmer Vernooij
ccfab20dcc r26448: Add basic tests for param python module. 2007-12-21 05:50:14 +01:00
Jelmer Vernooij
8242c69623 r26443: Remove global_loadparm instances. 2007-12-21 05:50:11 +01:00
Jelmer Vernooij
76fd57be29 r26439: Require tdr_pull users to specify a smb_iconv convenience context. 2007-12-21 05:50:07 +01:00
Jelmer Vernooij
dffef31627 r26438: Store iconv convenience in tdr push contexts. 2007-12-21 05:50:07 +01:00
Jelmer Vernooij
d37136b7ab r26429: Avoid use of global_smb_iconv_convenience. 2007-12-21 05:49:56 +01:00
Jelmer Vernooij
bf072c6fb3 r26427: Avoid global_smb_iconv_convenience. 2007-12-21 05:49:53 +01:00
Kai Blin
bdc4820335 r26407: Janitorial: Remove a pstring and compiler warnings. 2007-12-21 05:49:37 +01:00
Jelmer Vernooij
3378b6a559 r26399: Use -O option for SWIG (less evil generated code). 2007-12-21 05:49:29 +01:00
Jelmer Vernooij
621feaa3d5 r26372: Add include for external users. 2007-12-21 05:49:08 +01:00
Jelmer Vernooij
5d589a0d94 r26355: Eliminate global_loadparm in more places. 2007-12-21 05:49:01 +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
Jelmer Vernooij
f6420d933b r26316: Use contexts for conversion functions. 2007-12-21 05:48:30 +01:00
Jelmer Vernooij
69157be9b1 r26263: Don't assume CH_UNIX is CH_UTF8. 2007-12-21 05:47:37 +01:00
Jelmer Vernooij
08501fbef3 r26248: Check in SWIG output so SWIG is not required when running out of svn. 2007-12-21 05:47:26 +01:00
Jelmer Vernooij
5b29ef7c03 r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly. 2007-12-21 05:47:15 +01:00
Jelmer Vernooij
777205b570 r26073: Import Python bindings for the registry. 2007-12-21 05:45:53 +01:00