1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

28598 Commits

Author SHA1 Message Date
Volker Lendecke
7a429fb369 Convert get_complete_frag to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
7573bb758e Convert rpc_write to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
1dd0883458 Convert rpc_read to tevent_req 2009-03-24 13:23:40 +01:00
Volker Lendecke
f91565544f Fix bug 6097
A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies with
NT_STATUS_INVALID_SID, even if other SIDs in the list are valid.

Thanks to Pavel <wylda@volny.cz> for the bug report!
2009-03-24 11:59:42 +01:00
Günther Deschner
de2a7c8e4c s3: use generated dcerpc code.
Guenther
2009-03-24 11:14:06 +01:00
Günther Deschner
c388efdbcb s3: add missing prototype for auth_wbc_init().
Guenther
2009-03-24 11:11:57 +01:00
Björn Jacke
87b428e424 s3:dsgetdcname: use parentheses in if condition to make negation clear
Signed-off-by: Günther Deschner <gd@samba.org>
2009-03-24 10:20:12 +01:00
Tim Prouty
130582f170 s3 OneFS: Remove usage of non-existant function
The function was removed in:
c16c90a1cb
2009-03-23 11:57:13 -07:00
Tim Prouty
866afd5d0b s3: Remove redundant comment 2009-03-23 11:55:58 -07:00
Michael Adam
36b957b5b7 s3:build: make SHOWFLAGS target phony and add alias showflags
Michael
2009-03-23 17:48:24 +01:00
Volker Lendecke
63aae58fdc Use avahi to register _smb._tcp in smbd 2009-03-23 17:09:53 +01:00
Volker Lendecke
93e13fe3e0 Add tevent avahi binding 2009-03-23 17:09:53 +01:00
Volker Lendecke
4c1794c41c Add avahi detection to configure 2009-03-23 17:09:53 +01:00
Volker Lendecke
dfa93041ab Disable dns_sd by default 2009-03-23 17:09:53 +01:00
Michael Adam
a4cc3e2538 s3:build: prevent from setting "-O -g", check for $debug first.
This makes configure actually behave as the comments describe.
The reversal of order was introduced by mistake in
90ea8ae9b1

Michael
2009-03-23 14:22:37 +01:00
Björn Jacke
2dc8ce59b2 don't set -O twice
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-23 14:20:46 +01:00
Björn Jacke
a087310b33 remove non standard way to point to ctdb path
we can provide the path to ctdb via the --with-ctdb=... configure flag like we
do it with other packageѕ, too. There is no need for another redundnant
Makefile hack to point the ctdb header location

Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-23 13:20:06 +01:00
Björn Jacke
f4aec7b590 ѕ3/winbind_pam: fix gcc 4.4 compile warning 2009-03-23 13:10:54 +01:00
Stefan Metzmacher
97a086d5c4 selftest/Samba3: Test smb signing against the member server
metze
2009-03-23 12:21:14 +01:00
Stefan Metzmacher
6af15943c6 s3:libsmb: use new simplified smb_signing code for the client side
We store the seqnum/mid mapping in the cli_request structure
for async requests and in the cli_state structure for sync calls.

We skip the signing check for oplock requests while waiting
for async requests coming in.

metze
2009-03-23 12:21:14 +01:00
Stefan Metzmacher
c16c90a1cb s3:smbd: use new simplified snb_signing code in the server
We keep the seqnum/mid mapping in the smb_request structure.

This also moves one global variable into the
smbd_server_connection struct.

metze
2009-03-23 12:21:13 +01:00
Stefan Metzmacher
2654653f55 s3:libsmb: add a much simplified smb_siging infrastructure
It's the job of the caller to maintain the seqnum/mid mapping.

Hopefully we can use this code in s4 later too.

metze
2009-03-23 12:21:13 +01:00
Stefan Metzmacher
1a48d0793b s3:libsmb: rename smb_signing.c => clisigning.c
This prepares a large simplification of the smb_signing code

metze
2009-03-23 12:21:12 +01:00
Stefan Metzmacher
7716ad68a8 s3:smbd: if we allow trans2 on the IPC$ share, then we have to allow transs2 too.
Otherwise we'll confuse the client signing engine, when we reply an error to each transs2.

metze
2009-03-23 12:21:12 +01:00
Volker Lendecke
298bff5019 Fix connect to port 139 only -- thanks gd for bugging me :-) 2009-03-23 12:06:57 +01:00
Volker Lendecke
1bff89c4ad Only build the dirsort module if we have the dirfd function
Fix the build on HP/UX
2009-03-22 13:17:42 +01:00
Volker Lendecke
14df86e9e3 Use StrCaseCmp in the dirsort module 2009-03-22 11:44:13 +01:00
Andy Kelk
2835d0d463 Add dirsort module 2009-03-22 11:44:13 +01:00
Stefan Metzmacher
3b73cdb412 s3:nmbd: implement a MAILSLOT => CLDAP proxy for NETLOGON_SAMLOGON requests
This will be used as part a the franky setup, where nmbd will forward
the MAILSLOT requests to the local samba4 CLDAP server.

"nmbd_proxy_logon:cldap_server = 127.0.0.1" would configure
and activate this feature.

