nivanova/samba-autobuild/.git
12 years agos3-waf: Link smbstatus only against needed subsystems.
Andreas Schneider [Tue, 24 Jan 2012 12:46:11 +0000 (13:46 +0100)]
s3-waf: Link smbstatus only against needed subsystems.

12 years agos3-waf: Link smbstatus only against needed subsystems.
Andreas Schneider [Tue, 24 Jan 2012 12:16:55 +0000 (13:16 +0100)]
s3-waf: Link smbstatus only against needed subsystems.

12 years agos3-waf: Link smbta-util only against needed subsystems.
Andreas Schneider [Tue, 24 Jan 2012 12:01:12 +0000 (13:01 +0100)]
s3-waf: Link smbta-util only against needed subsystems.

12 years agos3-waf: Link testparm only against needed subsystems.
Andreas Schneider [Tue, 24 Jan 2012 11:54:28 +0000 (12:54 +0100)]
s3-waf: Link testparm only against needed subsystems.

12 years agos3-waf: Link smbspool only against needed subsystems.
Andreas Schneider [Tue, 24 Jan 2012 11:51:31 +0000 (12:51 +0100)]
s3-waf: Link smbspool only against needed subsystems.

12 years agos3-waf: Link profiles only against needed subsystems.
Andreas Schneider [Tue, 24 Jan 2012 11:35:58 +0000 (12:35 +0100)]
s3-waf: Link profiles only against needed subsystems.

12 years agos3-waf: Link net only against needed subsystems.
Andreas Schneider [Tue, 24 Jan 2012 10:52:20 +0000 (11:52 +0100)]
s3-waf: Link net only against needed subsystems.

12 years agos3-waf: Link smbclient only against needed subsystems.
Andreas Schneider [Tue, 24 Jan 2012 10:28:28 +0000 (11:28 +0100)]
s3-waf: Link smbclient only against needed subsystems.

12 years agos3-rpcclient: Remove debug_dsdcinfo_flags() call.
Andreas Schneider [Mon, 23 Jan 2012 17:59:23 +0000 (18:59 +0100)]
s3-rpcclient: Remove debug_dsdcinfo_flags() call.

This gets rid of the DCUTIL dependency.

12 years agos3-waf: Link rpcclient only against needed subsystems.
Andreas Schneider [Mon, 23 Jan 2012 17:56:04 +0000 (18:56 +0100)]
s3-waf: Link rpcclient only against needed subsystems.

12 years agos3-waf: Link swat only against needed subsystems.
Andreas Schneider [Mon, 23 Jan 2012 14:30:23 +0000 (15:30 +0100)]
s3-waf: Link swat only against needed subsystems.

12 years agos3-waf: Add missing dependencies to PASSCHANGE.
Andreas Schneider [Mon, 23 Jan 2012 17:42:18 +0000 (18:42 +0100)]
s3-waf: Add missing dependencies to PASSCHANGE.

12 years agos3-waf: Add missing dependencies to LOCKING.
Andreas Schneider [Mon, 23 Jan 2012 17:41:35 +0000 (18:41 +0100)]
s3-waf: Add missing dependencies to LOCKING.

12 years agos3-waf: Link winbindd only against needed subsystems.
Andreas Schneider [Mon, 23 Jan 2012 14:14:20 +0000 (15:14 +0100)]
s3-waf: Link winbindd only against needed subsystems.

12 years agos3-waf: Link nmbd only against needed subsystems.
Andreas Schneider [Mon, 23 Jan 2012 13:46:45 +0000 (14:46 +0100)]
s3-waf: Link nmbd only against needed subsystems.

12 years agos3-waf: Link libcli_lsa3 only against needed subsystems.
Andreas Schneider [Mon, 23 Jan 2012 13:46:31 +0000 (14:46 +0100)]
s3-waf: Link libcli_lsa3 only against needed subsystems.

