Michael Adam
3cab109754
s3:srv_ntsvcs_nt: make fill_svc_config() use svcctl_get_string_value()
...
instead of using legacy svcctl_fetch_regvalues()
2010-09-21 06:53:31 +02:00
Michael Adam
3c85a9fcbe
s3:services_db: publish svcctl_get_string_value()
2010-09-21 06:53:31 +02:00
Michael Adam
e28bc8d763
s3:services_db: factor out common code of lookup_dispname and lookup_description
...
into a new function svcctl_get_string_value()
2010-09-21 06:53:31 +02:00
Michael Adam
53dcbc2dd2
s3:services_db: change svcctl_lookup_description() to use reg_api functions
2010-09-21 06:53:31 +02:00
Michael Adam
9fee033656
s3:services_db: rewrite svcctl_lookup_description() to use a tmp talloc ctx
...
Also remove a possible memory by tallocing the result string
also in a default case, where a string constant was returned before.
2010-09-21 06:53:31 +02:00
Michael Adam
464515cd61
s3:services_db: change svcctl_lookup_dispname() to use reg_api functions
2010-09-21 06:53:31 +02:00
Michael Adam
e464ca9f31
s3:services_db: make svcctl_lookup_dispname() use a temp talloc ctx
2010-09-21 06:53:31 +02:00
Michael Adam
a4b1042f33
s3:services_db: change svcctl_get_secdesc() to use reg_api functions
2010-09-21 06:53:31 +02:00
Michael Adam
4fc2b5c40e
s3:services_db: use temp talloc ctx in svcctl_get_secdesc()
2010-09-21 06:53:30 +02:00
Michael Adam
9bfd587358
s3:services_db: remove the TALLOC_CTX argument from svcctl_set_secdesc
2010-09-21 06:53:30 +02:00
Michael Adam
91d5446390
s3:services_db: fix a debug message
2010-09-21 06:53:30 +02:00
Michael Adam
d2794b05a6
s3:services_db: rewrite svcctl_set_secdesc to use tmp talloc ctx
...
and add a common exit point
2010-09-21 06:53:30 +02:00
Michael Adam
7cefb89872
s3:services_db: rewrite svcctl_set_secdesc() using reg_api calls instead of legacy
2010-09-21 06:53:30 +02:00
Michael Adam
f53c17b4ff
s3:services_db: untanlge assignments from check in read_init_file().
2010-09-21 06:53:30 +02:00
Michael Adam
a67a553f40
s3:services_db: untangle assignments from check in construct_service_sd().
2010-09-21 06:53:29 +02:00
Günther Deschner
6f47a24bc5
s3-libnetapi: Fix Bug #7665 , memory leak in netapi connection manager.
...
Guenther
2010-09-20 21:05:37 -07:00
Andrew Bartlett
80ca590d38
s3-lib/util Remove unused smb_uuid_unpack()
...
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-20 16:15:11 -07:00
Andrew Bartlett
03011bf118
s3-libads call common GUID_from_ndr_blob()
...
This does a length-limited check, and so avoids reading beyond the
allocated memory if the server sends less than 16 bytes.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-20 16:15:11 -07:00
Andrew Bartlett
6acb47b115
s3-uuid Remove unused smb_uuid_pack()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-20 16:15:10 -07:00
Andrew Bartlett
d7bc452a89
s3: Replace sid_binstring and sid_guidstring with PIDL-based alternatives
...
This reduces the manual marshalling of these structures by removing
the duplication here.
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-20 16:15:03 -07:00
Günther Deschner
8853babb50
s3-build: try to fix the non-ldap build.
...
ldapsam_search_suffix_by_name is already prototyped in smbldap.h.
Guenther
2010-09-20 15:06:30 -07:00
Günther Deschner
d0a6c32add
s3-nmbd: move SYNC_DNS to nmbd.h
...
Guenther
2010-09-20 14:10:34 -07:00
Günther Deschner
102a70e809
s3-util: use shared dom_sid_dup.
...
Guenther
2010-09-20 14:05:07 -07:00
Günther Deschner
4dbd743e46
s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.
...
Guenther
2010-09-20 14:04:37 -07:00
Günther Deschner
62544c5d2b
s3-build: only include smbldap.h where needed.
...
Guenther
2010-09-20 13:54:56 -07:00
Günther Deschner
8e16d6dbdf
s3-build: only include ctdbd_conn.h where needed.
...
Guenther
2010-09-20 13:54:50 -07:00
Günther Deschner
c7fe04abc7
s3-build: only include async headers where needed.
...
Guenther
2010-09-20 13:54:42 -07:00
Günther Deschner
b3a3fe6ee0
s3-waf: fix the build after registry changes.
...
Guenther
2010-09-20 13:40:55 -07:00
Rusty Russell
dc19278795
Really enable core dumps in Linux
...
commit e1f1ce68e1f685400a8c68bcec14018e3d1fc29d
Author: Rusty Russell <rusty@rustcorp.com.au>
Date: Mon Sep 20 13:33:30 2010 +0930
source3: dump core on Linux, even after seteuid/etc.
The "dumpable" flag is reset on every call to set*uid, so we need to
reset it to 1 in the signal handler itself.
This code dates back to commit ac01fda2b9
6 years ago :(
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Jeremy Allison <jra@samba.org>
2010-09-20 13:15:17 -07:00
Michael Adam
2c9cb11f53
s3:registry: move prototypes of unused hilvl functions to ret_api_util.h and comment them out
2010-09-20 19:58:01 +02:00
Michael Adam
8eb487caba
s3:registry: move (commented out) hilvl util functions to reg_api_util.c
2010-09-20 19:58:01 +02:00
Michael Adam
0f7e503d21
s3:registry: move higher level function reg_open_path to new module reg_api_util
...
The reg_api.c code should just export functions that direclty relate to winreg
api calls.
2010-09-20 19:58:01 +02:00
Günther Deschner
c9e17edfc6
s3-waf: add net.
...
Guenther
2010-09-20 10:48:24 -07:00
Günther Deschner
99d898938c
s3-waf: add libnetapi
2010-09-20 10:48:16 -07:00
Björn Jacke
1c82ca01c3
s3/winbind: remove unused winbindd_check_cache_size
2010-09-19 22:58:33 -07:00
Kai Blin
dbfb42c1b5
s3-waf: Build libwbclient as dynamic library
2010-09-19 21:17:55 -07:00
Günther Deschner
c1a6820c85
s3-waf: fix the file locations of gen_ndr'ed files.
...
Guenther
2010-09-20 03:19:23 +02:00
Günther Deschner
ad8533c0b0
s3-waf: fix the build after reg_api changes.
...
Guenther
2010-09-20 03:10:43 +02:00
Günther Deschner
91e8f8ded2
s3-registry: move regf based reg_api calls into own file.
...
Guenther
2010-09-20 02:27:41 +02:00
Günther Deschner
323f729df0
s3-registry: add reg_querymultiplevalues to reg_api matching table.
...
Guenther
2010-09-20 02:27:41 +02:00
Günther Deschner
3f55c2ee7a
s3-waf: add rpcclient to the waf build.
...
Guenther
2010-09-20 02:19:56 +02:00
Günther Deschner
9e058c6e72
s3-rpcclient: add some winreg commands.
...
Guenther
2010-09-19 02:47:11 +02:00
Günther Deschner
1d8094172c
s3-nltest: add dsregdns command to nltest.
...
Guenther
2010-09-19 02:47:11 +02:00
Günther Deschner
8e73826b3c
s3-libnetapi: support NETLOGON_CONTROL_FORCE_DNS_REG in I_NetLogonControl().
...
Guenther
2010-09-19 02:47:11 +02:00
Günther Deschner
47a7a5830c
libnetapi: deal with NULL data in I_NetLogonControl2().
...
Guenther
2010-09-19 02:47:10 +02:00
Volker Lendecke
1473330bbe
s3: Add a missing prototype
2010-09-18 09:32:41 -07:00
Volker Lendecke
7fddf9c89e
s3: Fix bug 7688, rpcclient command line completion crashing
...
We've grown more than 100 rpcclient commands by now, so this would overwrite
the array of 100 completions. There's nicer ways to fix this problem, but 1000
rpcclient commands should be at least a bit away.
2010-09-18 07:44:23 -07:00
Volker Lendecke
252e8c27eb
s3: Fix some nonempty blank lines
2010-09-18 07:44:17 -07:00
Stefan Metzmacher
78b6265ac2
s3:rpc_client: remove unused rpc_pipe_set_hnd_state()
...
metze
2010-09-17 15:42:36 +02:00
Stefan Metzmacher
fde3412ccb
s3:rpc_client: use rpc_api_pipe_send() for auth3
...
metze
2010-09-17 15:42:35 +02:00
Stefan Metzmacher
6ecf8d16bc
s3:rpc_client: rpc_pipe_bind_step_one_done() doesn't need reply_pdu
...
metze
2010-09-17 15:42:35 +02:00
Stefan Metzmacher
de6254d3d6
s3:rpc_client: allow DCERPC_PKT_AUTH3 via rpc_api_pipe_send/recv
...
metze
2010-09-17 15:42:34 +02:00
Björn Jacke
10eefd85c9
s3: fix order of arguments in nsec_time_diff call
2010-09-17 13:49:11 +02:00
Sumit Bose
e2d6b64219
Fix array size of a memmber of struct cli_ulogoff_state
...
The too small array makes UID-REGRESSION-FIX fail on 32bit
architectures.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-09-17 11:51:56 +02:00
Björn Jacke
66ad6c75e9
ѕ3: remove smb_msleep prototype from here
2010-09-16 22:18:45 +02:00
Björn Jacke
6bc68fabb8
s3: remove TvalDiff macro, we can use the shared usec_time_diff function
2010-09-16 21:38:20 +02:00
Björn Jacke
2b254c814b
s3/s4: merge msleep and smb_msleep
...
the merged variant is renamed to smb_msleep as some platforms already have a
msleep function.
2010-09-16 21:38:20 +02:00
Björn Jacke
0fd16018a1
s3: remove TspecDiff macro, we can use the shared nsec_time_diff function
2010-09-16 21:38:20 +02:00
Björn Jacke
aada719694
s3: use nsec_time_diff instead of TspecDiff
2010-09-16 21:38:20 +02:00
Björn Jacke
ec643df212
s3/vfs_scannedonly: use smb_msleep instead of nanosleep
...
Thanks to Joachim Schmitz. This fixes bug #7478
2010-09-16 21:38:19 +02:00
Volker Lendecke
0858b7546e
s3: Add the PAC info3 struct to the netsamlogon_cache in ntlm_auth
2010-09-16 12:02:57 -07:00
Volker Lendecke
547b268cfa
s3: Correctly unwrap the krb ticket in gss-spnego
2010-09-16 12:02:56 -07:00
Volker Lendecke
70ab7eb530
s3: Fall back to raw NTLMSSP for the gss-spnego protocol
...
This is to handle the mod_auth_ntlm_winbind protocol
sending "Negotiate" to IE, which sends raw NTLMSSP
instead of a SPNEGO wrapped NTLMSSP blob.
2010-09-16 12:02:56 -07:00
Volker Lendecke
de2c143f4d
s3: Split off output generation from manage_squid_ntlmssp_request
2010-09-16 12:02:56 -07:00
Volker Lendecke
ae483bbe9a
s3: Wrap the ntlm_auth loop with a talloc_stackframe
2010-09-16 12:02:56 -07:00
Andrew Bartlett
6832d5e933
libcli/auth/ntlmssp Be clear about talloc parents for session keys
...
The previous API was not clear as to who owned the returned session key.
This fixes a valgrind-found use-after-free in the NTLMSSP key derivation code,
and avoids making allocations - we steal and zero instead.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Tridgell
dc59de5627
s4-netlogon: added IDL for netr_DsrUpdateReadOnlyServerDnsRecords
...
this is used by a RODC to do DNS updates, as TSIG updates are not
allowed by RODCs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:17 +10:00
Jelmer Vernooij
32976e2eaa
s3: Add convenience make target buildfarm-test.
2010-09-16 00:15:29 +00:00
Jelmer Vernooij
bad0041390
s3-selftest: Move Samba3-specific script to source3/selftest.
2010-09-16 00:15:29 +00:00
Björn Jacke
cd56e40117
s3/printing: avoid a possible race condition in the cache timeout
2010-09-16 01:00:54 +02:00
Jeremy Allison
447d96878a
Fix all sid_parse returns to be checked. Tidy up some checks and error
...
messages.
Jeremy.
2010-09-15 15:40:15 -07:00
Günther Deschner
db8cfda320
s3-smbd: prevent call_nt_transact_ioctl() crash in FSCTL_FIND_FILES_BY_SID case.
...
Jeremy, please check.
Guenther
2010-09-16 00:20:47 +02:00
Björn Jacke
aa7df7b737
s3/printing: make clock jump save and use monotonic time for cache timeout
2010-09-15 22:43:24 +02:00
Jeremy Allison
627de92521
Add check for invalid data size.
...
Jeremy.
2010-09-15 10:50:50 -07:00
Volker Lendecke
6400f3ee62
s3: Fix some debug msgs in ntlm_auth
2010-09-15 10:31:00 -07:00
Günther Deschner
2d1cf2671f
s3-waf: fix the build.
...
... this starts to get like "re-run make idl"...
Guenther
2010-09-15 14:31:39 +02:00
Günther Deschner
33d05a85e5
s3-rpc_server: fix some uninitalized variables and c++ build warnings.
...
Guenther
2010-09-15 13:24:44 +02:00
Günther Deschner
480c97b5b1
s3-printing: fix print_spool_terminate().
...
Simo, Andreas, please check.
Guenther
2010-09-15 13:18:27 +02:00
Simo Sorce
db46b2bdb0
s3-winbindd: Use rpc_open_pipe_interface in winbindd.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:43 +02:00
Andreas Schneider
e580c6d88f
s3-rpc_server: Use talloc_stackframe.
2010-09-15 12:53:43 +02:00
Simo Sorce
8ec7aaef48
s3-rpc_server: Moved ncacn_np declarations in common header file.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:42 +02:00
Simo Sorce
390642a9e6
s3-rpc_server: Moved "external" pipe functions to rpc_ncacn_np.c.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:42 +02:00
Andreas Schneider
34225c93af
s3-rpc_server: Added new parametric option 'rpc_server'
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:42 +02:00
Simo Sorce
738c843e99
s3-rpc_server: Renamed rpc_ncacn_np_internal.c.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:42 +02:00
Simo Sorce
5685914344
s3-rpc_server: Convert rpc_connect_spoolss_pipe into a generic interface.
...
This way we have one common way to open internal pipes whether they
are shortcircuited or piped to an external process.
2010-09-15 12:53:42 +02:00
Simo Sorce
344260d03e
s3-rpc_server: Added support for internal connections to external daemons.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:42 +02:00
Simo Sorce
e7c4555b7c
s3-rpc_server: Accept connections and process requests.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:42 +02:00
Simo Sorce
f7f9916dc7
s3-rpc_server: Added helper functions to read data from a ncacn socket.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:42 +02:00
Simo Sorce
7b1748d959
s3-rpc_client: Added a tstream based transport.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:41 +02:00
Simo Sorce
a1f1da7226
s3-rpc_server: Addded function to create custom pipes_struct.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:41 +02:00
Simo Sorce
b1fdc5a704
s3-rpc_server: Add generic listener callback.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:41 +02:00
Simo Sorce
3c26e95840
s3-rpc_server: Added initial generic RPC server infrastructure.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:41 +02:00
Simo Sorce
11721874c3
s3-rpc_server: Added debug to see how much data has been read out.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:41 +02:00
Simo Sorce
5ccd7a56fa
s3-rpc_server: Make process_incoming_data() public.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:41 +02:00
Simo Sorce
2ef693e3c8
s3-rpc_server: Make pipe destructor public.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:41 +02:00
Simo Sorce
3f04b54197
s3-rpc_server: Fixed unhandled error condition.
...
Signed-off-by: Andreas Schneider <asn@samba.org>
2010-09-15 12:53:40 +02:00
Simo Sorce
94d86a22a1
s3-misc: Introduce lp_ncalrpc_dir() in S3, like we have in S4.
2010-09-15 12:53:40 +02:00
Andreas Schneider
65bd8f881d
s3-printing: Document the printer list functions.
2010-09-15 12:53:40 +02:00
Simo Sorce
25a2d94974
s3-printing: Add method to skip refresh if just happned.
...
This way if multiple process try to refresh at the same time we don't do it
over and over again.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:40 +02:00
Simo Sorce
7022554915
s3-printing: Use printer list tdb in pcap.
...
Signed-off-by: Andreas Schneider <asn@cynapses.org>
2010-09-15 12:53:40 +02:00