[SCM] Socket Wrapper Repository - branch master updated
The branch, master has been updated via 40b1926 Bump version to 1.1.4 from c3c5f02 swrap: Call dlclose() in the destructor https://git.samba.org/?p=socket_wrapper.git;a=shortlog;h=master - Log - commit 40b1926e42896bb977705ed155c385b413ddd517 Author: Andreas Schneider a...@samba.org Date: Mon Aug 24 17:53:28 2015 +0200 Bump version to 1.1.4 Signed-off-by: Andreas Schneider a...@samba.org Reviewed-by: Alexander Bokovoy a...@samba.org --- Summary of changes: CMakeLists.txt | 4 ++-- ChangeLog | 6 ++ 2 files changed, 8 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/CMakeLists.txt b/CMakeLists.txt index ee6daa6..5407410 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ set(APPLICATION_NAME ${PROJECT_NAME}) set(APPLICATION_VERSION_MAJOR 1) set(APPLICATION_VERSION_MINOR 1) -set(APPLICATION_VERSION_PATCH 3) +set(APPLICATION_VERSION_PATCH 4) set(APPLICATION_VERSION ${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}) @@ -19,7 +19,7 @@ set(APPLICATION_VERSION ${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINO # Increment AGE. Set REVISION to 0 # If the source code was changed, but there were no interface changes: # Increment REVISION. -set(LIBRARY_VERSION 0.1.3) +set(LIBRARY_VERSION 0.1.4) set(LIBRARY_SOVERSION 0) # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked diff --git a/ChangeLog b/ChangeLog index c5b6019..b3509ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ ChangeLog == +version 1.1.4 (released 2015-08-25) + * Fixed handling of msg_name in recvmsg() + * Fixed sendmsg()/recvmsg() TCP support + * Fixed several compile warnings + * Added environment variable to change MTU + version 1.1.3 (released 2015-02-23) * Added support for address sanitizer. * Fixed leaking of memory and fds of stale sockets. -- Socket Wrapper Repository
[SCM] Socket Wrapper Repository - annotated tag socket_wrapper-1.1.4 created
The annotated tag, socket_wrapper-1.1.4 has been created at 0e4f8546016f4a37adb463dfe9ea3bc52466fe03 (tag) tagging 40b1926e42896bb977705ed155c385b413ddd517 (commit) replaces socket_wrapper-1.1.3 tagged by Andreas Schneider on Tue Aug 25 17:04:26 2015 +0200 - Log - socket_wrapper-1.1.4 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQIcBAABCgAGBQJV3IP/AAoJEH7g/E3MAU49JCEQAJBxkl7hCzqV7DXxSkfzColM KnpGahRl79HoD4YBJjQzdE70/7Up1XBKh2/we3zpunGxychBsSip7/4336ic5Cv1 x2D8h5YGapaPZggOdQx5bBPJyg1aMn9ajTyCFwBN+ICqRQisJ7nn4geZOHVhAJ91 iVfIeP/hgo3cErutpeoRTyjIeHQa3xNk6lKhBaICBgnVSt8Y/+Y/uJ0j0ey+Cd+f 5RGuVdodqzP2/GGvnRezhJncIJz55/TJe7SIp8fQkJvRa1/YVnUZdnpSB09+8NjT ZGNvuVhWG8O/Brvu5a1EJhpSYciAtpxAO1CetkqXNVACBaZ6LjATgrGvPZsJNzv7 gnVzXd4N5UDnXjxmGdwq4dXR7HACrWtHEINIDrJjK5MS1YbsDWdfaiAuZnf9GhBs VGWKazBf8lNVZCK4dkCgibuT6nLks0KjcPmYTLOmqU1hzYsiVtR/4YxxtqnmOkob 52nElFSBzsjMDDkwMAutmw7T7J3nxdRsRuksNtq/AbGToy7mwGYTVwEimRolP+y5 OQ9WQikamgkWVYr73cCBUCfy/UFIdIn1ZGAmSsOzANcem3oQ06A0ID1tgKgANVwE fEQGdXGMFadoLo5r2a5hYrj5gmtut/dl5uyfKFmJZMau6gxcbDyvdG/BxT8pot1t 8LV7+KtZBX/1rJOeUNAM =utgD -END PGP SIGNATURE- Andreas Schneider (16): cmake: Drop test results via https. Regenerate manpage. Update TODO tests: Migrate to new cmocka API swrap: Correctly update the msg_name in recvmsg() tests: Fix testname of sendmsg tests tests: Tests for msg_name(len) in sendmsg/revcmsg swrap: Fix TCP support with sendmsg/recvmsg tests: Add tcp sendmsg/recvmsg test swrap: Add enviornment variable to specify mtu size swrap: Fix signed comparsion warnings tests: Fix passing pointer of incompatible type tests: Fix memset() call in new tests tests: Rename s_addr to send_addr swrap: Call dlclose() in the destructor Bump version to 1.1.4 Jelmer Vernooij (1): doc: Add a specific date to manpage --- -- Socket Wrapper Repository
autobuild: intermittent test failure detected
The autobuild test system has detected an intermittent failing test in the current master tree. The autobuild log of the failure is available here: http://git.samba.org/autobuild.flakey/2015-08-25-2123/flakey.log The samba build logs are available here: http://git.samba.org/autobuild.flakey/2015-08-25-2123/samba.stderr http://git.samba.org/autobuild.flakey/2015-08-25-2123/samba.stdout The top commit at the time of the failure was: commit dcc657a2219498beac8bde6cbf999ee7cf6acae8 Author: Andrew Bartlett abart...@samba.org Date: Mon Aug 3 13:50:08 2015 +1200 selftest: Add assertion that we actually fix the replPropertyMetaData sort order This ensures that the dbcheck rule fixes the sort order (and only fixes the sort order). BUG: https://bugzilla.samba.org/show_bug.cgi?id=10973 Signed-off-by: Andrew Bartlett abart...@samba.org Reviewed-by: Stefan Metzmacher me...@samba.org Autobuild-User(master): Stefan Metzmacher me...@samba.org Autobuild-Date(master): Tue Aug 25 02:45:58 CEST 2015 on sn-devel-104
[SCM] Samba Shared Repository - branch v4-3-test updated
The branch, v4-3-test has been updated via f55942d s4-torture: don't build the lsa forest trust krb5 tests when building with MIT Kerberos. via f26e93c ctdb: Fix the build on FreeBSD 10.1 from 02d549a replace: Fix bug 11455 https://git.samba.org/?p=samba.git;a=shortlog;h=v4-3-test - Log - commit f55942d24a310867858f4c80bbb6c35df59c6a6e Author: Günther Deschner g...@samba.org Date: Fri Jul 10 09:44:40 2015 +0200 s4-torture: don't build the lsa forest trust krb5 tests when building with MIT Kerberos. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11411 Guenther Signed-off-by: Günther Deschner g...@samba.org Reviewed-by: Andreas Schneider a...@samba.org (cherry picked from commit 2443c34c91035778c36cc0eb4e51e9e922aeea1b) Autobuild-User(v4-3-test): Karolin Seeger ksee...@samba.org Autobuild-Date(v4-3-test): Tue Aug 25 12:07:41 CEST 2015 on sn-devel-104 commit f26e93c4fbc9ef69a4f18688be7e14e6e83a8ba7 Author: Volker Lendecke v...@samba.org Date: Wed Aug 19 07:33:48 2015 +0200 ctdb: Fix the build on FreeBSD 10.1 We get sockaddr_in directly in parse_ipv4 Bug: https://bugzilla.samba.org/show_bug.cgi?id=11465 Signed-off-by: Volker Lendecke v...@samba.org Reviewed-by: Ralph Boehme s...@samba.org (cherry picked from commit 1d79f6c9e5423202d5275727e1ddc60acce65b4c) --- Summary of changes: ctdb/common/system_util.c | 2 +- source4/torture/rpc/lsa.c | 11 +++ 2 files changed, 12 insertions(+), 1 deletion(-) Changeset truncated at 500 lines: diff --git a/ctdb/common/system_util.c b/ctdb/common/system_util.c index 1ae0bae..663df6e 100644 --- a/ctdb/common/system_util.c +++ b/ctdb/common/system_util.c @@ -157,7 +157,7 @@ bool parse_ipv4(const char *s, unsigned port, struct sockaddr_in *sin) } #ifdef HAVE_SOCK_SIN_LEN - sin-ip.sin_len = sizeof(*sin); + sin-sin_len = sizeof(*sin); #endif return true; } diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c index 95caebb..44cdbdc 100644 --- a/source4/torture/rpc/lsa.c +++ b/source4/torture/rpc/lsa.c @@ -2903,6 +2903,8 @@ static bool check_pw_with_ServerAuthenticate3(struct dcerpc_pipe *p, return true; } +#ifdef SAMBA4_USES_HEIMDAL + /* * This function is set in torture_krb5_init_context as krb5 * send_and_recv function. This allows us to override what server the @@ -4103,6 +4105,7 @@ static bool check_pw_with_krb5(struct torture_context *tctx, TALLOC_FREE(ctx); return true; } +#endif static bool check_dom_trust_pw(struct dcerpc_pipe *p, struct torture_context *tctx, @@ -4234,9 +4237,13 @@ static bool check_dom_trust_pw(struct dcerpc_pipe *p, check_pw_with_ServerAuthenticate3); if (trusted-trust_type != LSA_TRUST_TYPE_DOWNLEVEL) { +#ifdef SAMBA4_USES_HEIMDAL ok = check_pw_with_krb5(tctx, incoming_creds, trusted); torture_assert_int_equal(tctx, ok, expected_result, check_pw_with_krb5); +#else + torture_comment(tctx, skipping check_pw_with_krb5 for MIT Kerberos build); +#endif } if (expected_result != true || next_password == NULL) { @@ -4319,8 +4326,12 @@ static bool check_dom_trust_pw(struct dcerpc_pipe *p, torture_assert(tctx, ok, check_pw_with_ServerAuthenticate3 with changed password); if (trusted-trust_type != LSA_TRUST_TYPE_DOWNLEVEL) { +#if SAMBA4_USES_HEIMDAL ok = check_pw_with_krb5(tctx, incoming_creds, trusted); torture_assert(tctx, ok, check_pw_with_krb5 with changed password); +#else + torture_comment(tctx, skipping check_pw_with_krb5 for MIT Kerberos build); +#endif } TALLOC_FREE(p2); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-2-test updated
The branch, v4-2-test has been updated via 7e43c43 s3: winbindd: Fix TALLOC_FREE of uninitialized groups variable. from b688f57 s4:rpc_server/netlogon: fix bugs in dcesrv_netr_DsRGetDCNameEx2() https://git.samba.org/?p=samba.git;a=shortlog;h=v4-2-test - Log - commit 7e43c43301b7dc407d0c1ebca61c2de5c71698a9 Author: Jeremy Allison j...@samba.org Date: Thu Jul 23 10:52:43 2015 -0700 s3: winbindd: Fix TALLOC_FREE of uninitialized groups variable. Fix created by by: wei zhong wwey...@gmail.com Only for 4.2.x and below, master code already fixed. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10823 Signed-off-by: Jeremy Allison j...@samba.org Autobuild-User(v4-2-test): Karolin Seeger ksee...@samba.org Autobuild-Date(v4-2-test): Tue Aug 25 11:25:58 CEST 2015 on sn-devel-104 --- Summary of changes: source3/winbindd/winbindd_dual_srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changeset truncated at 500 lines: diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index c19179d..bff310a 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -381,7 +381,7 @@ NTSTATUS _wbint_QueryGroupList(struct pipes_struct *p, { struct winbindd_domain *domain = wb_child_domain(); uint32_t i, num_groups; - struct wb_acct_info *groups; + struct wb_acct_info *groups = NULL; struct wbint_Principal *result; NTSTATUS status; -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated
The branch, master has been updated via dba9e63 Prevent a crash in Python modules that try to authenticate by ensuring we reject cases where credendials fields are not intialized. via 4e178ed s3-util: Compare the maximum allowed length of a NetBIOS name from dcc657a selftest: Add assertion that we actually fix the replPropertyMetaData sort order https://git.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit dba9e631bd1e1c7e00430b72f0c60b32ee4eeb33 Author: Richard Sharpe rsha...@samba.org Date: Mon Aug 24 20:26:42 2015 -0700 Prevent a crash in Python modules that try to authenticate by ensuring we reject cases where credendials fields are not intialized. Signed-off-by: Richard Sharpe rsha...@samba.org Reviewed-by: Jeremy Allison j...@samba.org Autobuild-User(master): Jeremy Allison j...@samba.org Autobuild-Date(master): Tue Aug 25 21:45:18 CEST 2015 on sn-devel-104 commit 4e178ed498c594ffcd5592d0b792d47b064b9586 Author: Roel van Meer r...@1afa.com Date: Tue Aug 4 16:50:43 2015 +0200 s3-util: Compare the maximum allowed length of a NetBIOS name This fixes a problem where is_myname() returns true if one of our names is a substring of the specified name. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11427 Reviewed-by: Jeremy Allison j...@samba.org Reviewed-by: Andreas Schneider a...@samba.org --- Summary of changes: auth/ntlmssp/ntlmssp_client.c | 21 +++-- source3/lib/util.c| 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/auth/ntlmssp/ntlmssp_client.c b/auth/ntlmssp/ntlmssp_client.c index d8531e4c..b22619b 100644 --- a/auth/ntlmssp/ntlmssp_client.c +++ b/auth/ntlmssp/ntlmssp_client.c @@ -147,7 +147,7 @@ NTSTATUS ntlmssp_client_challenge(struct gensec_security *gensec_security, DATA_BLOB encrypted_session_key = data_blob(NULL, 0); NTSTATUS nt_status; int flags = 0; - const char *user, *domain; + const char *user = NULL, *domain = NULL, *workstation = NULL; TALLOC_CTX *mem_ctx = talloc_new(out_mem_ctx); if (!mem_ctx) { @@ -256,6 +256,23 @@ NTSTATUS ntlmssp_client_challenge(struct gensec_security *gensec_security, cli_credentials_get_ntlm_username_domain(gensec_security-credentials, mem_ctx, user, domain); + workstation = cli_credentials_get_workstation(gensec_security-credentials); + + if (user == NULL) { + DEBUG(10, (User is NULL, returning INVALID_PARAMETER\n)); + return NT_STATUS_INVALID_PARAMETER; + } + + if (domain == NULL) { + DEBUG(10, (Domain is NULL, returning INVALID_PARAMETER\n)); + return NT_STATUS_INVALID_PARAMETER; + } + + if (workstation == NULL) { + DEBUG(10, (Workstation is NULL, returning INVALID_PARAMETER\n)); + return NT_STATUS_INVALID_PARAMETER; + } + if (ntlmssp_state-neg_flags NTLMSSP_NEGOTIATE_NTLM2) { flags |= CLI_CRED_NTLM2; } @@ -337,7 +354,7 @@ NTSTATUS ntlmssp_client_challenge(struct gensec_security *gensec_security, nt_response.data, nt_response.length, domain, user, - cli_credentials_get_workstation(gensec_security-credentials), + workstation, encrypted_session_key.data, encrypted_session_key.length, ntlmssp_state-neg_flags); if (!NT_STATUS_IS_OK(nt_status)) { diff --git a/source3/lib/util.c b/source3/lib/util.c index 2fd2b6b..d38d53a 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1198,7 +1198,7 @@ bool is_myname(const char *s) for (n=0; my_netbios_names(n); n++) { const char *nbt_name = my_netbios_names(n); - if (strncasecmp_m(nbt_name, s, strlen(nbt_name)) == 0) { + if (strncasecmp_m(nbt_name, s, MAX_NETBIOSNAME_LEN-1) == 0) { ret=True; break; } -- Samba Shared Repository