metze
2009-03-21 10:44:42 +01:00
Stefan Metzmacher
593ab6ac00 s4:selftest: rename SMBD_VALGRIND => SAMBA_VALGRIND
metze
2009-03-21 10:44:40 +01:00
Günther Deschner
19de802c17 s3-spoolss: _spoolss_EnumPrinters level 3 always returns WERR_UNKNOWN_LEVEL.
Guenther
2009-03-20 17:20:33 +01:00
Günther Deschner
d2de9b068c s3-spoolss: implement enumprinters_level4.
Guenther
2009-03-20 17:20:33 +01:00
Günther Deschner
aa6dbcfc11 s3-spoolss: implement enumprinters_level5.
Guenther
2009-03-20 17:20:33 +01:00
Günther Deschner
6713244d46 s3-spoolss: use enum_all_printers_info_level for level 1 and 2.
Guenther
2009-03-20 17:20:33 +01:00
Günther Deschner
95f2913c7d s3-spoolss: add enum_all_printers_info_level().
Guenther
2009-03-20 17:20:33 +01:00
Günther Deschner
5a388115a9 s3-spoolss: apply some const in spoolss server.
Guenther
2009-03-20 17:20:32 +01:00
Günther Deschner
c9a388348a s3-rpcclient: allow to set flags in enumprinters command.
Guenther
2009-03-20 17:20:32 +01:00
Jelmer Vernooij
ca202cf464 Merge branch 'master' of ssh://git.samba.org/data/git/samba into displaysec 2009-03-20 16:40:09 +01:00
Günther Deschner
3a6133d702 s3-netapi: Fix Coverity #774 (REVERSE_INULL).
Guenther
2009-03-20 11:21:36 +01:00
Günther Deschner
f2243e8197 s3-netapi: Fix Coverity #775 (REVERSE_INULL).
Guenther
2009-03-20 11:19:59 +01:00
Günther Deschner
d2e348b191 s3-netapi: Fix Coverity #776 (REVERSE_INULL).
Guenther
2009-03-20 11:17:50 +01:00
Günther Deschner
97190ae184 s3-krb5: Fix Coverity #762 (REVERSE_INULL).
Guenther
2009-03-20 11:11:04 +01:00
Günther Deschner
73030b107d s3-net: Fix Coverity #861 (UNINIT).
Guenther
2009-03-20 11:07:21 +01:00
Günther Deschner
d2fb6d3482 s3-net: Fix Coverity #898 (UNINIT).
Guenther
2009-03-20 11:04:59 +01:00
Günther Deschner
045151b767 s3-spoolss: pure comsetics.
sorry, I just need to do that.

Guenther
2009-03-20 10:49:45 +01:00
Günther Deschner
1524abd8bf s3-krb5: Fix Coverity #722 (RESOURCE_LEAK).
Guenther
2009-03-20 10:41:44 +01:00
Günther Deschner
2c186be0df s3-net: Fix Coverity #886 (FORWARD_NULL).
Guenther
2009-03-20 10:41:44 +01:00
Günther Deschner
842edcd2b0 s3-samr: try to to fix password_expired flag handling.
Guenther
2009-03-20 10:39:18 +01:00
Bo Yang
808928c24b Fix crash in async_smb.c 2009-03-20 09:56:15 +01:00
Michael Adam
3a4638db03 add a versiontest program to print samba_version_string().
This is to allow for testing samba_version_string() without
the need to compile any of the larger binaries like smbd or net...

Michael
2009-03-19 23:57:35 +01:00
Michael Adam
d813a90d18 version: fix handling of SAMBA_VERSION_VENDOR_PATCH.
We need a string version of this, or else version.c does not compile.

Michael
2009-03-19 23:57:34 +01:00
Dan Sledz
f603903cb0 s3: Fix a free of an uninitialized variable in winbind_get_sid_aliases 2009-03-19 14:59:23 -07:00
Stefan Metzmacher
18b4925031 s3:libads: use libcli/cldap code
metze
2009-03-19 16:26:00 +01:00
Stefan Metzmacher
4508152282 s3:build: compile lib/tsocket and libcli/cldap
metze
2009-03-19 16:25:59 +01:00
Björn Jacke
011ad7245d fix build on old Heimdal based systems
Signed-off-by: Günther Deschner <gd@samba.org>
2009-03-19 14:47:48 +01:00
Stefan Metzmacher
88dd6af605 s3:libsmb: always create bytes array in cli_trans code
Otherwise we return NO_MEMORY without a reason for fragmented trans
requests, as talloc_append_blob() returns buf if we append a 0 length
blob. When we pass buf = NULL we'll get back NULL and then assume
NO_MEMORY...

metze
2009-03-19 13:57:21 +01:00
Stefan Metzmacher
880fbc4e8c s3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requests
Before we send the secondary requests we need to remove the
old mid=>seqnum mapping and reset cli->mid and make the new
mid=>seqnum mapping "persistent".

The bug we had in cli_send_trans was this:
The first cli_send_smb() incremented cli->mid
and the secondary requests used the incremented mid,
but as cli->outbuf still had the correct mid,
we send the correct mid to the server. The real problem
was that the cli_send_smb() function stored the seqnum
under the wrong mid.

cli_send_nttrans() was totally broken and now follows the
same logic as cli_send_trans().

The good thing is that in practice the problem is unlikely to happen,
because max_xmit is large enough to avoid secondary requests.

metze
2009-03-19 13:54:22 +01:00
Stefan Metzmacher
0dfdb7b911 s3:lib/util_sock: use sys_recv() instead of sys_read() on sockets
This ways the pcap support in socket wrapper sees the received data.