12 years agos3-waf: Link errors3 only against needed subsystems.
Andreas Schneider [Mon, 23 Jan 2012 11:13:55 +0000 (12:13 +0100)]
s3-waf: Link errors3 only against needed subsystems.

12 years agos3-waf: Link tdb-wrap3 only against needed subsystems.
Andreas Schneider [Mon, 23 Jan 2012 10:13:17 +0000 (11:13 +0100)]
s3-waf: Link tdb-wrap3 only against needed subsystems.

12 years agos3-waf: Link trusts_util only against needed subsystems.
Andreas Schneider [Mon, 23 Jan 2012 09:41:01 +0000 (10:41 +0100)]
s3-waf: Link trusts_util only against needed subsystems.

12 years agos3-waf: Remove dead subsystem LIBNBT.
Andreas Schneider [Mon, 23 Jan 2012 09:14:50 +0000 (10:14 +0100)]
s3-waf: Remove dead subsystem LIBNBT.

12 years agos3-waf: Link LIBNET_DSSYNC only against needed subsystems.
Andreas Schneider [Fri, 20 Jan 2012 16:58:46 +0000 (17:58 +0100)]
s3-waf: Link LIBNET_DSSYNC only against needed subsystems.

12 years agos3-waf: Link LIBNET only against needed subsystems.
Andreas Schneider [Fri, 20 Jan 2012 14:53:00 +0000 (15:53 +0100)]
s3-waf: Link LIBNET only against needed subsystems.

12 years agos3-waf: Link smbd_base only against needed subsystems.
Andreas Schneider [Fri, 20 Jan 2012 10:48:19 +0000 (11:48 +0100)]
s3-waf: Link smbd_base only against needed subsystems.

12 years agos3-waf: Link libsmb only against needed subsystems.
Andreas Schneider [Thu, 19 Jan 2012 09:12:18 +0000 (10:12 +0100)]
s3-waf: Link libsmb only against needed subsystems.

12 years agos3-waf: Link LIBNTLMSSP only against needed subsystems.
Andreas Schneider [Wed, 18 Jan 2012 13:57:07 +0000 (14:57 +0100)]
s3-waf: Link LIBNTLMSSP only against needed subsystems.

12 years agos3-waf: Remove LIBSMB_ERR completely.
Andreas Schneider [Wed, 18 Jan 2012 13:41:08 +0000 (14:41 +0100)]
s3-waf: Remove LIBSMB_ERR completely.

12 years agos3-waf: Link samba3core against needed subsystems.
Andreas Schneider [Wed, 18 Jan 2012 13:17:40 +0000 (14:17 +0100)]
s3-waf: Link samba3core against needed subsystems.

12 years agos3-waf: Don't link param_service against USER_UTIL twice.
Andreas Schneider [Wed, 18 Jan 2012 11:19:15 +0000 (12:19 +0100)]
s3-waf: Don't link param_service against USER_UTIL twice.

12 years agos3-waf: Link param only against needed subsystems.
Andreas Schneider [Wed, 18 Jan 2012 11:00:39 +0000 (12:00 +0100)]
s3-waf: Link param only against needed subsystems.

12 years agos3-waf: Add missing depcendencies to smbconf.
Andreas Schneider [Wed, 18 Jan 2012 13:24:31 +0000 (14:24 +0100)]
s3-waf: Add missing depcendencies to smbconf.

12 years agos3-waf: Remove unneeded PARAM_UTIL dependency.
Andreas Schneider [Wed, 18 Jan 2012 10:57:49 +0000 (11:57 +0100)]
s3-waf: Remove unneeded PARAM_UTIL dependency.

12 years agos3-waf: Replace LIBMSRPC_GEN just with ndr-standard.
Andreas Schneider [Wed, 18 Jan 2012 10:38:22 +0000 (11:38 +0100)]
s3-waf: Replace LIBMSRPC_GEN just with ndr-standard.

There is no need to link against dssetup and spoolss.

