samba.git
15 years agoWHATSNEW: Update changes. samba-3.3.0rc1
Karolin Seeger [Thu, 27 Nov 2008 15:09:23 +0000 (16:09 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit b22d3462b9baa3eab2224b9776bc10a0a0bf8512)

15 years agoFix the offset checks in the trans routines
Volker Lendecke [Sat, 8 Nov 2008 16:14:06 +0000 (17:14 +0100)]
Fix the offset checks in the trans routines

This fixes a potential crash bug, a client can make us read memory we
should not read. Luckily I got the disp checks right...

Volker
(cherry picked from commit 64a1d80851da5b05e70ec6c96f6e9bd473748369)
(cherry picked from commit f04c5650a3aeca23591ddc781c4b297caaf9bb3f)
(cherry picked from commit 5718a4761af9b77ea17b64f12f1010c99f738c96)

15 years agolibwbclient: Implement wbcGetgrent and wbcGetgrlist
Kai Blin [Sun, 23 Nov 2008 16:11:09 +0000 (17:11 +0100)]
libwbclient: Implement wbcGetgrent and wbcGetgrlist
(cherry picked from commit 4bfe0e069983b1af050c2df6157b161e8ea572e9)

15 years agolibwbclient: Implement wbcGetpwent
Kai Blin [Sun, 23 Nov 2008 15:36:01 +0000 (16:36 +0100)]
libwbclient: Implement wbcGetpwent
(cherry picked from commit e30448bfbeaebfa5a3225dcc87244d9d0024f082)

15 years agolibwbclient: Add placeholder function for WINBINDD_CCACHE_NTLMAUTH
Kai Blin [Sun, 23 Nov 2008 14:16:17 +0000 (15:16 +0100)]
libwbclient: Add placeholder function for WINBINDD_CCACHE_NTLMAUTH
(cherry picked from commit 28a92eedc8e05ebbf323ba15fadc7e9215f054fb)

15 years agolibwbclient: Fix typo in wbcGetgrent docstring.
Kai Blin [Sun, 23 Nov 2008 10:18:40 +0000 (11:18 +0100)]
libwbclient: Fix typo in wbcGetgrent docstring.
(cherry picked from commit a5b6d05cc7bc2f15c7b0d06fe7d42ef07097ea0f)

15 years agolibwbclient: Add placeholder function for WINBINDD_GETGRLST
Kai Blin [Sun, 23 Nov 2008 10:17:42 +0000 (11:17 +0100)]
libwbclient: Add placeholder function for WINBINDD_GETGRLST
(cherry picked from commit bf6c372693fafb1fb79c6c06a071a07ac35c1959)

15 years agolibwbclient: Add placeholder functions for wbcQuery[GSU]idTo[GSU]id
Kai Blin [Sat, 22 Nov 2008 23:57:33 +0000 (00:57 +0100)]
libwbclient: Add placeholder functions for wbcQuery[GSU]idTo[GSU]id
(cherry picked from commit 69ec02231ec6d24a126c8e1cb6b7ac7ab08e93bc)

15 years agoFix circular dependency error with autoconf 2.6.3.
Andreas Schneider [Wed, 26 Nov 2008 21:20:22 +0000 (13:20 -0800)]
Fix circular dependency error with autoconf 2.6.3.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
(cherry picked from commit ce8bfac470869d21e0618db903b9cee4ab283091)

15 years agoWHATSNEW: Update changes.
Karolin Seeger [Wed, 26 Nov 2008 14:58:42 +0000 (15:58 +0100)]
WHATSNEW: Update changes.

Karolin
(cherry picked from commit 1888b07267845634e21ee9e7e220c7e1ff9e66bc)

15 years agoFix bug #5914 - Build failure: redefinition of struct name_list
Jeremy Allison [Tue, 25 Nov 2008 23:54:53 +0000 (15:54 -0800)]
Fix bug #5914 - Build failure: redefinition of struct name_list
Jeremy.
(cherry picked from commit 528e01f402e54f8d6c1b74a5b7647c037f456412)

15 years agoWHATSNEW: Update changes and release date.
Karolin Seeger [Wed, 26 Nov 2008 10:20:03 +0000 (11:20 +0100)]
WHATSNEW: Update changes and release date.

Karolin
(cherry picked from commit b2b19535d5e5356ec7dcf97c2d550fdd01a02b27)

15 years agos3-samr: fix _samr_LookupNames return code.
Günther Deschner [Tue, 25 Nov 2008 11:19:35 +0000 (12:19 +0100)]
s3-samr: fix _samr_LookupNames return code.

Guenther
(cherry picked from commit dc7c2d63b3ce142959aa863f000fa9140de99eb0)

15 years agos3-libnetjoin: fix build warning.
Günther Deschner [Fri, 21 Nov 2008 14:56:30 +0000 (15:56 +0100)]
s3-libnetjoin: fix build warning.

Guenther
(cherry picked from commit 3e529fb619384e694e01204ca305e2a13724defd)

15 years agos3-libnetjoin: try to show a better error message upon invalid configuration.
Günther Deschner [Thu, 6 Nov 2008 12:37:03 +0000 (13:37 +0100)]
s3-libnetjoin: try to show a better error message upon invalid configuration.

Guenther
(cherry picked from commit 0e99fe1855c66e9743725d43ba92ec59f35f5b55)

15 years agoWHATSNEW: add more items.
Günther Deschner [Fri, 21 Nov 2008 22:28:23 +0000 (23:28 +0100)]
WHATSNEW: add more items.

Guenther
(cherry picked from commit ffca48241731d416090215b194da5f8047303329)

15 years agozfsacl: "return" is not a function.
Michael Adam [Mon, 24 Nov 2008 15:35:41 +0000 (16:35 +0100)]
zfsacl: "return" is not a function.

Michael
(cherry picked from commit 7518cbbad3d866253c03d4d080d0880e343499c5)

15 years agozfsacl: Prevent calling POSIX ACL vfs methods on zfs share.
Nils Goroll [Mon, 17 Nov 2008 00:06:28 +0000 (01:06 +0100)]
zfsacl: Prevent calling POSIX ACL vfs methods on zfs share.

This is a proposed fix for Bugs #5135 and #5446.

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit a9f20b4f4283904478e21a109bede26c8685b056)