metze
2009-03-19 13:54:17 +01:00
Jeremy Allison
c5394cd7cf Modify simple POSIX open test to use filenames containing a ':'
character. Should stop regressions of bug #6196.
Jeremy.
2009-03-18 21:49:32 -07:00
Jeremy Allison
28e03f2011 Allow DFS client paths to work when POSIX pathnames have been
selected (we need to path in pathname /that/look/like/this).
Jeremy.
2009-03-18 20:57:47 -07:00
Jeremy Allison
a00a9e4e2c Fix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS client
Looks like the pathname parsing for POSIX paths got
broken when the code for doing Windows streams parsing got added.
Jeremy.
2009-03-18 20:01:33 -07:00
Tim Prouty
710948c788 s3 onefs: Correctly error out when the read returns EOF
Also add some more debugging.
2009-03-18 16:51:41 -07:00
Jeremy Allison
f942cb616e Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly.
This is a really nasty one to fix as in order to successfully update the
passdb.tdb we must do the equivalent of a tdbbackup to move to the new hash
values before we do the upgrade.
Jeremy.
2009-03-18 15:44:13 -07:00
Günther Deschner
531af136f9 s3: remove POLICY_HND.
Guenther
2009-03-18 23:22:29 +01:00
Günther Deschner
7d7b1a8dcc s3-rpc_parse: remove some unused parsing code.
Guenther
2009-03-18 22:02:23 +01:00
Günther Deschner
a1256594b0 s3-spoolss: fix _spoolss_GetPrinterData printerserver handle query error code.
When _spoolss_GetPrinterData receives a query on a printserver handle for a
value that we have not stored or do not provide, we need to return
WERR_INVALID_PARAM, not WERR_BADFILE. Tested with w2k and w2k3 servers.
Found by torture test.

Guenther
2009-03-18 21:57:07 +01:00
Günther Deschner
43182fdff8 s3-spoolss: fix _spoolss_EnumPrinterDataEx error path.
When a windows clients queries the "" key, we need to make sure to return with
the appropriate error (WERR_INVALID_PARAM in that case), and not fall through
to the buffer size handling macros. Found by torture test.

Guenther
2009-03-18 21:56:38 +01:00
Günther Deschner
7a85a87edf s3-rpc_parse: remove unused BUFFER5 and UNISTR3.
Guenther
2009-03-18 20:17:01 +01:00
Günther Deschner
e966719049 s3-rpc_client: remove unused CLI_DO_RPC_WERR macro.
Guenther
2009-03-18 20:01:51 +01:00
Günther Deschner
21391f7fbe s3-smbcontrol: use correct PRINTER_NOTIFY flags.
Guenther
2009-03-18 17:46:00 +01:00
Günther Deschner
9d1ab9a001 spoolss: add my copyright.
Guenther
2009-03-18 17:18:46 +01:00
Günther Deschner
7fbdf8aae9 s3-spoolss: remove include/rpc_spoolss.h.
Guenther
2009-03-18 17:09:39 +01:00
Günther Deschner
36d0785806 s3-spoolss: remove rpc_server/srv_spoolss.c alltogether.
Guenther
2009-03-18 17:09:33 +01:00
Günther Deschner
a502392541 s3-spoolss: remove rpc_parse/parse_spoolss.c alltogether.
Good-Bye, last hand-marshalled rpc functions, rest in peace.

Guenther
2009-03-18 17:09:26 +01:00
Günther Deschner
a4e999c7e3 s3-spoolss: remove old spoolss_EnumPrinterDataEx.
Guenther
2009-03-18 17:09:18 +01:00
Günther Deschner
0cfb1aea29 s3-spoolss: use pidl for _spoolss_EnumPrinterDataEx.
Please note that this has been the last call in samba3 that was
using hand-marshalled rpc. With this commit all named pipe rpc services
in samba3 have now fully moved to pidl generated code :-)

Guenther
2009-03-18 17:07:39 +01:00
Günther Deschner
31106cdace s3-spoolss: use printer and job notify enums provided by idl.
Guenther
2009-03-18 16:47:01 +01:00
Günther Deschner
e61c9ca36d s3-spoolss: fix spoolss server after spoolss_Field changes.
Guenther
2009-03-18 16:46:49 +01:00
Günther Deschner
8b730ca1d8 s3-rpcclient: fix spoolss notify test after spoolss_Field changes.
Guenther
2009-03-18 16:46:42 +01:00
Günther Deschner
9ab8953d74 s3-rpc_parse: move prs_uint64 to rpc_parse/parse_prs.c.
Guenther
2009-03-18 16:43:28 +01:00
Günther Deschner
9fdeb7f7b3 s3-spoolss: remove custom syntax_spoolss and use the syntax defined in IDL.
Guenther
2009-03-18 14:18:42 +01:00
Günther Deschner
b0747651b9 s3-printing: use marshall/unmarshall_sec_desc_buf in sec_desc_upg_fn().
Guenther
2009-03-18 13:06:24 +01:00
Günther Deschner
ef02342562 s3-spoolss: add registry_value_to_printer_enum_value.
Guenther
2009-03-18 11:55:54 +01:00
Günther Deschner
f683341294 s3-spoolss: add SPOOLSS_BUFFER_ARRAY macro.
Guenther
2009-03-18 11:55:47 +01:00
Stefan Metzmacher
93c2057c8b s3:winbindd: accept new connections via fd events
metze
2009-03-18 07:00:42 +01:00
Stefan Metzmacher
3b8dd79f2b s3:winbindd: move non event related code out of process_loop() in the the caller
metze
2009-03-18 07:00:42 +01:00
Stefan Metzmacher
0685031ccf s3:winbindd: remove unused close_winbindd_socket() function
metze
2009-03-18 07:00:41 +01:00
Stefan Metzmacher
450252d2a1 s3:smbd: use tevent_loop_once() in the parent event loop
metze
2009-03-18 07:00:40 +01:00
Stefan Metzmacher
b659daf81f s3:printing: use tevent_loop_wait() instead of manual looping
metze
2009-03-18 07:00:39 +01:00
Stefan Metzmacher
339ea0503d s3:printing: use a fd event to monitor the pipe to the parent
metze
2009-03-18 07:00:39 +01:00
Stefan Metzmacher
445b37f4f3 s3:smbd: don't exit the parent when we have no connections
This code path can't really happen anymore, because
launchd support was removed with commit e5a951325a.
But it's confusing to have that code there...