12 years agos3-waf: Link nss_wins only against needed subsystems.
Andreas Schneider [Wed, 18 Jan 2012 10:17:16 +0000 (11:17 +0100)]
s3-waf: Link nss_wins only against needed subsystems.

12 years agos3-waf: Link smbclient only against needed subsystems.
Andreas Schneider [Wed, 18 Jan 2012 10:08:59 +0000 (11:08 +0100)]
s3-waf: Link smbclient only against needed subsystems.

12 years agos3-waf: Link netapi only against needed subsystems.
Andreas Schneider [Tue, 17 Jan 2012 16:06:24 +0000 (17:06 +0100)]
s3-waf: Link netapi only against needed subsystems.

12 years agolib: Remove dead mszip code.
Andreas Schneider [Thu, 19 Jan 2012 10:11:11 +0000 (11:11 +0100)]
lib: Remove dead mszip code.

RIP, long live zlib.

12 years agoIntroduce dump_data_file
Volker Lendecke [Wed, 25 Jan 2012 08:10:04 +0000 (09:10 +0100)]
Introduce dump_data_file

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104

12 years agoauth/gensec_gssapi: sync gensec_gssapi_state with gse_context
Stefan Metzmacher [Tue, 24 Jan 2012 09:33:11 +0000 (10:33 +0100)]
auth/gensec_gssapi: sync gensec_gssapi_state with gse_context

Both use gss_krb5_lucid_context_v1_t now.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan 25 10:22:31 CET 2012 on sn-devel-104

12 years agos3-gse: add GENSEC_FEATURE_NEW_SPNEGO detection in gensec_gse_have_feature()
Stefan Metzmacher [Tue, 24 Jan 2012 09:31:54 +0000 (10:31 +0100)]
s3-gse: add GENSEC_FEATURE_NEW_SPNEGO detection in gensec_gse_have_feature()

metze

12 years agos3:build: require gss_krb5_export_lucid_sec_context() for ads support
Stefan Metzmacher [Tue, 24 Jan 2012 12:48:33 +0000 (13:48 +0100)]
s3:build: require gss_krb5_export_lucid_sec_context() for ads support

This is needed to detect krb5 with aes for GENSEC_FEATURE_NEW_SPNEGO
at runtime.

metze

12 years agos3:smb2_sessetup: call set_current_user_info() and reload_services() on success
Stefan Metzmacher [Wed, 25 Jan 2012 04:22:38 +0000 (05:22 +0100)]
s3:smb2_sessetup: call set_current_user_info() and reload_services() on success

This matches the smb1 code.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan 25 08:39:35 CET 2012 on sn-devel-104

12 years agoldbedit: prevent a transaction warning on failure
Kelly Yeoh [Wed, 25 Jan 2012 03:58:44 +0000 (14:58 +1100)]
ldbedit: prevent a transaction warning on failure

if a modify fails then cancel the transaction to prevent a dangling
transaction error

Signed-off-by: Andrew Tridgell <tridge@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jan 25 07:06:40 CET 2012 on sn-devel-104

12 years agoRevert "s3:build: for now do not require gsskrb5_extract_authz_data_from_sec_context"
Stefan Metzmacher [Tue, 24 Jan 2012 10:17:09 +0000 (11:17 +0100)]
Revert "s3:build: for now do not require gsskrb5_extract_authz_data_from_sec_context"

This reverts commit 74abe369df26c58094a601dd6ff8c27c3d0b2b2a.

Having gsskrb5_extract_authz_data_from_sec_context as symbol in the
library is in indicator that gss_inquire_sec_context_by_oid() would work.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan 25 05:26:14 CET 2012 on sn-devel-104

12 years agoRevert "build: Add -lz to wbinfo to fix build on some hosts"
Stefan Metzmacher [Tue, 24 Jan 2012 13:12:12 +0000 (14:12 +0100)]
Revert "build: Add -lz to wbinfo to fix build on some hosts"

