summaryrefslogtreecommitdiff
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* CVE-2016-2125: s3:gse: avoid using GSS_C_DELEG_FLAGStefan Metzmacher2016-12-091-1/+0
| | | | | | | | | | | | We should only use GSS_C_DELEG_POLICY_FLAG in order to let the KDC decide if we should send delegated credentials to a remote server. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12445 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Simo Sorce <idra@samba.org>
* printing: Fix building with CUPS version older than 1.7Andreas Schneider2016-12-061-0/+6
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12183 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org>
* s3/smbd: fix the last resort check that sets the file type attributeJeremy Allison2016-12-011-6/+4
| | | | | | | | | | | | | | | | | | | | | | The rule is, a directory (with any other attributes) should always also set FILE_ATTRIBUTE_DIRECTORY, a file should only set FILE_ATTRIBUTE_NORMAL if no other attributes is set. Iow, if a file contains any existing attributes (e.g. FILE_ATTRIBUTE_HIDDEN), don't add in the FILE_ATTRIBUTE_NORMAL attribute. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12436 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Sat Nov 19 11:55:35 CET 2016 on sn-devel-144 (cherry picked from commit a0783e8dd966a0b2d24d2ca5baa6bed3fe5a7d5a) Autobuild-User(v4-5-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-5-test): Thu Dec 1 15:16:56 CET 2016 on sn-devel-144
* s3:spoolss: Add support for COPY_FROM_DIRECTORY in AddPrinterDriverExAndreas Schneider2016-11-303-20/+96
| | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12415 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 4d9f4bfc69a5899bdf91406dfb7efb70a530446c)
* spoolss: Use correct values for secdesc and devmode pointersGünther Deschner2016-11-182-4/+4
| | | | | | | | | | | | | | | | ULONG_PTR needs to be decoded as a uint3264 and not as a 'uint32 *'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11197 Guenther Pair-Programmed-With: Andreas Schneider <asn@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 73f664710a8c9b312a54d0cf41d2f4440c8b42eb)
* s3-printing: Allow printer names longer than 16 charsAndreas Schneider2016-11-141-18/+37
| | | | | | | | | | | | | | | Printers with long names are supported in the meantime. However we issue a warning that if one printer exceeeds 15 chars we warn about it. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12195 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 2611fd02a0a6a0a0a506df70fe1a1eb4a2e76062) Autobuild-User(v4-5-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-5-test): Mon Nov 14 16:18:40 CET 2016 on sn-devel-144
* s3-printing: Correctly encode CUPS printer URIsAndreas Schneider2016-11-141-18/+110
| | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12183 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit c160ae9afb222466c50ae170447a6a0805f7169f)
* vfs:glusterfs: preallocate result for glfs_realpathMichael Adam2016-11-071-1/+14
| | | | | | | | | | | | | | | | | | https://bugzilla.samba.org/show_bug.cgi?id=12404 This makes us independent of the allocation method used inside glfs_realpath. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Ira Cooper <ira@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Oct 22 00:28:41 CEST 2016 on sn-devel-144 (cherry picked from commit 92a0a56c3852726e0812d260e043957c879aefa4) Autobuild-User(v4-5-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-5-test): Mon Nov 7 12:44:46 CET 2016 on sn-devel-144
* s3-winbind: Do not return NO_MEMORY if we have an empty user listAndreas Schneider2016-11-041-0/+4
| | | | | | | | | | | | | | | The domain child for the MACHINE ACCOUNT might fail with NT_STATUS_NO_MEMORY because an emtpy user list is returned. *pnum_info is already set to 0 at the beginngin so we should just declare victory here! BUG: https://bugzilla.samba.org/show_bug.cgi?id=12405 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit e714dc03e0ccf9ec17da6bacc1bcfcaea7518e22)
* s3:smbd: only pass UCF_PREP_CREATEFILE to filename_convert() if we may ↵Stefan Metzmacher2016-10-315-26/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | create a new file This fixes a regression introduced by commit f98d10af2a05f0261611f4cabdfe274cd9fe91c0 (smbd: Always use UCF_PREP_CREATEFILE for filename_convert calls to resolve a path for open) The main problem was that Windows client seem to verify the access to user.V2\ntuser.ini is rejected with NT_STATUS_ACCESS_DENIED, using the machine credentials. Passing UCF_PREP_CREATEFILE to filename_convert() triggers a code path that implements a dropbox behaviour. A dropbox is a directory with only -wx permissions, so get_real_filename fails with EACCESS, it needs to list the directory. EACCESS is ignored with UCF_PREP_CREATEFILE. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10297 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 25 05:33:36 CEST 2016 on sn-devel-144 (cherry picked from commit 759416582c54a16aacbef0e0dfe4649bddff8c5e)
* s3: vfs: streams_depot. Use conn->connectpath not conn->cwd.Jeremy Allison2016-10-311-1/+2
| | | | | | | | | | | | | | | conn->cwd can change over the life of the connection, conn->connectpath remains static. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12387 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Uri Simchoni <uri@samba.org> Autobuild-Date(master): Mon Oct 24 23:52:48 CEST 2016 on sn-devel-144 (cherry picked from commit 1366385d1c3e9ac0556e954864e60e72f6906942)
* s3: selftest: Add test for orphan 'lost-XXX' directories in streams_depot.Jeremy Allison2016-10-311-0/+41
| | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12384 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 21 04:48:52 CEST 2016 on sn-devel-144 (cherry picked from commit ad60b8cc48b1095ce97170eed3d09fca7181a3bc)
* s3: vfs: Remove files/directories after the streams are deleted.Jeremy Allison2016-10-311-4/+14
| | | | | | | | | | | By the time we get to SMB_VFS_UNLINK/SMB_VFS_RMDIR the ACL checks have already been done. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12384 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> (cherry picked from commit b17c9fdc51c10313eed32d6e078ed7050a342d0f)
* s3: torture: vfstest. unlink cmd must be stream aware.Jeremy Allison2016-10-311-0/+8
| | | | | | | | | | Otherwise the following patch breaks vfstest stream-depot test. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12384 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> (cherry picked from commit 4e93ea2340b7589769d55085aaa71070a2d7e416)
* smbd: in ntlm auth, do not map empty domain in case of \user@realmUri Simchoni2016-10-311-3/+7
| | | | | | | | | | | | When mapping user and domain during NTLM authentication, an empty domain is mapped to the local SAM db. However, an empty domain may legitimately be used if the user field has both user and domain in upn@realm format. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12375 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 3f82db56cbf2727abd465e28ac02ad2242b47c29)
* winbindd: do not modify credentials in NTLM passthroughUri Simchoni2016-10-311-6/+5
| | | | | | | | | | | | When doing NTLM validation of credentials, do not modify the credentials - they might be used in the calculation of the response. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12375 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 8e88b56ebc314a5e3a722d63ca23b4a49b7ac2dc)
* selftest: test NTLM user@realm authenticationUri Simchoni2016-10-311-0/+1
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12375 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 6e4c66e339d2eb11c5cb981aac2e20fcff464025)
* ctdb-conn: add missing variable initializationRalph Wuerthner2016-10-311-1/+1
| | | | | | | | | | | | Avoid potential crash in TALLOC_FREE(hdr). Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 4194c0797f78293fe48105ce5af70f36a3c233a8) BUG: https://bugzilla.samba.org/show_bug.cgi?id=12372 ctdb: bad free in ctdbd_migrate()
* s3: libsmb: Fix cut and paste error using the wrong structure type.Jeremy Allison2016-10-201-1/+1
| | | | | | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12383 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Oct 19 14:33:53 CEST 2016 on sn-devel-144 (cherry picked from commit c21a6eda370fa0b0698a5e1fd565bd2e014d326a) Autobuild-User(v4-5-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-5-test): Thu Oct 20 14:45:29 CEST 2016 on sn-devel-144
* s3:libads: don't use MEMORY:ads_sasl_spnego_bind nor set "KRB5CCNAME"Stefan Metzmacher2016-10-201-6/+0
| | | | | | | | | | | | | | | Most callers just set "KRB5CCNAME", but leave ads->auth.ccache_name = NULL. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12369 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Oct 13 00:35:21 CEST 2016 on sn-devel-144 (cherry picked from commit a5f895a53016af71db53967062728fec5bc307ca)
* s3:libads: don't use MEMORY:ads_sasl_gssapi_do_bind nor set "KRB5CCNAME"Stefan Metzmacher2016-10-201-5/+0
| | | | | | | | | | | Most callers just set "KRB5CCNAME", but leave ads->auth.ccache_name = NULL. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12369 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> (cherry picked from commit 890b1bbdb8e965c4ff6e35214acc96ffbbff5dfd)
* s3-printing: fix migrate printer code (bug 8618)Björn Baumbach2016-10-201-0/+27
| | | | | | | | | | | | | | | | | | Removed path from driver files. We only need the basenames. (cherry picked from commit d61993043fcb7676a58658476421f5f4ff1a3fea) (cherry picked from commit 9f07ef2249dc21eab37cd5888623e6edc84b2b59) BUG: https://bugzilla.samba.org/show_bug.cgi?id=8618 Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Oct 5 19:19:39 CEST 2016 on sn-devel-144 (cherry picked from commit eb7555397fd4e9f66e041179aadff59f2a39d14f)
* s3: cldap: cldap_multi_netlogon_send() fails with one bad IPv6 address.Jeremy Allison2016-10-201-2/+15
| | | | | | | | | | | | | | | | | | | | | Analysis by: Rebecca Gellman <rebecca@starfleet-net.co.uk> Ignore cldap_socket_init() failure when sending multiple cldap netlogon requests. Allow cldap_netlogon_send() to catch the bad address and correctly return through a tevent subreq. Make sure cldap_search_send() copes with cldap parameter == NULL. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12381 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Tue Oct 18 02:16:20 CEST 2016 on sn-devel-144 (cherry picked from commit 44a7040500d74551b48eba04f5d0bedb1ec35ba6)
* s3-utils: Fix loading smb.conf in smbcquotasAndreas Schneider2016-10-201-3/+12
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12364 Pair-Programmed-With: Uri Simchoni <uri@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit c7bcbd166d23b6ebcc2d968b76b0640b9a9beebb)
* ntquotas: support "freeing" an empty quota listUri Simchoni2016-10-202-3/+3
| | | | | | | | | | | This avoids dereferencing a null pointer if there's an attempt to free an empty list. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12307 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit dd8a0578d8c9f562a4f13a90f4fe51f66058dd02)
* s3/winbindd: using default domain with user@domain.com format failsNoel Power2016-10-201-2/+3
| | | | | | | | | | | | | | | | | | | | For example for samba client joined to a windows AD DC the following commands fail if 'winbind use default domain = yes' getent passwd user@domain.com ssh -o user=user@domain.com localhost The same commands succeed if the setting above has the default 'no' value BUG: https://bugzilla.samba.org/show_bug.cgi?id=12298 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Oct 3 23:37:44 CEST 2016 on sn-devel-144 (cherry picked from commit 7c786f89820dc1f8e2a7e8da1b80042dd69b7188)
* winbind: Fix passing idmap failure from wb_sids2xids back to callersChristof Schmitt2016-10-201-1/+1
| | | | | | | | | | | | | | | | If the idmap call in wb_sids2xids fails, the callers expect xid.type to be set to ID_TYPE_NOT_SPECIFIED, not the internal type field that is initialized from the lookupsids call. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12295 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Sep 30 02:10:29 CEST 2016 on sn-devel-144 (cherry picked from commit 1f9501cad63717d6e4ea01974f853b199f359b40)
* idmap_ad: Fix retrieving credentials from clustered secrets.tdbChristof Schmitt2016-10-201-1/+10
| | | | | | | | | | | | cli_credentials_set_machine_account only reads from a local tdb. Change that call to cli_credentials_set_machine_account_db_ctx to fix this for clustered Samba. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12295 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 7a3b7804cba53a21739e8912b005ab498e921eb7)
* smbd: free talloc context if no quota records are availableUri Simchoni2016-10-201-0/+3
| | | | | | | | | | | | When generating a list of user quota records, free the memory context that controls this list if the list is empty. Otherwise, the context remains unreferenced and memory is leaked. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12289 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 175bc6f1e3442f5cb2258aaadf318ebf23c5d769)
* cliquota: fix param count when setting fs quotaUri Simchoni2016-10-201-1/+1
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12288 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit dad6c2d5631ab9879dd4cd35231b2e8c8a9e8311)
* s3-lib: Fix %G substitution in AD member environmentAndreas Schneider2016-10-201-6/+18
| | | | | | | | | | | | If we are a domain member we should look up the user with the domain name specified else it will only work if we have 'winbind use default domain' set. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12276 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 619ca5f63c47ff8b021692aaa756dcb0d883b8dd)
* smbcquotas: fix error message listing quotasUri Simchoni2016-10-201-3/+3
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12270 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 610c26d74c1314142981e5cc31a0706a4a99766f)
* s3-cliquota: correctly handle no-more-entriesUri Simchoni2016-10-201-4/+9
| | | | | | | | | | | | | | | When listing quota records, a Windows server would return STATUS_SUCCESS until no more entries are available, where it would return STATUS_NO_MORE_ENTRIES. The fix keeps old behavior of empty answer also signifying end of record, to maintain compatibility with Samba servers. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12270 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 5a947d6ca1928e4e4bd4caf2b86698b86d378a81)
* s3-sysquotas: correctly restore path when finding mount pointUri Simchoni2016-10-201-1/+4
| | | | | | | | | | | | | | | When traversing the path backwards to find the mount point, if the root '/' is reached, then the character to be restored is not a '/'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12273 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Oct 8 05:22:25 CEST 2016 on sn-devel-144 (cherry picked from commit b3d938c9c03e8b726e966ccb979b09bd21e89f32)
* smbd/ioctl: match WS2016 ReFS get compression behaviourDavid Disseldorp2016-10-201-12/+17
| | | | | | | | | | | | | | | | ReFS doesn't support compression, but responds to get-compression FSCTLs with a successful COMPRESSION_FORMAT_NONE response. set-compression results in NT_STATUS_NOT_SUPPORTED. This commit modifies Samba to match the ReFS behaviour, when run atop a VFS that doesn't expose compression support. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12144 Reported-by: Nick Barrett Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 7a1000222877cdbc8967122b9de29021a42f4c8a)
* vfs_glusterfs: Fix a memory leak in connect pathAnoop C S2016-10-201-2/+1
| | | | | | | | | | | | | | | | Early return in case of failure to set snapdir-entry-path xlator option leaks talloced tmp_ctx. Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri Oct 7 19:39:11 CEST 2016 on sn-devel-144 Bug: https://bugzilla.samba.org/show_bug.cgi?id=12377 (cherry picked from commit 06281e8f1b912540a8cc2a79497b074dbe559d53)
* spoolss: Fix caching of printername->sharenameVolker Lendecke2016-10-201-2/+2
| | | | | | | | | | | | | time_mono() gives seconds since boot, gencache expects seconds since epoch. With time_mono(), the values are always expired immediately. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12374 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Thu Oct 13 13:48:52 CEST 2016 on sn-devel-144
* glusterfs: Avoid tevent_internal.hVolker Lendecke2016-10-201-1/+0
| | | | | | | | | | | | | Günther confirmed it still compiles :-) Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Sat Sep 24 23:41:56 CEST 2016 on sn-devel-144 (cherry picked from commit c60ea2c17814f9f7b55514e0d0a553accaa54b15)
* s3: events. Move events.c to util_event.cJeremy Allison2016-10-205-504/+105
| | | | | | | | | | | Remove all tevent internal code. Everything is now stock tevent. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (similar to commit 4ed790ebbf474c4e4ef9b4f0f3aeca65118796df)
* s3: server: s3_tevent_context_init() -> samba_tevent_context_init()Jeremy Allison2016-10-204-8/+7
| | | | | | | | | We can now remove source3/lib/events.c Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit fbfea52e1ce8f22d8d020a2bf3aebd1bc69faceb)
* s3: winbind: Remove dump_event_list() calls.Jeremy Allison2016-10-201-3/+2
| | | | | | | | | | | If needed we can add this into actual tevent. Preparing to remove source3/lib/events.c Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 72785309aa2d1bed7abc6dd7c6475ff0f78411da)
* s3: nmbd: Final changeover to stock tevent for nmbd.Jeremy Allison2016-10-201-42/+4
| | | | | | | | | | | Removes unused references to fds array used for (removed) poll call. Renames create_listen_pollfds() to create_listen_array(). Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 6e8bd13660d7795df429dbf852345124db38ea96)
* s3: nmbd: Change over to using tevent functions from direct poll.Jeremy Allison2016-10-201-20/+38
| | | | | | | | | | This will allow us to eventually remove source3/lib/events.c dependency and make nmbd purely tevent based. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit b857bf9b3fa3a836647edc40ead92db7b782d367)
* s3: nmbd: Add a talloc_stackframe().Jeremy Allison2016-10-201-0/+9
| | | | | | | | | | | | | We will use this to create real tevent timer and fd events. This will allow us to eventually remove source3/lib/events.c dependency and make nmbd purely tevent based. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 36b67729a6fc8518da71944db3fac6d9236b9348)
* s3: nmbd: Add (currently unused) timeout and fd handlers.Jeremy Allison2016-10-201-0/+26
| | | | | | | | | | This will allow us to eventually remove source3/lib/events.c dependency and make nmbd purely tevent based. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit cca25c8f75147873280464eaf2699ff449f609ad)
* s3: nmbd: Now attrs array mirrors fd's array use it in preference.Jeremy Allison2016-10-201-4/+4
| | | | | | | | | | This will allow us to eventually remove source3/lib/events.c dependency and make nmbd purely tevent based. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 376e04656b6755d1a182430b39273a93495d00b2)
* s3: nmbd: Ensure attrs array mirrors fd's array for dns.Jeremy Allison2016-10-201-0/+15
| | | | | | | | | | This will allow us to eventually remove source3/lib/events.c dependency and make nmbd purely tevent based. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit 7f0717e751930cd5da029c1852ff9f61f95e40b7)
* s3: nmbd: Add fd, triggered elements to struct socket_attributes.Jeremy Allison2016-10-201-1/+9
| | | | | | | | | | | | Zero the attrs array on allocation, and mirror the fd's. This will allow us to eventually remove source3/lib/events.c dependency and make nmbd purely tevent based. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12283 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> (cherry picked from commit d8ade0730797df22bfe28847e034eb6d116b0e00)
* s3:nmbd: fix talloc_zero_array() check in nmbd_packets.cStefan Metzmacher2016-10-201-1/+1
| | | | | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Sep 23 18:08:21 CEST 2016 on sn-devel-144 BUG: https://bugzilla.samba.org/show_bug.cgi?id=12283 (cherry picked from commit 4470f01605a2f09b054550ee5a8f8d3b4ebc2098)
* s3: winbind: Ensure we store name2sid with the correct cache sequence number.Jeremy Allison2016-10-201-0/+6
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11259 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> (cherry picked from commit 9f6fe5e2c54870abfff48c8a9d96e21bfec2425f)