Günther Deschner
5119d5540d
s4-winreg: fix dcesrv_winreg_EnumValue behavior
...
When returning WERR_MORE_DATA the winreg server needs to indicate the
required buffer size.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Nov 20 04:50:00 UTC 2023 on atb-devel-224
2023-11-20 04:50:00 +00:00
Stefan Metzmacher
2ed7db445b
s4:rpc_server/winreg: don't cache an ldb connection per presentation context
...
We should do this per context handle, as these are available on all
connections of the association group.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-01-12 03:13:39 +01:00
Stefan Metzmacher
86661abacf
s4:rpc_server/winreg: make use of dcesrv_handle_create()
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-01-12 03:13:35 +01:00
Stefan Metzmacher
014e55b8e9
s4:rpc_server/winreq: make use dcesrv_call_session_info()
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2019-01-12 03:13:33 +01:00
Günther Deschner
160d5c40a6
werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source4/rpc_server/
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:23 +02:00
Günther Deschner
eaee3b85e8
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source4/rpc_server/
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:20 +02:00
Andrew Tridgell
f0e7303023
s4-rpc: improved error mapping for several RPC server calls
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-04-04 10:30:30 +10:00
Andrew Bartlett
8beaa29242
s4-libcli/security Use seperate subsystem for session related functions
...
The merged I plan in this area require spliting security.h into
two header files, a common header and a session.h for the
remaining source4-specific code.
Andrew Bartlett
2010-10-12 02:54:16 +00:00
Matthias Dieter Wallnöfer
871cdec414
s4:registry RPC server - quite some build warnings on Solaris
2010-06-20 22:33:01 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Andrew Tridgell
bb1ba4ff76
s4-drs: added new SECURITY_RO_DOMAIN_CONTROLLER level
...
This is used for allowing operations by RODCs, and denying them
operations that should only be allowed for a full DC
This required a new domain_sid argument to
security_session_user_level()
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-With: Rusty Russell <rusty@samba.org>
2010-04-22 19:36:16 +10:00
Günther Deschner
35ef60918b
s4-winreg: Fix dcesrv_winreg_CreateKey after rename.
...
Guenther
2010-04-09 13:57:18 +02:00
Günther Deschner
846813797d
s4-winreg: add winreg_DeleteKeyEx stub.
...
Guenther
2010-04-09 00:27:58 +02:00
Matthias Dieter Wallnöfer
90d2902c73
s4:registry - move the UTF16 length calculation for "reg_key_get_info" into the RPC server code
...
It does fit better there.
2010-03-29 20:36:32 +02:00
Matthias Dieter Wallnöfer
0c10703c75
s4:WINREG RPC - add also here a "W_ERROR_HAVE_NO_MEMORY"
2010-03-22 22:31:06 +01:00
Matthias Dieter Wallnöfer
43170dafbc
s4:registry - adaptions for "add memory contexts for delete value/key functions"
2010-03-22 22:31:00 +01:00
Matthias Dieter Wallnöfer
2bbdb2cd34
s4:WINREG RPC server - don't check for the "name" size in "EnumValue"
...
This isn't needed at all since:
1.) a new name object is created and sent back to the client
2.) the "size" seems to be the size of the "name" pointer. On my test with the
"regedt32" program this has always been "4".
2010-03-21 15:12:37 +01:00
Matthias Dieter Wallnöfer
811c601ae0
s4:WINREG RPC - we support only non-volatile keys
2010-03-21 14:30:45 +01:00
Matthias Dieter Wallnöfer
1cdeb0c0d2
s4:WINREG RPC - specify the performed create action for "CreateKey"
...
To make the WINREG RPC testsuite happy.
2010-03-21 14:03:58 +01:00
Günther Deschner
9e80fe6675
s4-winreg: continue processing in WERR_MORE_DATA case in dcesrv_winreg_QueryValue().
...
Matthias, please check.
Guenther
2010-03-11 20:17:48 +01:00
Matthias Dieter Wallnöfer
5d10676b3b
s4:winreg RPC - fix up the "QueryValue" call to work against the enhanced torture test
...
Found out by gd's updated torture test.
2010-03-10 19:49:25 +01:00
Matthias Dieter Wallnöfer
eeb05bf746
s4:winreg RPC - don't crash when incoming data wasn't correctly specified
...
Also found by the WINREG torture test enhancements by gd.
2010-03-10 09:26:17 +01:00
Matthias Dieter Wallnöfer
f7c28db475
s4:WINREG RPC server - add another "talloc_unlink" in "DeleteKey"
...
Also here we waste memory - therefore free the pointless handle after the delete.
2009-11-27 23:23:32 +01:00
Matthias Dieter Wallnöfer
6f7cfb0e10
s4:WINREG RPC server - Reintroduce the free operation on "CloseKey"
...
Better use "talloc_unlink" here Since we could have more than one reference.
2009-11-27 23:23:31 +01:00
Matthias Dieter Wallnöfer
bda1c701f4
s4:WINREG RPC server - Cosmetic
2009-11-21 11:38:20 +01:00
Matthias Dieter Wallnöfer
a31838eb3c
s4:WINREG RPC server - remove a "talloc_free"
...
I assume that this "talloc_free" isn't necessary since the DCERPC server frees
the handle itself (we got always warnings about this).
2009-11-17 19:56:14 +01:00
Andrew Tridgell
1261d694f0
more include minimisation
2009-09-19 14:12:01 -07:00
Stefan Metzmacher
5bca70a0c2
s4:rpc_server: s/private/private_data
...
metze
2009-02-02 13:08:49 +01:00
Jelmer Vernooij
19aec78aec
Fix the build.
2008-10-21 15:47:34 +02:00
Jelmer Vernooij
5209a846a9
Merge branch 'master' of ssh://git.samba.org/data/git/samba into regsrv
...
Conflicts:
source4/lib/registry/ldb.c
source4/rpc_server/winreg/rpc_winreg.c
2008-10-21 14:51:13 +02:00
Matthias Dieter Wallnöfer
80af62652b
Registry RPC server: Reintroduce the "key" variable for better readability
...
The "key" variable points to our working key in the hive (h->data).
2008-10-21 14:40:42 +02:00
Matthias Dieter Wallnöfer
f10227958b
Registry server: Fixes up the patch with "type" != NULL (used in "EnumValue" and "QueryValue")
...
This prevents the server to segfault if the input data type is NULL.
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
f9d7af8569
Revert "Registry server: Enhances commit "type" != NULL (when getting values)"
...
This reverts commit 32d00f5e2c5a67dac806ee07f030f3ac2ad108f9.
This patch hasn't been right. Repost it in the right way.
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
254eb51c4c
Registry server: Enhances commit "type" != NULL (when getting values)
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
083785c091
Registry server "reg_ldb_unpack_value": Tests demonstrate that also "type" doesn't has to be NULL
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
5f2ab665bd
Registry server: Cosmetic corrections
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
ac4808c11f
Cleanups of server files
...
Cosmetic corrections
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
e23e997644
Registry server: More work to be compatible
...
Some fixup's and assure, that we send only initialized values.
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
d7be73eea2
Fixes for the WINREG RPC server
...
This changes the WINREG RPC server through some corrections into the Windows-like behaviour.
Compared with Windows 2000 and tested through Windows 2000 Registry Editor.
2008-10-21 14:40:40 +02:00
Jelmer Vernooij
ada0e343b2
Sync parameter names with samba 3.
2008-10-15 17:38:51 +02:00
Jelmer Vernooij
fed4658c1b
winreg.idl: Sync ref change from Samba 3.
2008-10-15 17:34:55 +02:00
Jelmer Vernooij
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a2
)
2008-04-17 12:23:44 +02:00
Andrew Bartlett
9a1bec0801
More kludge ACLs!
...
Rather than killing off the nasty 'kludge ACLs' stuff, this patch
extends it, to ensure that LSA secrets and the registry are also
protected.
Andrew Bartlett
(This used to be commit 2f2b110fb8
)
2008-03-20 12:12:10 +11:00
Jelmer Vernooij
47f6bbf8cf
r26689: registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo().
...
(This used to be commit b06896d237
)
2008-01-07 08:18:07 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
57f20ccd24
r26296: Store loadparm context in DCE/RPC server context.
...
(This used to be commit fc1f4d2d65
)
2007-12-21 05:48:13 +01:00
Jelmer Vernooij
51d8da8ae3
r26239: Fix registry argument order.
...
(This used to be commit 0b3de2a63a
)
2007-12-21 05:47:21 +01:00
Jelmer Vernooij
6c999cd123
r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly.
...
(This used to be commit 5b29ef7c03
)
2007-12-21 05:47:15 +01:00
Stefan Metzmacher
529763a9aa
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/
metze
(This used to be commit 6223c7fddc
)
2007-12-21 05:45:02 +01:00
Günther Deschner
b591596c0e
r25539: Also correct indent for winreg server.
...
Guenther
(This used to be commit 3f6cc36a1b
)
2007-10-10 15:07:50 -05:00