15 years ago[PATCH] Allow SYSLOG_FACILITY to be modified with a new configure option called ...
Dan Sledz [Mon, 17 Nov 2008 01:40:03 +0000 (17:40 -0800)]
[PATCH] Allow SYSLOG_FACILITY to be modified with a new configure option called --with-syslog-facility
(cherry picked from commit 9e74113ecdad2df46b3a77d195e37a38c7e77d3d)

15 years agoFix bug #5873 - ACL inheritance cannot be broken. This regresses #4308, but that...
Jeremy Allison [Mon, 24 Nov 2008 23:28:53 +0000 (15:28 -0800)]
Fix bug #5873 - ACL inheritance cannot be broken. This regresses #4308, but that will have to
be fixed another way.
Jeremy.
(cherry picked from commit fa7a8f051debefa4e061b167a6906785d90deada)

15 years agoFix to allow setting of NULL DACL/SACL
Steven Danneman [Mon, 24 Nov 2008 20:05:09 +0000 (12:05 -0800)]
Fix to allow setting of NULL DACL/SACL

This is a modification of Jeremy's 7522ef15aca2429ef57c75d8297dd8121e79c9da
commit.

If no DACL/SACL is present in the packet, the SEC_INFO field should still be
passed down as is to the VFS layer to signal the creation of a NULL DACL/SACL.

As seen in metze RAW-ACL test_nttrans_create_null_dacl(), a NULL DACL is set
regardless of the SEC_DESC_DACL_PRESENT bit being set.
(cherry picked from commit fc064837fbf84726ad66b16ef6e1f8c67d47a1fe)

15 years agoSearch for gpfs functions in both libgpfs_gpl.so an libgpfs.so
Mathias Dietz [Wed, 12 Nov 2008 13:32:45 +0000 (14:32 +0100)]
Search for gpfs functions in both libgpfs_gpl.so an libgpfs.so

As of GPFS 3.2.1 PTF8 libgpfs will be available as GPL, so we don't need the
special libgpfs_gpl lib anymore. For backwards compatibility with pre-PTF8 GPFS
installations, still look there.
(cherry picked from commit 61468186cece7370576a2d13992f9a523067e4be)

15 years agolibads/ldap.c: return an error instead of crashing when no realm is given
Stefan Metzmacher [Mon, 24 Nov 2008 14:07:56 +0000 (15:07 +0100)]
libads/ldap.c: return an error instead of crashing when no realm is given

The bug was triggered by "net ads info -S 127.8.7.6" (where 127.8.7.6 doesn't exist)
and "disable netbios = yes".

metze

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit e2a60d2e1fd7455f08e73f8d1c513ca240c0f0af)

15 years agotags: Ignore include/proto.h from tag generation
Kai Blin [Sun, 23 Nov 2008 21:31:12 +0000 (22:31 +0100)]
tags: Ignore include/proto.h from tag generation
(cherry picked from commit 66d8109119d4a840584bda42b4bb98d2c7ee2417)

15 years agonfs4_acls: make prototype header match definition for smb_set_nt_acl_nfs4()
Michael Adam [Sat, 22 Nov 2008 00:51:41 +0000 (01:51 +0100)]
nfs4_acls: make prototype header match definition for smb_set_nt_acl_nfs4()

Add the const from nfs4_acls.c to nfs4_acls.h
This fixes my build of the zfsacl module on solaris.

Michael
(cherry picked from commit 5572b01ae515405ca0da3d2913fe30294caa3516)