This reverts commit 88daf798fec56a99e5eb3aed67f3b58572d97d34.

This is not needed as 5c88cfcc525290d0ad1c322401685c60c1abdf10 is the better
fix, see https://bugzilla.samba.org/show_bug.cgi?id=8711

metze

12 years agos3: improve the code in the AES encryption.
Matthieu Patou [Tue, 24 Jan 2012 22:48:31 +0000 (14:48 -0800)]
s3: improve the code in the AES encryption.

Remove looping replace them by memcpy.

Fix bug #8674 (Buffer overflow in vfs_smb_traffic_analyzer).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jan 25 03:12:14 CET 2012 on sn-devel-104

12 years agos3: Fix bug #8674.
Jeremy Allison [Tue, 24 Jan 2012 22:41:30 +0000 (14:41 -0800)]
s3: Fix bug #8674.

Buffer overflow issue with AES encryption in samba traffic analyzer.

12 years agos4-torture: For authenticated users, add AUTHENTICATED USERS sid
Amitay Isaacs [Tue, 24 Jan 2012 23:01:10 +0000 (10:01 +1100)]
s4-torture: For authenticated users, add AUTHENTICATED USERS sid

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Jan 25 01:36:02 CET 2012 on sn-devel-104

12 years agodlz_bind9: for authenticated user, set the AUTHENTICATED USERS sid in token
Amitay Isaacs [Tue, 24 Jan 2012 23:00:31 +0000 (10:00 +1100)]
dlz_bind9: for authenticated user, set the AUTHENTICATED USERS sid in token

12 years agos3: Remove a typedef
Volker Lendecke [Tue, 24 Jan 2012 20:04:40 +0000 (21:04 +0100)]
s3: Remove a typedef

We have it in README.Coding to avoid typedef for structs, but I
think it also applies to enums.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Jan 24 22:45:50 CET 2012 on sn-devel-104

12 years agos3: Remove a typedef
Volker Lendecke [Tue, 24 Jan 2012 20:04:00 +0000 (21:04 +0100)]
s3: Remove a typedef

12 years agos3: Add debug when a message is registered
Volker Lendecke [Tue, 24 Jan 2012 12:18:42 +0000 (13:18 +0100)]
s3: Add debug when a message is registered

We've always had the corresponding deregister message

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Jan 24 15:27:51 CET 2012 on sn-devel-104

12 years agos3:registry: do not write empty value lists to registry.tdb
Gregor Beck [Tue, 24 Jan 2012 09:45:32 +0000 (10:45 +0100)]
s3:registry: do not write empty value lists to registry.tdb

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Jan 24 13:54:09 CET 2012 on sn-devel-104

12 years agoselftest: Add test for smbpasswd against pdb_samba4
Andrew Bartlett [Tue, 24 Jan 2012 08:23:20 +0000 (19:23 +1100)]
selftest: Add test for smbpasswd against pdb_samba4

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Jan 24 11:05:09 CET 2012 on sn-devel-104

12 years agos3-passdb: Fix pdb_samba4 setting of plaintext passwords
Andrew Bartlett [Tue, 24 Jan 2012 07:38:09 +0000 (18:38 +1100)]
s3-passdb: Fix pdb_samba4 setting of plaintext passwords

We were setting a UTF8 password into the UTF16 clearTextPassword.

Converting from CH_UNIX to CH_UTF16 should fix this.

Andrew Bartlett

12 years agos3-passdb: Use DSDB_PASSWORD_BYPASS_LAST_SET flags in pdb_samba4
Andrew Bartlett [Tue, 24 Jan 2012 07:37:24 +0000 (18:37 +1100)]
s3-passdb: Use DSDB_PASSWORD_BYPASS_LAST_SET flags in pdb_samba4