metze
2009-03-18 07:00:38 +01:00
Günther Deschner
cd7f62ab70 s3-spoolss: use rpccli_spoolss_enumprinterdataex in ldap_printer.c.
Guenther
2009-03-18 02:37:57 +01:00
Günther Deschner
9d024d1715 s3-spoolss: remove old rpccli_spoolss_enumprinterdataex.
Guenther
2009-03-18 01:30:41 +01:00
Günther Deschner
f9712d568a s3-net: use rpccli_spoolss_enumprinterdataex.
Guenther
2009-03-18 01:30:34 +01:00
Günther Deschner
8c3ef2d900 s3-rpcclient: use rpccli_spoolss_enumprinterdataex wrapper.
Guenther
2009-03-18 01:30:26 +01:00
Günther Deschner
ab85fc78bd s3-spoolss: add rpccli_spoolss_enumprinterdataex convenience wrapper.
Guenther
2009-03-18 01:30:18 +01:00
Alexander Zagrebin
b4ae0e8d84 Missing break in conversion function prevents tdb password database update. 2009-03-17 15:38:33 -07:00
Jeremy Allison
8dd1faaa29 Remove the global "struct cm_cred_struct" and associated calls, make
callers pass in a struct user_auth_info * instead. This commit causes
smbc_set_credentials() to print out a message telling callers to use
smbc_set_credentials_with_fallback() instead, as smbc_set_credentials()
has a broken API (no SMBCCTX * pointer). No more global variables used
in the connection manager API for client dfs calls.
Jeremy.
2009-03-17 14:53:06 -07:00
Günther Deschner
153a837bd6 s3-rpcclient: say that we are displaying a REG_MULTI_SZ in display_reg_value().
Guenther
2009-03-17 22:15:20 +01:00
Steve Langasek
c6b570ce30 s3: Fix bugs in the detection of the GNU ld version (Bug #6147)
This bug results in a failure to use linker scripts to limit the set of symbols
exported by our shared libraries.

Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 22:10:23 +01:00
Volker Lendecke
b29c69f459 Fix #6130: Don't crash in winbindd_rpc lookup_groupmem() on unmapped members
Thanks to François Legal <devel@thom.fr.eu.org> for reporting this bug
2009-03-17 21:19:32 +01:00
Stefan Metzmacher
6c290586e4 s3:events: add support for immediate events
metze
2009-03-17 19:59:07 +01:00
Stefan Metzmacher
d27be1d5fa s3:events: make use of tevent_common_loop_wait()
metze
2009-03-17 19:58:58 +01:00
Günther Deschner
77d2cd1ff7 s3-spoolss: remove unused RPC_BUFFER definition.
Guenther
2009-03-17 19:07:38 +01:00
Günther Deschner
b57d5eaac0 s3-spoolss: remove (disabled) enum_all_printers_info_1_remote.
Jerry, please check. I do not understand how this could work and in
it's current form, we cannot make this even compile anymore, I'm afraid :)
I think it is safe to remove.