15 years agoRevert f268d75f5ed1258b08c5571780ea3be6724daed4 - "Fix the logic bug that caused...
Jeremy Allison [Sat, 22 Nov 2008 06:46:37 +0000 (22:46 -0800)]
Revert f268d75f5ed1258b08c5571780ea3be6724daed4 - "Fix the logic bug that caused us to
run into kernel oplocks on an open for a stream inside a file with stream_xattr module. On
opening the base_fsp we must break existing oplocks." as it broke make test.
Jeremy
(cherry picked from commit 11c4962cf6b6e6f66f5ce5788b331d43bd743248)

15 years agoFix the logic bug that caused us to run into kernel oplocks on an open for a stream...
Jeremy Allison [Sat, 22 Nov 2008 02:20:55 +0000 (18:20 -0800)]
Fix the logic bug that caused us to run into kernel oplocks on an open for a stream inside a file with stream_xattr module. On opening the base_fsp we must break existing oplocks.
Jeremy.
(cherry picked from commit f268d75f5ed1258b08c5571780ea3be6724daed4)

15 years ago[PATCH] FreeBSD configure check for backtrace_symbols
Dan Sledz [Sat, 15 Nov 2008 02:41:17 +0000 (18:41 -0800)]
[PATCH] FreeBSD configure check for backtrace_symbols

On FreeBSD backtrace_symbols is defined in libexecinfo.so.1.  Look for it
there as well.
(cherry picked from commit a56572994ee1de318172321e301be1ec4c1b6a8f)