12 years agodsdb: Allow DSDB_CONTROL_PASSWORD_BYPASS_LAST_SET_OID to be specified as a flag
Andrew Bartlett [Tue, 24 Jan 2012 07:36:49 +0000 (18:36 +1100)]
dsdb: Allow DSDB_CONTROL_PASSWORD_BYPASS_LAST_SET_OID to be specified as a flag

12 years agopython: Change except: statement to except Exception:
Amitay Isaacs [Tue, 24 Jan 2012 00:54:54 +0000 (11:54 +1100)]
python: Change except: statement to except Exception:

This way we only catch true exceptions and keyboard interrupts
are not caught here.

Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104

12 years agoautobuild.py: Catch only true exceptions in except statement
Amitay Isaacs [Tue, 24 Jan 2012 00:43:46 +0000 (11:43 +1100)]
autobuild.py: Catch only true exceptions in except statement

sys.exit(0) raises systemExit which is caught in empty except:
statement. This can change the exit status if except: condition is
supposed to exit with different status value.

12 years agoAnother fix for bug #8556 - ACL permissions ignored when SMBsetatr is requested.
Jeremy Allison [Mon, 23 Jan 2012 22:09:32 +0000 (14:09 -0800)]
Another fix for bug #8556 - ACL permissions ignored when SMBsetatr is requested.

Remove erroneous check on FILE_WRITE_ATTRIBUTES when changing POSIX
permissions - this isn't an attribute set call (unless you're storing
attributes in POSIX permissions, which is not recommended).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jan 24 00:44:24 CET 2012 on sn-devel-104

12 years agoAnother fix for bug #8556 - ACL permissions ignored when SMBsetatr is requested.
Richard Sharpe [Mon, 23 Jan 2012 20:50:25 +0000 (12:50 -0800)]
Another fix for bug #8556 - ACL permissions ignored when SMBsetatr is requested.

Prevent systems with "store dos attributes = yes" from overriding
FILE_WRITE_ATTRIBUITES.

12 years agolib: use differing NTSTATUS and WERROR struct members
David Disseldorp [Mon, 23 Jan 2012 20:18:20 +0000 (12:18 -0800)]
lib: use differing NTSTATUS and WERROR struct members

This allows the compiler to catch uses of incorrectly typed arguments
for [NT_STATUS|W_ERROR]_IS_OK() and [NT_STATUS|W_ERROR]_EQUAL(). I.e.

WERROR werr;

werr = my_fn();        /* XXX returns WERROR type */

