Stefan Metzmacher
30574a73d8
s3:libsmb: remove unused clistr_pull_fn()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
fc992e7029
s3:torture/scanner: use trans2_bytes_push_str() in scan_nttrans()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
02171ee0f0
s3:torture/scanner: use trans2_bytes_push_str() in scan_trans2()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
072a27fd9f
s3:libsmb: use trans2_bytes_push_str() in cli_tcon_andx_create() for the plaintext password
...
This makes sure we push the string always in DOS charset.
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
5b1ac1bcc3
s3:libsmb: use trans2_bytes_push_str() in cli_set_ea_path()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
cea9245909
s3:libsmb: use trans2_bytes_push_str() in cli_dfs_get_referral()
...
metze
2011-07-07 19:16:28 +02:00
Stefan Metzmacher
2453164317
s3:libsmb: use a talloc_stackframe in cli_dfs_get_referral()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
b77becdb55
s3:libsmb: use trans2_bytes_push_str/bytes() in cli_list_trans_*()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
d921200e75
s3:libsmb: use clistr_pull_talloc() for short_name in interpret_long_filename()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
af66c64e95
s3:libsmb: interpret_long_filename() short_name is always UNICODE
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
eaeeb5ce0e
s3:libsmb: add trans2_bytes_push_bytes()
...
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
ed99caded2
s3:libsmb: make trans2_bytes_push_str() non-static
...
We should use this and get rid of clistr_push().
metze
2011-07-07 19:16:27 +02:00
Stefan Metzmacher
9a350ca3b6
s3:utils: avoid cli_nt_error()/cli_errstr() if we already have the status
...
metze
2011-07-07 19:16:27 +02:00
David Disseldorp
e5955903fd
s3-printing: remove tdb migration invalid printer name checks
...
WERR_INVALID_PRINTER_NAME only needed to be handled when printing tdb
migration used spoolss, with winreg such errors are no longer possible.
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Jul 7 19:15:34 CEST 2011 on sn-devel-104
2011-07-07 19:15:34 +02:00
Günther Deschner
cfc3b6e5f7
s3-printing: make sure to first migrate the printers then the security descriptor.
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:02 +02:00
David Disseldorp
5dd8185d85
s3-printing: fill info2_mask in printer migration
...
Also fix possibly uninitialised status return from
printing_tdb_migrate_printer().
2011-07-07 18:06:02 +02:00
Günther Deschner
57bbb32c64
s3-printing: remove spoolss pipe from migration library, only using winreg finally.
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:02 +02:00
Günther Deschner
8f3d5f5333
s3-printing: use winreg interface for migration, instead of spoolss.
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:02 +02:00
Günther Deschner
72b1f8be56
s3-printing: safe a ton of roundtrips by reusing existing winreg binding_handles.
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:02 +02:00
Günther Deschner
0a1ec73b96
s3-printing: use winreg_internal functions.
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00
Günther Deschner
ada5380d20
s3-printing: add winreg_internal functions.
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00
Günther Deschner
a762eda519
s3-printing: add winreg_printer_binding_handle and remove most of srv_spoolss_util.c.
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00
Günther Deschner
f2be8378b9
s3-printing: add rpc_client/cli_winreg_spoolss.c
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00
Günther Deschner
a0fc64a88e
s3-waf: make LIBCLI_SPOOLSS a shared library
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00
Günther Deschner
43cf3a28dc
s3-printing: move spoolss_create_default_devmode/secdesc to init_spoolss.h
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00
Günther Deschner
74e416031b
s3-printing: move driver_info_ctr_to_info8 to init_spoolss.h
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00
Günther Deschner
dd5375b4a1
s3-printing: move os2 related functions to printing/nt_printing_os2.c.
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00
Volker Lendecke
eba5d0b641
s3: Remove a use of cli_errstr
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jul 7 18:04:26 CEST 2011 on sn-devel-104
2011-07-07 18:04:26 +02:00
Andreas Schneider
1caa7a852c
s3-waf: Fix linking bugs causing segfaults.
...
As auth_util.c is linked several times the static variables have
different address on different calls. This leads to segfaults.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Jul 7 16:50:05 CEST 2011 on sn-devel-104
2011-07-07 16:50:05 +02:00
Gregor Beck
cd83c1d958
s3:testparm: avoid spurious warnings about dos mode mapping and create mask if store dos attributes is set
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jul 7 12:49:01 CEST 2011 on sn-devel-104
2011-07-07 12:49:00 +02:00
Kai Blin
749d022a0c
s4 provision: Add some of the AD-specific DNS records to the directory
...
Signed-off-by: Kai Blin <kai@samba.org>
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Thu Jul 7 02:29:53 CEST 2011 on sn-devel-104
2011-07-07 02:29:53 +02:00
Kai Blin
a8d3bdb48d
s4 provision: split up DNS provisioning into generic and samba-specific ldifs
...
Signed-off-by: Kai Blin <kai@samba.org>
2011-07-07 00:10:27 +02:00
Stefan Metzmacher
0b8184d9d4
s4:torture/smb2: s/smb2cli_unlock/test_smb2_unlock
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul 6 19:07:42 CEST 2011 on sn-devel-104
2011-07-06 19:07:42 +02:00
Stefan Metzmacher
43c865a38e
s4:torture/smb2: s/smb2cli_lock/test_smb2_lock
...
metze
2011-07-06 17:54:47 +02:00
Stefan Metzmacher
8a2290667c
s3:libsmb: use clistr_pull_talloc() in cli_qfilename()
...
metze
2011-07-06 17:18:14 +02:00
Stefan Metzmacher
a1df729f7b
s3:libsmb: let cli_qfileinfo[_recv]() return recv_flags2
...
metze
2011-07-06 17:18:13 +02:00
Stefan Metzmacher
2b0cc3c412
s3:libsmb: use clistr_pull_talloc() in cli_get_fs_volume_info()
...
metze
2011-07-06 17:18:13 +02:00
Stefan Metzmacher
27736bed83
s3:libsmb: the SMB_QUERY_FS_VOLUME_INFO response needs at least 18 data bytes
...
metze
2011-07-06 17:18:13 +02:00
Stefan Metzmacher
bc98d004c9
s3:libsmb: don't use cli->inbuf in cli_dfs_get_referral()
...
The rdata buffer returned by cli_trans() doesn't belong to
cli->inbuf, so don't use it.
metze
2011-07-06 17:18:13 +02:00
Stefan Metzmacher
af61f6fce6
s3:libsmb: fix error handling in cli_dfs_get_referral()
...
We should not return NT_STATUS_OK on error.
metze
2011-07-06 17:18:12 +02:00
Stefan Metzmacher
f9601a9180
s3:sharesec: return an error if get_share_security() returns NULL
...
This indicates an error, as it uses get_share_security_default()
if no security descriptor is configured.
Jeremy, please check.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul 6 15:40:23 CEST 2011 on sn-devel-104
2011-07-06 15:40:23 +02:00
Michael Adam
93ad34c4ad
s3:test: catch more errors in test_access_check() in the smbclient_s3 test
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Jul 6 14:07:13 CEST 2011 on sn-devel-104
2011-07-06 14:07:13 +02:00
Michael Adam
4af8615da8
s3:registry: update copyright for the registry db implementation
2011-07-06 12:55:25 +02:00
Michael Adam
f5bc4de1cd
examples/VFS: try to fix the build on openbsd, adding alternative spellings of autoconf/header
...
The host "samba-amd64" on the build farm running openbsd 4.8 broke.
Taking over the additional spellings of autoconf and autoheader from
the source3/autogen.sh script should fix it.
2011-07-06 12:55:25 +02:00
Stefan Metzmacher
310fff02a6
s3:sharesec: also initialize pgranted if get_share_security() returns NULL
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jul 6 12:54:30 CEST 2011 on sn-devel-104
2011-07-06 12:54:30 +02:00
Volker Lendecke
2dfc898d1a
s3: Follow the TALLOC_FREE convention in source3
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jul 6 11:01:05 CEST 2011 on sn-devel-104
2011-07-06 11:01:05 +02:00
Volker Lendecke
6fcb3bbdae
s3: Fix Coverity ID 2586 -- NO_EFFECT
...
tsocket_address_bsd_sockaddr returns ssize_t, and on some systems socklen_t is
unsigned. So (len < 0) could never have turned true.
Volker
2011-07-06 09:50:02 +02:00
Volker Lendecke
7d96a4594b
s3: Remove cli_errstr from cmd_posix_open
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jul 6 09:45:11 CEST 2011 on sn-devel-104
2011-07-06 09:45:11 +02:00
Volker Lendecke
c33a5a659c
s3: Fix error logic in posix_open
2011-07-06 08:35:27 +02:00
Volker Lendecke
c1fdec7efc
s3: Remove a few uses of cli_errstr
2011-07-06 08:35:27 +02:00