15 years agoUse fxattr calls whenever possible (trying to work around the strange Linux kernel...
Jeremy Allison [Sat, 22 Nov 2008 00:03:35 +0000 (16:03 -0800)]
Use fxattr calls whenever possible (trying to work around the strange Linux kernel oplock bug).
Jeremy.
(cherry picked from commit e8eabd9275389799f7ec9fcf62ff864aeea6312c)

15 years agowinbindd: make all winbind rpc-methods static.
Michael Adam [Fri, 21 Nov 2008 23:02:40 +0000 (00:02 +0100)]
winbindd: make all winbind rpc-methods static.

Now that the methods are no longer needed in winbindd_ads,
we can make them static again.

Michael
(cherry picked from commit cfc77901cace0f6ce241a5873148092e4edac4de)

15 years agos3-winbindd_ads: use the reconnect methods instead of the rpc methods directly
Michael Adam [Fri, 21 Nov 2008 01:26:50 +0000 (02:26 +0100)]
s3-winbindd_ads: use the reconnect methods instead of the rpc methods directly

Some of the ads methods just point to the rpc methods.
This makes winbindd_ads use the reconnect methods instead of
calling the rpc methods directly in order to prevent
negative cache entries for e.g. name_to_sid, when the dc
has closed the connection without sending a reset.

Michael
(cherry picked from commit b89d75a093ef87bc7cccb8914d246c8e932f0352)

15 years agowinbindd_ads: prevent negative GM/ cache entries due to broken connections
Michael Adam [Thu, 20 Nov 2008 15:57:44 +0000 (16:57 +0100)]
winbindd_ads: prevent negative GM/ cache entries due to broken connections

The ads lookup_groupmem() function calls lda_lookupsids to resolve sids
to names. This is tried only once. So in case the connection was broken,
e.g. closed by the server (without a reset packet), there will be an empty
GM/ cache entry for the requested group which will prevent proper working
of access checks among other checks for the expiry period.

This patch works around this problem by retrying once if the lsa_lookupsids
call fails, re-establishing the dc-connection, as we already do in many other
places (e.g. the winbindd retry methods for the rpc layer).

Michael
(cherry picked from commit c833b19b0c3e746b53e6731988cd8bb6aca927f5)

15 years agowinbindd_group: don't list the domain twice when expanding internal aliases
Michael Adam [Sun, 21 Sep 2008 00:07:43 +0000 (02:07 +0200)]
winbindd_group: don't list the domain twice when expanding internal aliases

Before this, "getent group builtin\\administrators" expanded
domain group members in the form DOMAIN\domain\user.

Michael
(cherry picked from commit 7204116c9edcd98ea20cbc5f29e5f25737f78a41)

15 years agowinbindd_group: sanely handle NULL domain in add_member().
Michael Adam [Sun, 21 Sep 2008 00:06:44 +0000 (02:06 +0200)]
winbindd_group: sanely handle NULL domain in add_member().

Michael
(cherry picked from commit 3c286b1e7a1dbf68f57eca9d60e1c1bd49a4091c)

15 years agowinbindd_ads: honour "winbind use default domain" in lookup_groupmem().
Michael Adam [Mon, 22 Sep 2008 08:39:37 +0000 (10:39 +0200)]
winbindd_ads: honour "winbind use default domain" in lookup_groupmem().

This fixes the output of "getent group" when "winbind use default domain = yes"
with security = ads.

Michael
(cherry picked from commit 39e04a65056d3c82ede8c283918e4dc505875b63)

15 years agowinbindd_rpc: add domain prefix to username in lookup_groupmem().
Michael Adam [Sat, 20 Sep 2008 23:20:32 +0000 (01:20 +0200)]
winbindd_rpc: add domain prefix to username in lookup_groupmem().

This makes the output of "getent group" of a domain group show the
domain prefix with "security = domain".

Michael
(cherry picked from commit a2667f18957233bee80dd5214e20f3f031f0a354)

15 years agowinbindd_util: add fill_domain_username_talloc().
Michael Adam [Mon, 22 Sep 2008 08:37:11 +0000 (10:37 +0200)]
winbindd_util: add fill_domain_username_talloc().

A talloc version of fill_domain_username().

Michael
(cherry picked from commit 54890450e23da8642e3b4c8224e04a7af5d98d15)

15 years agowinbindd_util: add prototype for fill_domain_username_talloc().
Michael Adam [Mon, 22 Sep 2008 08:36:32 +0000 (10:36 +0200)]
winbindd_util: add prototype for fill_domain_username_talloc().

A talloc version of fill_domain_username().

Michael
(cherry picked from commit 83cb69c6ad02e607f0ca90848f72ae2f1c3a67c7)

15 years agowinbindd: fix a comment typo
Michael Adam [Mon, 22 Sep 2008 12:51:51 +0000 (14:51 +0200)]
winbindd: fix a comment typo

Michael
(cherry picked from commit cb5b2410d4ae16aa9afa022c3b60cfb8d46d25e9)

15 years agoSecond part of the fix for bug #5903 - vfs_streams_xattr breaks contents of the file
Jeremy Allison [Fri, 21 Nov 2008 20:53:53 +0000 (12:53 -0800)]
Second part of the fix for bug #5903 - vfs_streams_xattr breaks contents of the file
Jeremy.
(cherry picked from commit 019dcf49572404b1cb3c12aca4e7eaa052aeeedd)

15 years agoEnsure we always reply in reply_printopen().
Jeremy Allison [Fri, 21 Nov 2008 19:09:02 +0000 (11:09 -0800)]
Ensure we always reply in reply_printopen().
Jeremy.
(cherry picked from commit e0744713f2959446c918f817f0c602ba370eed77)

15 years agoFirst part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.
Jeremy Allison [Fri, 21 Nov 2008 18:57:20 +0000 (10:57 -0800)]
First part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.
Restructures parts of open code so that fsp must be allocated before calling
open_file_ntcreate(_internal). Also fix up file ref-counting inside files.c.
Jeremy.
(cherry picked from commit b2626032626dcccd660c047f91130e81e380ae17)

15 years agokrb5_locator: use wbcLookupDomainControllerEx() for query.
Günther Deschner [Fri, 21 Nov 2008 16:33:22 +0000 (17:33 +0100)]
krb5_locator: use wbcLookupDomainControllerEx() for query.

Guenther
(cherry picked from commit b63b4028ed8823626a956bb437e275a1b1432483)

15 years agos3-winbindd: use new, richer structures in WINBINDD_DSGETDCNAME implementation.
Günther Deschner [Sat, 27 Sep 2008 01:09:07 +0000 (03:09 +0200)]
s3-winbindd: use new, richer structures in WINBINDD_DSGETDCNAME implementation.

Guenther
(cherry picked from commit df554493c74ea611bfc5d890a4c2eca6eb3106d1)

15 years agopam_winbind: fix some invalid blob handling.
Günther Deschner [Wed, 12 Nov 2008 13:27:51 +0000 (14:27 +0100)]
pam_winbind: fix some invalid blob handling.

Guenther
(cherry picked from commit f84fe8b0025850b31560f149ebaa27cf5a504694)

15 years agoCreate a function out of pam_sm_close_session to delete the credentials.
Andreas Schneider [Fri, 21 Nov 2008 10:39:01 +0000 (11:39 +0100)]
Create a function out of pam_sm_close_session to delete the credentials.

This is the way the creds should be deleted. Now we have back a
close_session function which can be used for other things.
(cherry picked from commit e451daf4c2e1a6de6c109e88243b535d7e15cb35)

15 years agoDelete the krb5 ccname variable from the PAM environment if set.
Andreas Schneider [Mon, 20 Oct 2008 12:54:11 +0000 (14:54 +0200)]
Delete the krb5 ccname variable from the PAM environment if set.

If winbind sets the KRB5CCNAME variable it should unset it when
the cache gets destroyed.
(cherry picked from commit b656b672a3216829f3488734b058dd9f86409e5b)

15 years agoSet the right return value if wbc_status is set to an error.
Günther Deschner [Fri, 21 Nov 2008 10:34:52 +0000 (11:34 +0100)]
Set the right return value if wbc_status is set to an error.

Guenther
(cherry picked from commit 458a65b409f25f913a8122b320b38d1669137f06)

15 years agopam_winbind: document mkhomedir option.
Günther Deschner [Thu, 14 Aug 2008 12:41:50 +0000 (14:41 +0200)]
pam_winbind: document mkhomedir option.

Guenther
(cherry picked from commit 69109cd0b896ce7dfbe04b713367c8f1c933dc98)

15 years agopam_winbind: re-add mkhomedir option.
Günther Deschner [Fri, 21 Nov 2008 10:33:52 +0000 (11:33 +0100)]
pam_winbind: re-add mkhomedir option.

Guenther
(cherry picked from commit 6a2d15f1de9fb7b93a31129139dea667303393db)

15 years agopam_winbind: remove unused pam_winbind_request().
Günther Deschner [Fri, 29 Aug 2008 14:12:04 +0000 (16:12 +0200)]
pam_winbind: remove unused pam_winbind_request().

Guenther
(cherry picked from commit e878e876b5ebc46536d83995c5bccd11c8f23b82)

15 years agopam_winbind: fix wbc_auth_error_to_pam_error().
Günther Deschner [Tue, 19 Aug 2008 12:52:24 +0000 (14:52 +0200)]
pam_winbind: fix wbc_auth_error_to_pam_error().

Guenther
(cherry picked from commit 4e8e29174146e324ae0fb5af6799b256d49e05ab)

15 years agopam_winbind: remove some unused macros.
Günther Deschner [Mon, 25 Aug 2008 12:35:42 +0000 (14:35 +0200)]
pam_winbind: remove some unused macros.

Guenther
(cherry picked from commit 47a32ce25b29e189ce424f860bb4f624e6f39147)

15 years agopam_winbind: use wbclient equivalents for ACB_PWNOEXP and some NETLOGON flags.
Günther Deschner [Tue, 19 Aug 2008 12:48:23 +0000 (14:48 +0200)]
pam_winbind: use wbclient equivalents for ACB_PWNOEXP and some NETLOGON flags.

Guenther
(cherry picked from commit 69fd76d15bb8acdb1cc452ab68e1c4e65adbedcb)

15 years agopam_winbind: use libwbclient for WINBINDD_PAM_AUTH.
Günther Deschner [Tue, 19 Aug 2008 09:07:59 +0000 (11:07 +0200)]
pam_winbind: use libwbclient for WINBINDD_PAM_AUTH.

Guenther
(cherry picked from commit 26ca8d5504f1ef56355eb5ece88b1ac728869737)

15 years agopam_winbind: use libwbclient for WINBINDD_PAM_LOGOFF.
Günther Deschner [Fri, 21 Nov 2008 10:31:01 +0000 (11:31 +0100)]
pam_winbind: use libwbclient for WINBINDD_PAM_LOGOFF.

Guenther
(cherry picked from commit 18f1585539bb306101f3471103a2936c2dfd0aa3)

15 years agopam_winbind: use libwbclient for WINBINDD_PAM_CHAUTHTOK.
Günther Deschner [Fri, 21 Nov 2008 10:22:07 +0000 (11:22 +0100)]
pam_winbind: use libwbclient for WINBINDD_PAM_CHAUTHTOK.

Guenther
(cherry picked from commit a820f7c960c12f924c60fb9978543106e286e27f)

15 years agopam_winbind: use libwbclient for WINBINDD_LOOKUPNAME/LOOKUPSID.
Günther Deschner [Thu, 14 Aug 2008 21:33:12 +0000 (23:33 +0200)]
pam_winbind: use libwbclient for WINBINDD_LOOKUPNAME/LOOKUPSID.

Guenther
(cherry picked from commit 252715060fca9fd75b899a6df3ff65b67aad4ec8)

15 years agopam_winbind: use libwbclient for WINBINDD_INFO.
Günther Deschner [Thu, 14 Aug 2008 16:17:00 +0000 (18:17 +0200)]
pam_winbind: use libwbclient for WINBINDD_INFO.

Guenther
(cherry picked from commit 9c11f1a9d174d800696640671894e7071292444f)

15 years agopam_winbind: use libwbclient for WINBINDD_GETPWNAM.
Günther Deschner [Thu, 14 Aug 2008 16:15:29 +0000 (18:15 +0200)]
pam_winbind: use libwbclient for WINBINDD_GETPWNAM.

Guenther
(cherry picked from commit d1821ad64960308bae9ad34ab53f565be4f5c967)

15 years agopam_winbind: add _pam_check_remark_auth_err().
Günther Deschner [Tue, 19 Aug 2008 11:36:39 +0000 (13:36 +0200)]
pam_winbind: add _pam_check_remark_auth_err().

Guenther
(cherry picked from commit 1bf5777bf2f45c44e2e53617a01ebbffc05c330e)

15 years agopam_winbind: add wbc_auth_error_to_pam_error().
Günther Deschner [Tue, 19 Aug 2008 08:59:18 +0000 (10:59 +0200)]
pam_winbind: add wbc_auth_error_to_pam_error().

Guenther
(cherry picked from commit 6e0f91ad93e75f0f00f157c1e8eaab5b4f0f54f3)

15 years agopam_winbind: add wbc_error_to_pam_error().
Günther Deschner [Fri, 15 Aug 2008 01:13:18 +0000 (03:13 +0200)]
pam_winbind: add wbc_error_to_pam_error().

Guenther
(cherry picked from commit b779820cabf0e2885526a72cae62e775588a6bab)

15 years agopam_winbind: prepare to use libwbclient inside pam_winbind.
Günther Deschner [Fri, 21 Nov 2008 10:16:11 +0000 (11:16 +0100)]
pam_winbind: prepare to use libwbclient inside pam_winbind.

Guenther
(cherry picked from commit 3b93b9d65b0cb057887e8d286fc6c3bb06e1e7d1)

15 years agopam_winbind: convert to use talloc.
Günther Deschner [Fri, 21 Nov 2008 10:13:42 +0000 (11:13 +0100)]
pam_winbind: convert to use talloc.

Guenther
(cherry picked from commit 76be70a7190327f1bcd2ea240591a139830d580f)

15 years agoUse talloc_stackframe() in machine_password_change_handler (This used to be commit...
Volker Lendecke [Sat, 23 Aug 2008 11:12:36 +0000 (13:12 +0200)]
Use talloc_stackframe() in machine_password_change_handler (This used to be commit 79103000b13c95325534db749a0da638a3eb1807)
(cherry picked from commit 72a2b9615025c249c7cf1376ebeeb6a29537504f)

15 years agoFix a memleak in calculate_next_machine_pwd_change (This used to be commit 5314f06dcd...
Volker Lendecke [Sat, 23 Aug 2008 11:12:05 +0000 (13:12 +0200)]
Fix a memleak in calculate_next_machine_pwd_change (This used to be commit 5314f06dcdf14ce5e038a03a3e4dfded227bd00c)
(cherry picked from commit fa20fa5d243ee640f5d564525358c1f5ba2df3a7)

15 years agolibwbclient: add wbcLogonUser().
Günther Deschner [Fri, 10 Oct 2008 13:18:02 +0000 (15:18 +0200)]
libwbclient: add wbcLogonUser().

Guenther
(cherry picked from commit 80025324a944d74df4df883e7e9987533c8f1356)

15 years agolibwbclient: add wbcLogoffUserEx().
Günther Deschner [Fri, 15 Aug 2008 11:53:23 +0000 (13:53 +0200)]
libwbclient: add wbcLogoffUserEx().

Guenther
(cherry picked from commit 9a24e73f5112cfb0a9378dee0d82340f3de8e363)

15 years agolibwbclient: add wbcAddNamedBlob.
Günther Deschner [Wed, 24 Sep 2008 23:31:12 +0000 (01:31 +0200)]
libwbclient: add wbcAddNamedBlob.

Guenther
(cherry picked from commit 095fe83f9d3115cefc876a62b012d3b12f9f68c3)

15 years agolibwbclient: add wbcBlob and wbcNamedBlob.
Günther Deschner [Fri, 10 Oct 2008 08:54:06 +0000 (10:54 +0200)]
libwbclient: add wbcBlob and wbcNamedBlob.

Guenther
(cherry picked from commit d56cb98cd3a17f2847d088ed6187969fe51db740)

15 years agoWHATSNEW: add some more items.
Günther Deschner [Fri, 21 Nov 2008 00:47:42 +0000 (01:47 +0100)]
WHATSNEW: add some more items.

Guenther
(cherry picked from commit b2b5946c2419482eaf7064b69a569cb3cfc1a8d7)

15 years agos3-winbindd: for now only change machine pwd when not using a system krb5 keytab.
Günther Deschner [Thu, 20 Nov 2008 23:53:11 +0000 (00:53 +0100)]
s3-winbindd: for now only change machine pwd when not using a system krb5 keytab.

Guenther
(cherry picked from commit 43991cd0ef972ebefabb0318a630403b9e42b67b)

15 years agowinbindd: only create machine pwd change event when in primary domain child.
Günther Deschner [Mon, 25 Aug 2008 09:37:57 +0000 (11:37 +0200)]
winbindd: only create machine pwd change event when in primary domain child.

Guenther
(This used to be commit 543dfdc1cf6baf60bffc23c6aebc542fd58d2d2e)
(cherry picked from commit 61f51d78b34f1ed80cef9758cdcded6f6fa82c19)

15 years agowinbindd: add event based machine password change.
Günther Deschner [Wed, 20 Aug 2008 23:20:22 +0000 (01:20 +0200)]
winbindd: add event based machine password change.

Guenther
(This used to be commit 15b72d44cbde0b8a375d8ed3d045c40ae97ec05a)
(cherry picked from commit 4721049e840846c2ac4ba829c5eb669576b0fa0f)

15 years agoFix bug #5909 - MS-DFS does not work on Vista, if link name includes multibyte character.
Yasuma Takeda [Thu, 20 Nov 2008 19:38:16 +0000 (11:38 -0800)]
Fix bug #5909 - MS-DFS does not work on Vista, if link name includes multibyte character.
(cherry picked from commit 3209e3b2c6cfdbcc9ac543e98e467e8a5d2c17ea)

15 years agoSecond part of fix for bug #5891 - smbd crashed when viewing the eventlog exported...
Jeremy Allison [Thu, 20 Nov 2008 18:54:28 +0000 (10:54 -0800)]
Second part of fix for bug #5891 - smbd crashed when viewing the eventlog exported by "eventlog list". Don't leak memory on error paths.
Jeremy.
(cherry picked from commit 0b795902f4c0f72697b33d3301942ab38ffe12c9)

15 years agoThe IRIX compiler does not like embedded unnamed unions.
Günther Deschner [Wed, 19 Nov 2008 16:20:44 +0000 (17:20 +0100)]
The IRIX compiler does not like embedded unnamed unions.
(cherry picked from commit a9682737efb7bf931a7d54e671fa17b2c9dfac5e)

15 years agos3-nbt: remove double nbt netlogon opcodes.
Günther Deschner [Wed, 24 Sep 2008 07:05:37 +0000 (09:05 +0200)]
s3-nbt: remove double nbt netlogon opcodes.

Guenther
(cherry picked from commit 81fde585516957b6a7742e0168c68df33572ed74)
(cherry picked from commit cae36caaaea944bf18a0d956da2d241c0fe563b5)

15 years agos3: fix all mailslot/nbt/cldap callers.
Günther Deschner [Tue, 23 Sep 2008 19:08:25 +0000 (21:08 +0200)]
s3: fix all mailslot/nbt/cldap callers.

Guenther
(cherry picked from commit 8ea883bfda3671009d37c94ca638e40cbfb94311)

15 years agos3: copy nbt/netlogon helper from s4.
Günther Deschner [Wed, 19 Nov 2008 14:40:50 +0000 (15:40 +0100)]
s3: copy nbt/netlogon helper from s4.

Guenther
(cherry picked from commit 47a25d1723cae31a8b5ad2a50f1a8fc98a270b5a)

15 years agos3: re-run make idl.
Günther Deschner [Tue, 23 Sep 2008 06:58:37 +0000 (08:58 +0200)]
s3: re-run make idl.

Guenther
(cherry picked from commit 9f23e65bdd011ba0d632ef70dfa057af84c9cbe0)

15 years agos3-nbt: full merge of s4 nbt idl.
Günther Deschner [Tue, 23 Sep 2008 06:31:34 +0000 (08:31 +0200)]
s3-nbt: full merge of s4 nbt idl.

Guenther
(cherry picked from commit 9732c5e0f86c9c4c156a951dbfd26ddd43395088)

15 years agoeventlog: don't crash in sync_eventlog_params().
Michael Adam [Thu, 20 Nov 2008 15:31:44 +0000 (16:31 +0100)]
eventlog: don't crash in sync_eventlog_params().

When freeing the talloc ctx at the end of the routine,
it must be a talloc ctx created inside. talloc_tos() needs
to be valid after the function finishes, since callers
(may) have data attached to it.

Michael

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 113c5d28edabdd17a2507e68aad612aa21c758f3)

15 years agoRe-structure Volker's patch to "Fix trans2findfirst for the large directory optimizat...
Jeremy Allison [Tue, 18 Nov 2008 18:58:33 +0000 (10:58 -0800)]
Re-structure Volker's patch to "Fix trans2findfirst for the large directory optimization". Makes the change clearer.
Jeremy.

15 years agoWHATSNEW: Update changes since 3.3.0pre2.
Karolin Seeger [Thu, 20 Nov 2008 09:22:09 +0000 (10:22 +0100)]
WHATSNEW: Update changes since 3.3.0pre2.

Karolin
(cherry picked from commit e543bcc4e9da7c6e4cbfab7082a09eaefb48ed6b)

15 years agoThis code mixes up int and uint32 when pulling out of a TDB. This is very bad. Fixing...
Jeremy Allison [Thu, 20 Nov 2008 00:48:03 +0000 (16:48 -0800)]
This code mixes up int and uint32 when pulling out of a TDB. This is very bad. Fixing... May fix bug #5891, not sure.
Jeremy.
(cherry picked from commit 01c03b8c618ad1ae19dc72e0f254779b0569adeb)

15 years agos3-winbindd: workaround for samr_ChangePasswordUser3 to User2 fallback for w2k dcs.
Günther Deschner [Thu, 13 Nov 2008 16:19:11 +0000 (17:19 +0100)]
s3-winbindd: workaround for samr_ChangePasswordUser3 to User2 fallback for w2k dcs.

Guenther
(cherry picked from commit c9f57fa84a33572b4888dd01688760eb34971a51)

15 years agoAdd functions to delete NTACL on posix ACL set.
Jeremy Allison [Wed, 19 Nov 2008 20:25:16 +0000 (12:25 -0800)]
Add functions to delete NTACL on posix ACL set.
Jeremy.
(cherry picked from commit 0c4d1d187bb93e65c7de38071cf54e8554b150b9)

15 years agos3-docs: fix typos in locator manpage found by metze.
Günther Deschner [Thu, 23 Oct 2008 14:44:29 +0000 (16:44 +0200)]
s3-docs: fix typos in locator manpage found by metze.

Guenther
(cherry picked from commit ae1abe843a349d55eb8d606f79a7753804a82547)
(cherry picked from commit 66937b060ad54e9b6633abb35c2956b546c1bba1)

15 years agos3-docs: add very basic winbind_krb5_locator.7 manpage.
Günther Deschner [Thu, 23 Oct 2008 14:40:23 +0000 (16:40 +0200)]
s3-docs: add very basic winbind_krb5_locator.7 manpage.

Guenther
(cherry picked from commit 90d3cac55f12b34f69f8f366b044dc6382a1a153)
(cherry picked from commit 78b28c15515bed295c7853d4294ea4f1838a3f9d)

15 years agoFix bug #5904 - libnss_wins causes SIGABRT while servicing getaddrinfo() request.
Jeremy Allison [Wed, 19 Nov 2008 19:22:00 +0000 (11:22 -0800)]
Fix bug #5904 - libnss_wins causes SIGABRT while servicing getaddrinfo() request.
Jeremy.
(cherry picked from commit 543e5ff596e69aa14576ae2dfa6d37fa7247fe28)

15 years agolibwbclient: fix wbcAuthenticateUserEx() to not ignore provided flags field.
Günther Deschner [Fri, 10 Oct 2008 13:13:14 +0000 (15:13 +0200)]
libwbclient: fix wbcAuthenticateUserEx() to not ignore provided flags field.

Guenther
(cherry picked from commit 08d3918cf8773f1a3f67a82123ebe006ea581e4e)
(cherry picked from commit 309f02b20f8a83508eb639889058993fede34bc4)

15 years agobuild-docs: Use 'git clean' instead of 'git-clean'.
Karolin Seeger [Wed, 19 Nov 2008 12:16:38 +0000 (13:16 +0100)]
build-docs: Use 'git clean' instead of 'git-clean'.

Karolin
(cherry picked from commit 12e72140b944f844e7f44f21a087ab4a4ecc51a7)
(cherry picked from commit f13c2da16d62c9279a84c4a2da1b52c7b6d38fac)

15 years agomanpages: Document new wbinfo idmapping options.
Karolin Seeger [Wed, 19 Nov 2008 12:08:41 +0000 (13:08 +0100)]
manpages: Document new wbinfo idmapping options.

--set-uid/gid-mapping
--remove-uid/gid-mapping

Karolin
(cherry picked from commit c9965d544f615fea1ba3609d7348407130ab1ec9)

15 years agoWHATSNEW: Update changes since 3.3.0pre2.
Karolin Seeger [Wed, 19 Nov 2008 12:08:00 +0000 (13:08 +0100)]
WHATSNEW: Update changes since 3.3.0pre2.

Karolin
(cherry picked from commit 88d2c5a8a4b770f2bdd70fa7c58733d572d619f1)

15 years ago[PATCH] Clean-up various trailing space and >80 column lines.
Steven Danneman [Tue, 28 Oct 2008 06:36:36 +0000 (23:36 -0700)]
[PATCH] Clean-up various trailing space and >80 column lines.
(cherry picked from commit b72335fc9771ec815f3a32b6e0d9f5fb9faebc18)

15 years ago[PATCH] Added ability to remove id mappings in wbinfo and libwbclient.
Steven Danneman [Tue, 28 Oct 2008 06:37:55 +0000 (23:37 -0700)]
[PATCH] Added ability to remove id mappings in wbinfo and libwbclient.

The idmap_tdb backend already provides an interface to remove existing id
mappings.  This commit plumbs that ability up through, winbindd, libwbclient,
and wbinfo.

Added new winbindd command:
        WINBINDD_REMOVE_MAPPING
Added new libwbclient interfaces:
        wbcRemoveUidMapping() and wbcRemoveGidMapping()
Added new wbinfo options:
        --remove-uid-mapping
        --remove-gid-mapping

Increased libwbclient version to 0.2
Increased winbind interface version to 20
(cherry picked from commit 2ebab00716509617f1980beacee09c85b6b13b91)

15 years ago[PATCH] Added ability to set id mappings in wbinfo.
Steven Danneman [Tue, 28 Oct 2008 06:46:44 +0000 (23:46 -0700)]
[PATCH] Added ability to set id mappings in wbinfo.

The two new parameters are:

--set-uid-mapping
--set-gid-mapping

These allow wbinfo to create new, or override existing id mappings in the
idmap backend.  These expose the exisiting ability of libwbclient
and winbindd to do this, up through a command line utility.
(cherry picked from commit c32dff226aa08dcbd1961bcafa61c0fdff3ecebc)

15 years agonetlogon: move password change code out to rpccli_netlogon_set_trust_password.
Günther Deschner [Sun, 21 Sep 2008 16:57:26 +0000 (18:57 +0200)]
netlogon: move password change code out to rpccli_netlogon_set_trust_password.

Guenther
(cherry picked from commit 9f168f594e25857bd71bbc97dab25ae6d2884e95)