Guenther
2009-03-17 19:07:38 +01:00
Günther Deschner
7f90a89d60 s3-spoolss: remove PRINTER_NOTIFY_TYPE and JOB_NOTIFY_TYPE now defined in IDL.
Guenther
2009-03-17 19:07:37 +01:00
Günther Deschner
479d91ae9f s3-spoolss: remove SPL Port definitions now in IDL.
Guenther
2009-03-17 19:07:37 +01:00
Günther Deschner
9b5666aa70 s3-spoolss: remove PRIORITY defines, that were never used.
Guenther
2009-03-17 19:07:36 +01:00
Günther Deschner
4cb3cbea84 s3-spoolss: move DRIVER_X_VERSION flags into the backend, where they belong to.
Guenther
2009-03-17 19:07:34 +01:00
Günther Deschner
f19faa0e76 s3-spoolss: remove unused DEVICEMODE parsing and header.
Guenther
2009-03-17 19:07:30 +01:00
Günther Deschner
5778a36357 s3-spoolss: rename convert_printer_info_new to convert_printer_info.
Guenther
2009-03-17 18:39:55 +01:00
Günther Deschner
1e7f602f8c s3-spoolss: rename convert_nt_devicemode_new to convert_nt_devicemode.
Guenther
2009-03-17 18:39:49 +01:00
Günther Deschner
6549408a4d s3-spoolss: rename construct_dev_mode_new to construct_dev_mode.
Guenther
2009-03-17 18:39:43 +01:00
Günther Deschner
827ba0a64b s3-spoolss/registry: use libndr to push a spoolss_DeviceMode in fill_in_printer_values().
Guenther
2009-03-17 18:39:36 +01:00
Günther Deschner
96998f0358 s3-spoolss/registry: use marshall_sec_desc in fill_in_printer_values().
Guenther
2009-03-17 18:39:29 +01:00
Günther Deschner
d759f9961a s3-spoolss: move SYSTEMTIME parsing to a more generic place, as suggested.
Guenther
2009-03-17 18:39:23 +01:00
Günther Deschner
47c024fd75 s3-spoolss: rename temporary convert_devicemode_new function.
Guenther
2009-03-17 18:39:17 +01:00
Günther Deschner
28d16866ee s3-spoolss: move PRINTER_ATTRIBUTE_SAMBA to printing backend, where they belong.
Guenther
2009-03-17 18:39:10 +01:00
Günther Deschner
2d318490ea s3-spoolss: remove PRINTER_MESSAGE flags and struct, this was never used.
Guenther
2009-03-17 18:39:03 +01:00
Volker Lendecke
bce98d8c03 Convert np_read to tevent_req 2009-03-17 17:31:22 +01:00
Volker Lendecke
89543d6c78 Convert np_write to tevent_req 2009-03-17 17:31:22 +01:00
Björn Jacke
c7dba467f2 remove needless rpath stuff for default paths as early as possible
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 16:50:38 +01:00
Björn Jacke
066cbb5835 clean up lib64 linking paths the same way as lib
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 16:11:14 +01:00
Björn Jacke
da06a345cc to be portable, use options first, arguments last
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 16:09:15 +01:00
Günther Deschner
e89e739e22 s3-spoolss: remove unused init_unistr_array().
Guenther
2009-03-17 12:21:31 +01:00
Günther Deschner
4a58f263b9 s3-spoolss: remove unused get_printer_dataex().
Guenther
2009-03-17 12:21:23 +01:00
Günther Deschner
2d10548ab1 s3: remove rpc_parse/parse_buffer.c completely.
Guenther
2009-03-17 12:21:15 +01:00
Günther Deschner
338c61060b s3-spoolss: remove old spoolss_EnumPrinterKey.
Guenther
2009-03-17 12:19:03 +01:00
Günther Deschner
63d78712bc s3-spoolss: use pidl for _spoolss_EnumPrinterKey.
Guenther
2009-03-17 12:18:57 +01:00
Günther Deschner
846b93f54f s3-spoolss: remove old rpccli_spoolss_enumprinterkey wrapper.
Guenther
2009-03-17 12:18:50 +01:00
Günther Deschner
e0c50aafce s3-net: use rpccli_spoolss_enumprinterkey wrapper.
Guenther
2009-03-17 12:18:43 +01:00
Günther Deschner
bc95ec04e6 s3-rpcclient: use rpccli_spoolss_enumprinterkey wrapper.
Guenther
2009-03-17 12:18:37 +01:00
Günther Deschner
86c25b3533 s3-spoolss: add rpccli_spoolss_enumprinterkey convenience wrapper.
Guenther
2009-03-17 12:18:28 +01:00
Günther Deschner
12c6ac6a43 s3-net: fix net_spoolss_setprinterdataex.
Guenther
2009-03-17 12:14:47 +01:00
Günther Deschner
56691dfe4b s3-spoolss: cleanup _spoolss_SetPrinterDataEx a little.
Guenther
2009-03-17 12:14:35 +01:00
Günther Deschner
d189824240 s3-spoolss: cleanup _spoolss_GetPrinterDataEx a little.
Guenther
2009-03-17 12:14:28 +01:00
Günther Deschner
96ae179aa3 s3-rpcclient: fix cmd_spoolss_getprinterdataex.
Guenther
2009-03-17 12:14:19 +01:00
Günther Deschner
acf523ad7e s3-net: fix net_spoolss_setprinterdata.
Guenther
2009-03-17 12:10:43 +01:00
Günther Deschner
2a8c078357 s3-net: use rpccli_spoolss_EnumPrinterData.
Guenther
2009-03-17 12:08:29 +01:00
Günther Deschner
ead6a49218 s3-spoolss: remove spoolss_EnumPrinterData.
Guenther
2009-03-17 12:08:06 +01:00
Günther Deschner
80ecd11050 s3-spoolss: use pidl for _spoolss_EnumPrinterData.
Guenther
2009-03-17 12:07:58 +01:00
Günther Deschner
57077f43a7 s3-spoolss: remove rpccli_spoolss_enumprinterdata.
Guenther
2009-03-17 12:07:50 +01:00
Günther Deschner
3e16ede0c2 s3-rpcclient: use rpccli_spoolss_EnumPrinterData in enumdata command.
Guenther
2009-03-17 12:07:40 +01:00
Günther Deschner
4ea46d69bb s3-net: temporary disable net_spoolss_setprinterdata.
Guenther
2009-03-17 12:01:29 +01:00
Günther Deschner
628c12e53b s3-spoolss: remove old spoolss_SetPrinterData.
Guenther
2009-03-17 11:57:33 +01:00
Günther Deschner
f9871a846d s3-spoolss: use pidl for _spoolss_SetPrinterData.
Guenther
2009-03-17 11:57:26 +01:00
Günther Deschner
4234969df7 s3-spoolss: remove old rpccli_spoolss_setprinterdata wrapper.
Guenther
2009-03-17 11:57:17 +01:00
Günther Deschner
b8a3e5ea0c s3-rpcclient: use rpccli_spoolss_SetPrinterData.
Guenther
2009-03-17 11:57:08 +01:00
Günther Deschner
6dca80518d s3-spoolss: remove old spoolss_GetPrinterData.
Guenther
2009-03-17 11:49:37 +01:00
Günther Deschner
aeba6381d3 s3-spoolss: use pidl for _spoolss_GetPrinterData.
Guenther
2009-03-17 11:49:30 +01:00
Günther Deschner
d77cc43784 s3-spoolss: remove old rpccli_spoolss_getprinterdata.
Guenther
2009-03-17 11:49:23 +01:00
Günther Deschner
704220c2a2 s3-rpcclient: use rpccli_spoolss_getprinterdata.
Guenther
2009-03-17 11:49:15 +01:00
Günther Deschner
08d170abc1 s3-spoolss: add rpccli_spoolss_getprinterdata convenience wrapper.
Guenther
2009-03-17 11:49:08 +01:00
Günther Deschner
754d136c32 s3-spoolss: remove unused ADD_JOBINFO_1.
Guenther
2009-03-17 11:48:59 +01:00
Volker Lendecke
7735650f2e Fix a valgrind error
Found in "make test" -- if we can't connect at all, "cli" is uninitialized
2009-03-17 11:32:23 +01:00
Günther Deschner
6df9e1f7aa s3-spoolss: add push_spoolss_PrinterData().
Guenther
2009-03-17 10:53:43 +01:00
Günther Deschner
9a8f19672d s3-spoolss: add pull_spoolss_PrinterData().
Guenther
2009-03-17 10:53:24 +01:00
Günther Deschner
88ca3e1743 s3-spoolss: remove more unused defines.
Guenther
2009-03-17 10:37:53 +01:00
Günther Deschner
04fd767c0b s3-spoolss: remove obsolete get_a_builtin_ntform.
Guenther
2009-03-17 10:37:53 +01:00
Jeremy Allison
382d8069ad Add some appropriate const.
Jeremy.
2009-03-16 16:38:15 -07:00
Volker Lendecke
8a2b7b3e56 Remove unused async_req references from wb_reqtrans.c 2009-03-16 21:05:02 +01:00
Volker Lendecke
05b49fd4c8 Convert wb_trans to tevent_req 2009-03-16 20:45:55 +01:00
Volker Lendecke
1624b58beb Remove an unnecessary variable 2009-03-16 20:45:55 +01:00
Volker Lendecke
a58eccfee7 Make struct wb_context private to wbclient.c 2009-03-16 20:45:55 +01:00
Volker Lendecke
5c848e47cc Use tevent_wakeup_send in wb_trans 2009-03-16 20:45:55 +01:00
Volker Lendecke
20cee26a3d Convert open_socket_out_defer to tevent_req 2009-03-16 19:32:01 +01:00
Volker Lendecke
cb9effdc63 Use tevent_wakeup_send in open_socket_out_defer 2009-03-16 18:49:54 +01:00
Stefan Metzmacher
a73bd05eec s3: only define TALLOC_ZERO if needed
metze
2009-03-16 11:14:53 +01:00
Björn Jacke
586a4da5dd fix configure check for external talloc libs 2009-03-16 07:51:46 +01:00
Jelmer Vernooij
e548ec9c24 display_sec: Remove use of samba3-specific data types. 2009-03-15 17:14:25 +01:00
Jelmer Vernooij
0ea702efae configure: Add common file with minimum versions of external libraries. 2009-03-15 16:35:13 +01:00
Jelmer Vernooij
c223beee2a Merge branch 'tdr' of /home/jelmer/samba4 2009-03-15 14:57:58 +01:00
Jelmer Vernooij
74299582c4 Depend on newer talloc for Samba 4 in the merged build as well. 2009-03-15 14:55:12 +01:00
Jelmer Vernooij
251bf8aab5 Merge branch 'checktalloc' of /home/jelmer/samba4 2009-03-15 13:52:01 +01:00
Volker Lendecke
8afd835cea Fix a malloc/talloc mismatch when cli_initialise() fails 2009-03-15 12:01:20 +01:00
Volker Lendecke
5fa4cf283f Add queue argument to wb_resp_write 2009-03-15 11:26:22 +01:00
Jelmer Vernooij
d56524ac04 Merge branch 'checktalloc' into tdr 2009-03-14 23:02:34 +01:00
Jelmer Vernooij
a3d2b77ddd Properly strip /usr/lib and /usr/include for the merged build. 2009-03-14 23:01:57 +01:00
Jelmer Vernooij
56ad85c0ea Fix build of tdr from merged build. 2009-03-14 22:57:02 +01:00
Jelmer Vernooij
acb6018091 Fix comment about shell in Makefile. 2009-03-14 21:08:09 +01:00
Jelmer Vernooij
0c72c503fa Fix fallback if system doesn't provide talloc. 2009-03-14 21:06:41 +01:00
Jelmer Vernooij
61447dfbbf Allow using external libtalloc. 2009-03-14 20:56:26 +01:00
Volker Lendecke
8174a90e43 Fix #3954 2009-03-14 12:40:58 +01:00
Tim Prouty
c3227b6233 s3: Don't return in a void funtion 2009-03-13 22:02:53 -07:00
Jeremy Allison
f48a345e4a Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
password talloc'ed strings within the cli_struct.
Jeremy.
2009-03-13 17:49:24 -07:00
Dave Richards
5df46fa35b s3 OneFS: Add kernel strict locking support 2009-03-13 14:21:40 -07:00
Dave Richards
1fcc11ff25 s3: Add strict lock/unlock calls to the vfs layer to replace is_locked 2009-03-13 14:16:55 -07:00
Stefan Metzmacher
1355dc2fd3 s4:build: require tevent 0.9.4
metze
2009-03-13 15:50:23 +01:00
Günther Deschner
7a41f299fc s3-spoolss: remove more unused marshalling code.
Guenther
2009-03-13 09:25:26 +01:00
Günther Deschner
0068abe716 s3-spoolss: remove some unused functions.
Guenther
2009-03-13 09:25:26 +01:00
Günther Deschner
348c4b6baa s3-spoolss: remove old spoolss_GetPrinter.
Guenther
2009-03-13 09:25:26 +01:00
Günther Deschner
1ceb298ed6 s3-spoolss: use pidl for _spoolss_GetPrinter.
Guenther
2009-03-13 09:25:25 +01:00
Günther Deschner
aaae578d0e s3-rpcclient: pure cosmetics for cmd_spoolss_getdriver.
Guenther
2009-03-13 09:25:25 +01:00
Günther Deschner
5d76a12cf5 s3-rpcclient: pure cosmetics for cmd_spoolss_getprinter.
Guenther
2009-03-13 09:25:25 +01:00
Günther Deschner
0658a402d7 s3-rpcclient: pure cosmetics for cmd_spoolss_enum_ports.
Guenther
2009-03-13 09:25:25 +01:00
Günther Deschner
7e753b28ea s3-spoolss: use snum_is_shared_printer (allows to make code a little easier to
read).

Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
0174d4d3b2 s3-spoolss: add snum_is_shared_printer fn.
Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
a1a02bfac2 s3-spoolss: remove old spoolss_EnumPrinters.
Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
f6f703f16e s3-spoolss: use pidl for _spoolss_EnumPrinters.
Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
16438e3a93 s3-spoolss: remove old enumprinters wrapper.
Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
f14d4267c9 s3-net: use rpccli_spoolss_enumprinters wrapper.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
0e66a244d3 s3-rpcclient: use rpccli_spoolss_enumprinters wrapper.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
9397ae5114 s3-spoolss: add rpccli_spoolss_enumprinters convenience wrapper.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
1b3e068e83 s3-spoolss: remove old spoolss_GetPrinterDriver2.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
8df8abb890 s3-spoolss: use pidl for _spoolss_GetPrinterDriver2.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
058f47d08d s3-spoolss: remove old leftover driver print functions.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
a540815b5f s3-spoolss: remove old spoolss_EnumPrinterDrivers.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
d6e2ef51ec s3-spoolss: use pidl for _spoolss_EnumPrinterDrivers.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
6928c5ce47 s3-spoolss: remove old rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
7876d28d9a s3-net: use rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
915c593926 s3-rpcclient: use rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
5f46554228 s3-spoolss: add rpccli_spoolss_enumprinterdrivers convenience wrapper.
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
e605e4503c s3-spoolss: remove old spoolss_GetJob and spoolss_EnumJob.
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
9b143e6de5 s3-spoolss: use pidl for _spoolss_GetJob.
Guenther
2009-03-13 09:25:21 +01:00
Günther Deschner
b80e3e5724 s3-spoolss: use pidl for _spoolss_EnumJobs.
Guenther
2009-03-13 09:25:21 +01:00
Günther Deschner
661e81d48c s3-spoolss: add construct_dev_mode_new.
Guenther
2009-03-13 09:25:21 +01:00
Günther Deschner
3bd1aabcfe s3-spoolss: remove old rpccli_spoolss_enumjobs wrapper.
Guenther
2009-03-13 09:25:21 +01:00
Günther Deschner
d279e76cd2 s3-rpcclient: use rpccli_spoolss_enumjobs wrapper in enumjobs command.
Guenther
2009-03-13 09:25:20 +01:00
Günther Deschner
80284124ba s3-spoolss: add rpccli_spoolss_enumjobs convenience wrapper.
Guenther
2009-03-13 09:25:20 +01:00
Günther Deschner
427987d2bf s3-spoolss: use macros for _spoolss_GetForm and split out level 1 get.
Guenther
2009-03-13 09:25:20 +01:00
Günther Deschner
635b8070b6 s3-spoolss: use macros for _spoolss_EnumForms and split out level 1 enum.
Guenther
2009-03-13 09:25:20 +01:00
Günther Deschner
b2b3cfbe31 s3-spoolss: use macros for _spoolss_GetPrintProcessorDirectory.
Guenther
2009-03-13 09:25:20 +01:00
Günther Deschner
75d88f460f s3-spoolss: use macros for _spoolss_GetPrinterDriverDirectory.
Guenther
2009-03-13 09:25:19 +01:00
Günther Deschner
dfe71b05a7 s3-spoolss: use macros for _spoolss_EnumMonitors.
Guenther
2009-03-13 09:25:19 +01:00
Günther Deschner
8d6c719a4b s3-spoolss: use macros for _spoolss_EnumPrintProcDataTypes.
Guenther
2009-03-13 09:25:19 +01:00
Günther Deschner
c6e9dc11e5 s3-spoolss: use macros for _spoolss_EnumPorts.
Guenther
2009-03-13 09:25:19 +01:00
Günther Deschner
facf66b40c s3-spoolss: use macros for _spoolss_EnumPrintProcessors.
Guenther
2009-03-13 09:25:19 +01:00
Günther Deschner
84b38c8598 s3-spoolss: add macros from s4 spoolss server.
Guenther
2009-03-13 09:25:19 +01:00
Jeremy Allison
e5136e9849 Remove the static "struct client_connection" mess which is part of
the problem that stops libsmbclient being thread safe. Subsidiary
DFS connections are now hung off a list inside the cli_state struct.
Much more to do in order to get libsmbclient to thread safety, but
this is a good start.
Jeremy.
2009-03-12 17:59:24 -07:00
Tim Prouty
bace42d586 s3 torture: Fix unitialized variable to avoid closing a random fnum 2009-03-12 16:51:20 -07:00
Dan Sledz
b6616ca8dc s3 pdb_wbc_sam: LookupRids should return sAMAccountName, not NT4 names
Also fix an incorrect TALLOC_FREE
2009-03-12 13:00:47 -07:00
Jeremy Allison
5c63388f63 Fix bug #6186 - map readonly does not work
Jeremy.
2009-03-12 10:57:31 -07:00
Günther Deschner
4b57f6dd34 s3-spoolss: make jobname a const char * in print_job_start().
Guenther
2009-03-12 14:47:31 +01:00
Stefan Metzmacher
bd0f14c1d7 s3:events: pass __location__ to event_loop_*()
metze
2009-03-12 12:12:40 +01:00
Stefan Metzmacher
2fdbafbf54 Revert "s3:libsmb: add an option to cli_push to let the caller provide the buffers"
This reverts commit 9579a6f193.