if (NT_STATUS_EQUAL(werr, NT_STATUS_OBJECT_NAME_COLLISION)) {

12 years agoWERROR type variable being incorrectly checked with a NT_STATUS_IS_X
David Disseldorp [Mon, 23 Jan 2012 20:18:01 +0000 (12:18 -0800)]
WERROR type variable being incorrectly checked with a NT_STATUS_IS_X
type macro.

12 years agos3-spoolss: fix incorrect error check type
David Disseldorp [Sun, 22 Jan 2012 03:21:33 +0000 (04:21 +0100)]
s3-spoolss: fix incorrect error check type

NT_STATUS_IS_OK used to check WERROR type.

Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Sun Jan 22 05:03:36 CET 2012 on sn-devel-104

12 years agoLog short_princ instead of uninitialised filter.
Michael Wood [Fri, 20 Jan 2012 06:30:18 +0000 (08:30 +0200)]
Log short_princ instead of uninitialised filter.

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Jan 21 13:06:35 CET 2012 on sn-devel-104

12 years agoparam: handle P_BYTES in more places
Andrew Bartlett [Sat, 21 Jan 2012 05:50:43 +0000 (16:50 +1100)]
param: handle P_BYTES in more places

12 years agoscript/autobuild.py: cleanup on rebase failure
Stefan Metzmacher [Sat, 21 Jan 2012 08:29:35 +0000 (09:29 +0100)]
script/autobuild.py: cleanup on rebase failure

We can improve this to generate logs.tar.gz later...

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Jan 21 11:29:58 CET 2012 on sn-devel-104

12 years agos3-libsmb: Always allow SMB_TRANS_ENC_GSS to be defined
Andrew Bartlett [Sat, 14 Jan 2012 01:03:27 +0000 (12:03 +1100)]
s3-libsmb: Always allow SMB_TRANS_ENC_GSS to be defined

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Jan 21 01:28:54 CET 2012 on sn-devel-104

12 years agos3-libsmb: Remove unused smb_tran_enc_state_gss and gssapi headers
Andrew Bartlett [Sat, 14 Jan 2012 01:01:12 +0000 (12:01 +1100)]
s3-libsmb: Remove unused smb_tran_enc_state_gss and gssapi headers

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libsmb: use struct gensec_security directly
Andrew Bartlett [Sat, 14 Jan 2012 01:00:53 +0000 (12:00 +1100)]
s3-libsmb: use struct gensec_security directly

This is rather than via a now one-element union.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-libcli Change krb5 smb sealing to call via gensec and gensec_gse
Andrew Bartlett [Fri, 13 Jan 2012 09:34:10 +0000 (20:34 +1100)]
s3-libcli Change krb5 smb sealing to call via gensec and gensec_gse

This also fixes the support for smb sealing with krb5 in make test, as
this now relies on secrets.tdb rather than /etc/krb5.keytab.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:auth/gensec: make sure GSS_C_CONF_FLAG implies GSS_C_INTEG_FLAG
Stefan Metzmacher [Fri, 20 Jan 2012 14:56:17 +0000 (15:56 +0100)]
s4:auth/gensec: make sure GSS_C_CONF_FLAG implies GSS_C_INTEG_FLAG

metze

12 years agos3-gse: make sure GSS_C_CONF_FLAG implies GSS_C_INTEG_FLAG
Stefan Metzmacher [Fri, 20 Jan 2012 14:55:55 +0000 (15:55 +0100)]
s3-gse: make sure GSS_C_CONF_FLAG implies GSS_C_INTEG_FLAG

metze

12 years agos3-gse: implement fill_mem_keytab_from_[system|dedicated]_keytab
Stefan Metzmacher [Fri, 20 Jan 2012 08:31:55 +0000 (09:31 +0100)]
s3-gse: implement fill_mem_keytab_from_[system|dedicated]_keytab

metze

12 years agos3-gse: create memory keytab in gse_krb5_get_server_keytab()
Stefan Metzmacher [Fri, 20 Jan 2012 10:51:59 +0000 (11:51 +0100)]
s3-gse: create memory keytab in gse_krb5_get_server_keytab()

The other functions just add entries to it.

metze

12 years agos3-gse: fix SECRETS_AND_KEYTAB fallback in gse_krb5_get_server_keytab()
Stefan Metzmacher [Fri, 20 Jan 2012 10:50:20 +0000 (11:50 +0100)]
s3-gse: fix SECRETS_AND_KEYTAB fallback in gse_krb5_get_server_keytab()

metze

12 years agos3:kerberos_verify: ads_dedicated_keytab_verify_ticket() only needs read access
Stefan Metzmacher [Fri, 20 Jan 2012 11:20:47 +0000 (12:20 +0100)]
s3:kerberos_verify: ads_dedicated_keytab_verify_ticket() only needs read access

metze

12 years agos3:smbd/proto.h: remove unused do_map_to_guest() prototype
Stefan Metzmacher [Sat, 14 Jan 2012 11:30:21 +0000 (12:30 +0100)]
s3:smbd/proto.h: remove unused do_map_to_guest() prototype

metze

12 years agobuild: Add -lz to wbinfo to fix build on some hosts
Andrew Bartlett [Fri, 6 Jan 2012 09:35:25 +0000 (20:35 +1100)]
build: Add -lz to wbinfo to fix build on some hosts

This is required after the rework of the object lists for gensec_gse

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Jan 20 23:33:14 CET 2012 on sn-devel-104

12 years agos3: Fix the build on FreeBSD8
Volker Lendecke [Fri, 20 Jan 2012 15:46:41 +0000 (16:46 +0100)]
s3: Fix the build on FreeBSD8

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jan 20 21:58:04 CET 2012 on sn-devel-104

12 years agos3:configure.in: move gss_wrap_iov check to the other function checks
Stefan Metzmacher [Fri, 20 Jan 2012 15:59:10 +0000 (16:59 +0100)]
s3:configure.in: move gss_wrap_iov check to the other function checks

This also makes sure we search for it if it's in -lgssapi
instead of -lgssapi_krb5 or -lgss.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan 20 20:23:13 CET 2012 on sn-devel-104

12 years agos3:configure.in: require gssapi for ads support
Stefan Metzmacher [Fri, 20 Jan 2012 15:58:14 +0000 (16:58 +0100)]
s3:configure.in: require gssapi for ads support

This matches the waf checks.

metze

12 years agos3:configure.in: move krb5_set_real_time check to other function checks
Stefan Metzmacher [Fri, 20 Jan 2012 15:56:47 +0000 (16:56 +0100)]
s3:configure.in: move krb5_set_real_time check to other function checks

metze

12 years agos3:build: for now do not require gsskrb5_extract_authz_data_from_sec_context
Stefan Metzmacher [Fri, 20 Jan 2012 15:55:43 +0000 (16:55 +0100)]
s3:build: for now do not require gsskrb5_extract_authz_data_from_sec_context

We do not use it yet.

metze

12 years agos3:configure.in: fix the shell logic in krb5 checks
Stefan Metzmacher [Fri, 20 Jan 2012 15:52:03 +0000 (16:52 +0100)]
s3:configure.in: fix the shell logic in krb5 checks

metze

12 years agotorture: add spoolss overlapping driver deletion tests
David Disseldorp [Tue, 17 Jan 2012 16:07:01 +0000 (17:07 +0100)]
torture: add spoolss overlapping driver deletion tests

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Fri Jan 20 18:20:14 CET 2012 on sn-devel-104

12 years agos3-spoolss: fix printer_driver_files_in_use() call ordering
David Disseldorp [Tue, 17 Jan 2012 16:06:38 +0000 (17:06 +0100)]
s3-spoolss: fix printer_driver_files_in_use() call ordering

printer_driver_files_in_use() performs two tasks: it returns whether any
of the files in the to-be-deleted driver overlap with other drivers, it
also trims such files from the info structure passed in.

In processing a DeletePrinterDataEx request with DPD_DELETE_UNUSED_FILES
set, printer_driver_files_in_use() must be called to ensure files in
use by other drivers are not removed.

https://bugzilla.samba.org/show_bug.cgi?id=4942

Signed-off-by: Andreas Schneider <asn@samba.org>
12 years agotorture: confirm printer driver file removal
David Disseldorp [Tue, 17 Jan 2012 14:20:51 +0000 (15:20 +0100)]
torture: confirm printer driver file removal

Signed-off-by: Andreas Schneider <asn@samba.org>
12 years agotorture: add spoolss del printer driver test
David Disseldorp [Mon, 16 Jan 2012 15:30:17 +0000 (16:30 +0100)]
torture: add spoolss del printer driver test

Test handling of DeletePrinterDriverEx when the DPD_DELETE_ALL_FILES
flag is set.

Signed-off-by: Andreas Schneider <asn@samba.org>
12 years agos3-spoolss: fix printer driver version deletion
David Disseldorp [Thu, 12 Jan 2012 15:27:37 +0000 (16:27 +0100)]
s3-spoolss: fix printer driver version deletion

Spoolss delete printer driver code currently makes invalid version
assumptions based on the architecture requested by the client.

Ugly hacks are in place to cover removal of other versions (2 and 3).
This change wraps multi version deletion in a simple for loop.

Signed-off-by: Andreas Schneider <asn@samba.org>
12 years agos3-spoolss: prefix print$ path on driver file deletion
David Disseldorp [Wed, 11 Jan 2012 18:50:36 +0000 (19:50 +0100)]
s3-spoolss: prefix print$ path on driver file deletion

Driver file paths stored in the registry do not include the server path
prefix. delete_driver_files() incorrectly assumes such a prefix.

https://bugzilla.samba.org/show_bug.cgi?id=8697

Signed-off-by: Andreas Schneider <asn@samba.org>
12 years agos3: Fix a typo
Volker Lendecke [Thu, 19 Jan 2012 11:10:38 +0000 (12:10 +0100)]
s3: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Jan 19 13:43:07 CET 2012 on sn-devel-104

12 years agoNow make_connection_snum() is a static function that takes a
Jeremy Allison [Thu, 19 Jan 2012 04:52:47 +0000 (20:52 -0800)]
Now make_connection_snum() is a static function that takes a
connection_struct as a parameter, fix the interface to allow
it to return an NTSTATUS.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Jan 19 07:25:49 CET 2012 on sn-devel-104

12 years agodynconfig/wscript: correctly cleanup PRIVATELIBDIR and MODULESDIR defaults
Stefan Metzmacher [Wed, 18 Jan 2012 21:54:28 +0000 (22:54 +0100)]
dynconfig/wscript: correctly cleanup PRIVATELIBDIR and MODULESDIR defaults

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan 19 00:47:50 CET 2012 on sn-devel-104

12 years agoFix bug 8710 - connections.tdb - major leak with SMB2.
Jeremy Allison [Wed, 18 Jan 2012 20:38:14 +0000 (12:38 -0800)]
Fix bug 8710 - connections.tdb - major leak with SMB2.

Ensure the cnum used to claim the connection for SMB2 is the
id that will be used for the SMB2 tcon. Based on code from
Ira Cooper <ira@wakeful.net>.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Jan 18 23:14:32 CET 2012 on sn-devel-104

12 years agos3-aio-pthread: num threads should be int
Volker Lendecke [Wed, 18 Jan 2012 17:12:57 +0000 (18:12 +0100)]
s3-aio-pthread: num threads should be int

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan 18 21:04:20 CET 2012 on sn-devel-104

12 years agoauth/gensec: align common elements between gse_context and gensec_gssapi_state
Andrew Bartlett [Wed, 11 Jan 2012 00:52:13 +0000 (11:52 +1100)]
auth/gensec: align common elements between gse_context and gensec_gssapi_state

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan 18 19:29:40 CET 2012 on sn-devel-104

12 years agos3-gse: align common elements between gse_context and gensec_gssapi_state
Andrew Bartlett [Wed, 11 Jan 2012 00:52:13 +0000 (11:52 +1100)]
s3-gse: align common elements between gse_context and gensec_gssapi_state

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-gensec: Add hook to allow gensec to know if kerberos is permitted
Andrew Bartlett [Thu, 12 Jan 2012 10:16:36 +0000 (21:16 +1100)]
s3-gensec: Add hook to allow gensec to know if kerberos is permitted

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-gse: Make gensec_gse cope with non-DCE GSSAPI
Andrew Bartlett [Sat, 14 Jan 2012 00:40:18 +0000 (11:40 +1100)]
s3-gse: Make gensec_gse cope with non-DCE GSSAPI

The validation of the mutual authentication reply produces no further
data to send to the server.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-gse: the server should not check for GSS_C_MUTUAL_FLAG
Stefan Metzmacher [Sat, 14 Jan 2012 10:28:28 +0000 (11:28 +0100)]
s3-gse: the server should not check for GSS_C_MUTUAL_FLAG

It up to the client to ask for GSS_C_MUTUAL_FLAG,
except for the dcerpc case, where the server is stricter.

metze