Andrew Bartlett
3eb1023d52
selftest Use die() less often, as it fails to allow cleanup
2011-05-08 10:56:27 +02:00
Andrew Bartlett
6990536000
auth: allow auth_common.h to be included multiple times without error
2011-05-08 10:56:27 +02:00
Andrew Bartlett
ea0ac9cdfc
s4-auth Rename auth -> auth4 to avoid conflict with s3 auth
2011-05-08 10:56:26 +02:00
Andrew Bartlett
1969aa8eac
s4-ntvfs: Rename brl_*() -> brlock_*() to avoid conflict with brlock_init in s3
2011-05-08 10:56:26 +02:00
Andrew Tridgell
5c3e985fb5
s4-auth: remove unused prototype
2011-05-08 10:56:26 +02:00
Volker Lendecke
622faa2687
s3: Fix including libsmb/proto.h without prior ads.h
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat May 7 11:38:11 CEST 2011 on sn-devel-104
2011-05-07 11:38:11 +02:00
Gordon Ross
ac25835ab7
Fix Samba3 on OpenIndiana.
...
I'd like Samba to use the native OpenLDAP and MIT Kerberos libs.
Attached are some patches to do that. (relative to git master)
It does not build for me without these.
(OpenIndiana is an off-shoot of OpenSolaris See http://www.openindiana.org )
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat May 7 02:20:14 CEST 2011 on sn-devel-104
2011-05-07 02:20:14 +02:00
Jeremy Allison
f7b3909103
A couple more off-by-one calculations with strlcpy.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 6 18:39:17 CEST 2011 on sn-devel-104
2011-05-06 18:39:17 +02:00
Günther Deschner
fa8490aa4c
s4-smbd: fix randseed_init() usage.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May 6 17:37:11 CEST 2011 on sn-devel-104
2011-05-06 17:37:11 +02:00
Günther Deschner
1e208a7057
s3-includes: no need to globally include libads/ads_status.h.
...
Guenther
2011-05-06 16:37:22 +02:00
Günther Deschner
675573d54b
s3-includes: finally only include client.h when libsmb is used.
...
Guenther
2011-05-06 16:37:22 +02:00
Günther Deschner
27022587e3
s3-libsmb: move protos to libsmb/proto.h
...
Guenther
2011-05-06 16:37:18 +02:00
Günther Deschner
41134f7f4b
s3-proto: remove some duplicate prototypes.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May 6 16:21:08 CEST 2011 on sn-devel-104
2011-05-06 16:21:08 +02:00
Günther Deschner
ab8219a6f3
s3-spoolss: remove unused struct in construct_notify_printer_info().
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri May 6 12:07:17 CEST 2011 on sn-devel-104
2011-05-06 12:07:17 +02:00
Günther Deschner
03b9a9938b
libcli/security: fix build warning, cr_descr_log_acl() is not used currently.
...
Guenther
2011-05-06 10:48:11 +02:00
Günther Deschner
73c31f044e
tdb: fix a build warning.
...
Guenther
2011-05-06 10:48:11 +02:00
Günther Deschner
d8cfca3a9b
s3: only include tdb headers where needed.
...
Guenther
2011-05-06 10:48:10 +02:00
Andrew Bartlett
8aae59a277
lib/util don't use enum protocol_types in ms_fnmatch_protocol
...
This makes it easier to compile this in the top level with s3 and s4
headers.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri May 6 08:50:52 CEST 2011 on sn-devel-104
2011-05-06 08:50:52 +02:00
Andrew Bartlett
e3b858496f
libcli/smb Move cifs posix helper functions and headers in common
...
unix_perms_to_wire() was a duplicate symbol in the top level build.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
8f1810362d
lib/util Use lib/util/ms_fnmatch.c in common for gen_fnmatch()
...
gen_fnmatch was a duplicate symbol in the top level build.
gen_fnmatch() used for simple non-CIFS pattern matching, so selecting
the lib/util implementation should not be a concern.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
3892112e7b
lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbol
...
This verison of the function takes a protcol as argument to determine
matching rules.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
cad704e836
errors: Remove unused unix_to_werror()
2011-05-06 07:51:24 +02:00
Andrew Bartlett
db74cad1c6
libcli/util Move NTSTATUS table to the top level
2011-05-06 07:51:24 +02:00
Andrew Bartlett
344eb08ee4
nterr: Add mem_ctx for return string from get_nt_error_c_code()
...
It is clearer to avoid the implicit return on talloc_tos()
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
c83aed2568
s3-smbd ntstatus_to_dos() pulls the DOS error codes out internally
...
This means we don't need to duplicate that logic here.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
f1ec28827f
libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top level
...
This takes the Samba4 version, with the NT_STATUS_IS_DOS() check.
This will be used in smbd/error.c shortly.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
2b0de5b5ca
errors: Merge source3/ werror_to_ntstatus() code to source4/
2011-05-06 07:51:24 +02:00
Andrew Bartlett
865a937671
errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.
...
They are now identical
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
fa289e8982
s3-lib Remove unused dos error codes from errmap_unix
...
This also makes unix_nt_errmap private to errmap_unix.c and errormap.c
so the tables themselves cannot be duplicate symbols until merged.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
1475013963
lib/util Move source3 tdb_wrap_open() into the common code.
...
This #if _SAMBA_BUILD == 3 is very unfortunate, as it means that in
the top level build, these options are not available for these
databases. However, having two different tdb_wrap lists is a worse
fate, so this will do for now.
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Tridgell
f455772b99
s3-winbind: another strlcpy()/fstring fix
...
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri May 6 07:50:33 CEST 2011 on sn-devel-104
2011-05-06 07:50:33 +02:00
Andrew Tridgell
2fc8ad8887
s3-auth: fixed bug with usernames longer than sizeof(char *)
...
using sizeof(user) when user is "fstring user" as a C parameter
actually returns sizeof(char *), which means that long usernames
aren't allowed.
Jeremy, you need a longer username :-)
Cheers, Tridge
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-05-06 14:49:47 +10:00
Jeremy Allison
153a091d9c
Fix const in smbtorture.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 6 02:45:00 CEST 2011 on sn-devel-104
2011-05-06 02:45:00 +02:00
Jeremy Allison
a5a84415e2
Fix broken interface to set_namearray() - don't modify incoming string.
2011-05-06 01:44:07 +02:00
Jeremy Allison
bb00bdbe8f
Fixup use of const.
2011-05-06 01:44:07 +02:00
Jeremy Allison
7d6ebe0de7
More const fixes. Remove CONST_DISCARD.
2011-05-06 01:44:07 +02:00
Jeremy Allison
76f5a39c7f
Change the char * pointers in the struct to const char * (which is how they're treated).
2011-05-06 01:44:07 +02:00
Jeremy Allison
9eee6e2fd2
More const fixes... getting near the end now.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 6 00:57:00 CEST 2011 on sn-devel-104
2011-05-06 00:57:00 +02:00
Jeremy Allison
f85e095dd2
More simple const fixups.
2011-05-05 23:56:08 +02:00
Jeremy Allison
02af307585
More simple const fixes.
2011-05-05 23:56:07 +02:00
Jeremy Allison
e131c94ac1
More const fixes for compiler warnings from the waf build.
2011-05-05 23:56:07 +02:00
Jeremy Allison
38492b16fe
Fixup build without --with-aio.
...
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu May 5 21:38:23 CEST 2011 on sn-devel-104
2011-05-05 21:38:23 +02:00
Jeremy Allison
9efea96d16
More const compiler warning fixes.
2011-05-05 11:29:01 -07:00
Jeremy Allison
4f41be356a
Fix many const compiler warnings.
2011-05-05 10:41:59 -07:00
Jeremy Allison
10a628b6e1
Don't reuse a non-const pointer when manipulating const.
2011-05-05 10:41:40 -07:00
Volker Lendecke
1c407da7c3
s3: Fix a typo
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu May 5 16:10:35 CEST 2011 on sn-devel-104
2011-05-05 16:10:35 +02:00
Volker Lendecke
82b9fa3a19
s3: Fix dup_smb2_vec3
...
Metze, Jeremy, please check!
Thanks,
Volker
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu May 5 13:39:40 CEST 2011 on sn-devel-104
2011-05-05 13:39:40 +02:00
Andrew Tridgell
323c744571
s4-auth: removed the password combinations code in auth_unix
...
this code never did anything due to a typo, and was untested. We
should not be inluding a password cracker in Samba anyway.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu May 5 07:00:14 CEST 2011 on sn-devel-104
2011-05-05 07:00:14 +02:00
Günther Deschner
8563d5c384
s3-rpc_server: run minimal_includes.pl.
...
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu May 5 03:04:38 CEST 2011 on sn-devel-104
2011-05-05 03:04:38 +02:00
Günther Deschner
bd92826aa8
s3-rpc_client: run minimal_includes.pl.
...
Guenther
2011-05-05 02:05:27 +02:00