It's confusing to have a boolean to alter the behavior of cli_push
and as the new feature isn't used yet I revert it.

We can readd a extra function later.

metze
2009-03-12 11:03:50 +01:00
Volker Lendecke
a0a9c5d170 Fix #6167: winbindd -n should disable the winbind idmap cache 2009-03-12 10:20:08 +01:00
Volker Lendecke
b17f9e15ef Make opt_nocache static to winbindd.c 2009-03-12 10:20:08 +01:00
Jeremy Allison
c260bfa5d7 Add simple POSIX open, mkdir and rmdir test.
Jeremy.
2009-03-11 14:28:47 -07:00
Tim Prouty
2bfd2c58f8 s3 torture: Simple warning fix 2009-03-11 13:09:24 -07:00
Björn Jacke
e6777e5266 fix configure check by avoiding main(main(...))
AC_TRY_LINK automatically wraps a main(). Double main() causes this test to fail
on some compilers.
2009-03-11 12:08:51 -07:00
Volker Lendecke
3d280639c4 Add a vfs_preopen module to hide fs latencies 2009-03-10 18:11:56 +01:00
Stefan Metzmacher
9579a6f193 s3:libsmb: add an option to cli_push to let the caller provide the buffers
metze
2009-03-10 14:07:56 +01:00
Stefan Metzmacher
c2993f74af s3:libsmb: only treat a return 0 as end of file
metze
2009-03-10 12:46:16 +01:00
Stefan Metzmacher
7fc8086e11 s3:libsmb: fix a lot of cli_push() bugs
There were the following problems:
1.) if window_size was a multiple of the chunk_size,
    we silently dropped the last truncated chunk.
