Björn Baumbach
d409c0b97b
s3-utils/net_rpc_printer.c: fix error message
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jul 24 19:01:47 CEST 2011 on sn-devel-104
2011-07-24 19:01:47 +02:00
Björn Baumbach
7302277e43
s3-utils/net_rpc.c: replace cli_query_secdesc_old()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:31:12 +02:00
Björn Baumbach
c436a7d812
s3-utils/net_rpc_printer.c: replace cli_query_secdesc_old()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:31:07 +02:00
Björn Baumbach
eacd555f70
s3-utils/smbcacls.c: replace cli_query_secdesc_old()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:31:02 +02:00
Björn Baumbach
768646c9a2
s3-libsmb: rename cli_query_secdesc() to cli_query_secdesc_old()
...
Will introduce new cli_query_secdesc() function
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:56 +02:00
Björn Baumbach
ebc53c3575
s3-utils/net_rpc_printer.c: print more info on write error
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:54 +02:00
Björn Baumbach
fd7631c633
s3-utils/net_rpc_printer.c: return on read error in net_copy_file()
...
replace cli_read_old() with cli_read()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-23 09:18:46 +02:00
Stefan Metzmacher
e0a38c3a36
s3:net_util: use server_name instead of cli->desthost
...
They should be the same.
metze
2011-07-22 17:06:10 +02:00
Stefan Metzmacher
4fb03b4edd
s3:net_rpc_registry: use pipe_hnd->desthost instead of cli->desthost
...
metze
2011-07-22 17:06:10 +02:00
Stefan Metzmacher
1f1ca59a04
s3:net_rpc_printer: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:10 +02:00
Stefan Metzmacher
419eb293f7
s3:net_rpc_join: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:10 +02:00
Stefan Metzmacher
7ca20eadf4
s3:net_rpc_join: use pipe_hnd->desthost instead of cli->desthost
...
metze
2011-07-22 17:06:10 +02:00
Stefan Metzmacher
27c38dfb44
s3:net_rpc: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:10 +02:00
Stefan Metzmacher
f88723ab27
s3:net_rpc: use netr->desthost instead of cli->desthost
...
metze
2011-07-22 17:06:10 +02:00
Stefan Metzmacher
3d675f1219
s3:net_rap: make use of cli_state_remote_name()
...
metze
2011-07-22 17:06:10 +02:00
Stefan Metzmacher
cc4b2a6dc3
s3:net_rpc_printer: make use of cli_state_remote_sockaddr()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
9b40092cbd
s3:net_rpc: make use of cli_state_remote_sockaddr()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
a46b265563
s3:net_rpc_join: make use of cli_state_remote_sockaddr()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
f0c1b5dad2
s3:net_rpc_join: pass const sockaddr_storage to net_rpc_join_ok()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
e91797689b
s3:net_util: pass const sockaddr_storage to net_make_ipc_connection_ex()
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
f7cd20d43c
s3:net_util: add some const to sockaddr_storage
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
552164c7bc
s3:smbcquotas: pass down NULL instead of a zero sockaddr_storage
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
d60a1b4bb0
s3:smbcacls: pass down NULL instead of a zero sockaddr_storage
...
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
6cc61d6341
s3:net_time: expect const sockaddr_storage in cli_servertime()
...
We don't want to modify the value.
metze
2011-07-22 17:06:08 +02:00
Stefan Metzmacher
5bd80b20a1
s3:smbtree: try to fix completely broken logic in get_workgroups()
...
metze
2011-07-22 17:06:07 +02:00
Christian Ambach
410c4deefe
s3:utils fix a compiler warning
...
fix a compiler warning about missing prototypes
2011-07-21 14:57:10 +02:00
Christian Ambach
9779af85d6
s3:utils/net_afs fix compiler warnings
2011-07-21 14:55:01 +02:00
Christian Ambach
3b231e6a12
s3:lib/afs fix the build with --with-fake-kaserver
...
This fixes one piece of Bug #8263
2011-07-21 14:51:28 +02:00
Björn Baumbach
9b168e128a
s3-libsmb: replace cli_read() with cli_read_old()
...
Will introduce new cli_read() function.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2011-07-20 22:09:25 +02:00
Stefan Metzmacher
8f41e54d53
s3:libsmb: move cli->cnum to cli->smb1.tid and hide it behind cli_state_[g|s]et_tid()
...
metze
2011-07-20 15:56:27 +02:00
Günther Deschner
3af3e4843f
lsa: rename auth info argument in lsa_CreateTrustedDomainEx2
...
Guenther
2011-07-15 17:55:20 +02:00
Volker Lendecke
70da27838b
s3: Avoid leaking http_timestring in print_registry_key
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jul 15 09:44:05 CEST 2011 on sn-devel-104
2011-07-15 09:44:05 +02:00
Andrew Bartlett
fad3c763f7
s3-param Remove lp_set_passdb_backend()
2011-07-08 11:23:23 +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
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
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
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
Volker Lendecke
26782fbbf3
s3: make cli_resolve_path return NTSTATUS
...
This looks larger than it is. No parameters needed changing.
2011-07-06 08:35:27 +02:00
Günther Deschner
ff94539f27
s3-printing: open up a winreg pipe handle for the migration code.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jul 4 15:06:41 CEST 2011 on sn-devel-104
2011-07-04 15:06:41 +02:00
Andrew Bartlett
d4ef70a764
param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()
...
Jermey started this in 1997 with 0aa493cc03
(avoiding the duplicate function makes it easier to generate the
struct loadparm_globals).
Andrew Bartlett
2011-07-02 12:31:34 +10:00
Günther Deschner
bafd7212eb
s3-net: use printing_migrate library, and eliminate duplicate code.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jul 1 17:57:09 CEST 2011 on sn-devel-104
2011-07-01 17:57:09 +02:00
David Disseldorp
a36ce0735f
s3-printing: fill devicemode size in migrate_printer()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2011-06-30 09:40:50 +02:00
Andrew Bartlett
489f528857
param: Merge param headers into lib/param/loadparm.h
...
This defines a common table format, so we can in future define a
common table.
Andrew Bartlett
2011-06-29 15:44:09 +10:00
Andrew Bartlett
4d2c56c4b1
s3-net: Bind our gettext results to 'unix charset'
...
This ensures that the translations and any embedded strings are in the
same charset. It won't be the one from the user's locale (we no
longer auto-detect that), but it will be self-consistent.
Thanks to Steve Langasek for pointing this function out!
Andrew Bartlett
2011-06-23 13:47:27 +02:00
Rusty Russell
d925b327f4
tdb_compat: Higher level API fixes.
...
My previous patches fixed up all direct TDB callers, but there are a
few utility functions and the db_context functions which are still
using the old -1 / 0 return codes.
It's clearer to fix up all the callers of these too, so everywhere is
consistent: non-zero means an error.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:35 +02:00
Rusty Russell
3a8faefd66
tdb_compat: use tdb_firstkey_compat/tdb_nextkey_compat everywhere.
...
Note that tdb_nextkey_compat frees the old key for us.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:35 +02:00
Rusty Russell
5a7874e119
tdb_traverse/tdb_traverse_read: check returns for negative, not -1.
...
TDB2 returns a negative error number on failure. This is compatible
if we always check for < 0 instead of == -1.
Also, there's no tdb_traverse_read in TDB2: we don't try to make
traverse reliable any more, so there are no write locks anyway.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:35 +02:00
Rusty Russell
058c4f8492
tdb_fetch_compat: use instead of tdb_fetch.
...
This is a noop for tdb1.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:35 +02:00
Stefan Metzmacher
5d736d8777
s3:utils/net_*registry: use c99 initializers which are supported by old gcc 2.95 compilers (bug #8226 )
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun 15 03:48:41 CEST 2011 on sn-devel-104
2011-06-15 03:48:41 +02:00
Christian Ambach
7639684f27
s3-utils: fix crash in net cache get
...
free the blob correctly
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Tue Jun 14 12:01:59 CEST 2011 on sn-devel-104
2011-06-14 12:01:59 +02:00