2.) if window_size was 0 pushed only the first chunk
    to the server and silently dropped the rest.
3.) we had only transferred state->num_reqs writes,
    even if there would be more data to send.

metze
2009-03-10 11:03:15 +01:00
Andrew Tridgell
6f1f9f6d8d fixed a bug in message handling for code the change notify code
The change notify code registered a separate message handler for each
tree connect. This registration uses the global messaging context.

The messaging code would consider a 2nd registration for the same
messaging type as being an 'update' of the handler, rather than a new
handler. It also would only call the first handler in the linked list
for a given message type when dispatching messages.

This patch changes the messaging code to allow for multiple
registrations of the same message type, and allow for multiple calls
to different messaging handler for one incoming message.

This fixes the problem with the test_notify_tcon() test that I
recently committed to the S4 smbtorture
2009-03-10 16:45:45 +11:00
Jelmer Vernooij
3b181564c5 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-03-09 21:42:13 +01:00
Björn Jacke
0d2de5380d use LIB_PATH_VAR in selftest.sh if we have it
if we have LIB_PATH_VAR we should use it, otherwise we'll unobtrusively
complain about not having it and use the most likely LD_LIBRARY_PATH.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-03-09 18:31:11 +01:00
Volker Lendecke
6b1170c9d6 Fix a typo 2009-03-09 16:13:31 +01:00
Stefan Metzmacher
1410490fe7 s3:lib: interfaces.c isn't used in the configure tests anymore
libreplace always provides the getifaddr() function.

This fixes the build on sles8.

metze
2009-03-09 12:49:13 +01:00
Björn Jacke
c3691b839c fix "dubious escape" warning of Studio compiler 2009-03-09 10:47:30 +01:00