summaryrefslogtreecommitdiffstats
path: root/source3/include
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Revert "s3-printing: update parent smbd pcap cache""David Disseldorp2011-05-231-0/+1
| | | | | | This reverts commit ad450870eacb114b3f15941a4478ba25701e035a. Signed-off-by: Günther Deschner <gd@samba.org>
* Revert "Revert "s3-printing: reload shares after pcap cache fill""David Disseldorp2011-05-231-2/+2
| | | | | | This reverts commit 36ea03bbe28122ce03de4969e254dd276cfe5a79. Signed-off-by: Günther Deschner <gd@samba.org>
* Revert "s3-printing: update parent smbd pcap cache"Karolin Seeger2011-01-151-1/+0
| | | | This reverts commit 2c2ce9caead5a13edb582313b7d36c7eb12a09fb.
* Revert "s3-printing: reload shares after pcap cache fill"Karolin Seeger2011-01-151-2/+2
| | | | | | This reverts commit 9bc0cd243ac66126d42905dd8710d078094e0cd7. This commit seems to break 'make test'.
* s3-printing: update parent smbd pcap cacheDavid Disseldorp2011-01-151-0/+1
| | | | | | | | | | | | | | | | | If a client connects to a samba share and while connected a printer is added, the client will see the new printer share after a maximum of 'printcap cache time' seconds. smbd's forked for new client connections inherit printcap information from the parent (listener) smbd, which does not perform updates on printcap cache time expiry. Therefore newly connected clients may initially be presented with stale printer shares. Add a housekeeping function to the parent smbd to ensure newly connected clients see up to date printer shares. The last 2 patches address bug #7836 (A newly added printer isn't visbile to clients).
* s3-printing: reload shares after pcap cache fillDavid Disseldorp2011-01-151-2/+2
| | | | | | | | | | | | | | | | Since commit eada8f8a, updates to the cups pcap cache are performed asynchronously - cups_cache_reload() forks a child process to request cups printer information and notify the parent smbd on completion. Currently printer shares are reloaded immediately following the call to cups_cache_reload(), this occurs prior to smbd receiving new cups pcap information from the child process. Such behaviour can result in stale print shares as outlined in bug 7836. This fix ensures print shares are only reloaded after new pcap data has been received. Pair-Programmed-With: Lars Müller <lars@samba.org>
* Fix bug #7892 - open_file_fchmod() leaves a stale lock.Jeremy Allison2010-12-311-2/+1
|
* s3: Add smbsock_any_connectVolker Lendecke2010-12-261-0/+11
|
* s3: Add an async smbsock_connectVolker Lendecke2010-12-261-0/+11
| | | | | | This connects to 445 and after 5 milliseconds also to 139. It treats a netbios session setup failure as equivalent as a TCP connect failure. So if 139 is faster but fails the nb session setup, the 445 still has the chance to succeed.
* v3-4-test: Pull in tevent_req_poll_ntstatus from masterVolker Lendecke2010-12-261-0/+3
|
* s3: Add async cli_session_requestVolker Lendecke2010-12-261-0/+7
| | | | This does not do the redirects, but I think that might be obsolete anyway
* s3: Add some const to name_mangle()Volker Lendecke2010-12-261-1/+1
|
* s3-kerberos: pass down kdc_name to create_local_private_krb5_conf_for_domain().Günther Deschner2010-05-191-1/+2
| | | | | Guenther (cherry picked from commit e3bdff3d67b46277ee59685218bd90f3788b487d)
* s3-libsmbclient: Fix incomplete description of function return values in ↵Derrell Lipman2010-04-161-8/+14
| | | | | | | libsmbclient.h. Fix bug #7345. (cherry picked from commit ce565b0498608714e2c4f7c9f9373dddcbfba568)
* Fix bug #7288 - SMB job IDs in CUPS job names wrong.Jeremy Allison2010-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Based on a patch from Michael Karcher <samba@mkarcher.dialup.fu-berlin.de>. I think this is the correct fix. It causes cups_job_submit to use print_parse_jobid(), which I've moved into printing/lpq_parse.c (to allow the link to work). It turns out the old print_parse_jobid() was *broken*, in that the pjob filename was set as an absolute path - not relative to the sharename (due to it not going through the VFS calls). This meant that the original code doing a strncmp on the first part of the filename would always fail - it starts with a "/", not the relative pathname of PRINT_SPOOL_PREFIX ("smbprn."). This fix could fix some other mysterious printing bugs - probably the ones Guenther noticed where job control fails on non-cups backends. Contains c79ca41baf15b4ef7eb287d343b17a53ba41e852 and 92332fb2368c641db1552d1f2a2f7b3deaa11519 from master. Jeremy. (cherry picked from commit 12936bfeb36ae867b52fe48d0f6d3d17d5c8b110)
* s3:rpc_client: add set_timeout hook to rpc_cli_transportStefan Metzmacher2010-04-131-0/+1
| | | | | | | | metze (cherry picked from commit 99664ad15460530b6fb44957b6c57823f09884bf) (cherry picked from commit 89164eb8363ffc0b951256578be48d37ddba46b1) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:rpc_client: add rpccli_is_connected()Stefan Metzmacher2010-04-132-0/+4
| | | | | | | | metze (cherry picked from commit 4f41b53487ac9bc96c7960e8edab464558656373) (similar to commit 958b49323968740e2cbf69dc2a0a5dd57d5bcf87) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: add cli_state_is_connected() functionStefan Metzmacher2010-04-131-0/+1
| | | | | | | | metze (cherry picked from commit d7bf30ef92031ffddcde3680b38e602510bcae24) (cherry picked from commit 589f73924273e8a9b54669f42a92381661dcb33f) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpcclient: fix rpcclient after spoolss_GetPrinterData{Ex} IDL change.Günther Deschner2010-03-111-1/+2
| | | | Guenther
* Revert "Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail ↵Karolin Seeger2010-03-091-2/+1
| | | | | | | | | to respond to a read or write." This reverts commit c81c109a6ce83741bb5149a51ceb4ab30855e9f9. This fixes bug #7222 (All users have full rigths on all shares)(CVE-2010-0728). (cherry picked from commit 49fc62cc5d8bcb2ef246fa6505c99071b406c413)
* Fixes issue with preexec scripts creating a share directory, and problems if ↵Jeremy Allison2010-02-151-0/+1
| | | | | | | | | | | | | | | | | a smb.conf reload turns wide links back on after a connection is establised. Includes git refs : cd18695fc2e4d09ab75e9eab2f0c43dcc15adf0b 94865e4dbd3d721c9855aada8c55e02be8b3881e 5d92d969dda450cc3564dd2265d2b042d832c542 02a5078f1fe6285e4a0b6ad95a3aea1c5bb3e8cf a6f402ad87ff0ae14d57d97278d67d0ceaaa1d82 from master. Jeremy. Fix bug #7104 ("wide links" and "unix extensions" are incompatible.)
* s3:pdb_ldap: optimize ldapsam_alias_memberships() and cache ldap searches.Stefan Metzmacher2010-02-111-0/+5
| | | | | | | | | | | | | ldapsam_alias_memberships() does the same LDAP search twice, triggered via add_aliases() from create_local_nt_token(). This happens when no domain aliases are used. metze (cherry picked from commit 49ace81e19de231825216cbf07c7422687131bb6) (cherry picked from commit cb31c1df92b195b3fb80b6e21bfba83b8cd867fd) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to ↵Jeremy Allison2010-02-041-1/+2
| | | | | | | | | | respond to a read or write. Only works on Linux kernels 2.6.26 and above. Grants CAP_KILL capability to allow Linux threads under different euids to send signals to each other. Jeremy. (cherry picked from commit 899bd0005f56dcc1e95c3988d41ab3f628bb15db)
* s3:smbldap: add smbldap_talloc_first_attribute()Stefan Metzmacher2010-01-191-0/+3
| | | | | | | | metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit c992127f8a96c37940a6d298c7c6859c47f83d9b) (cherry picked from commit 915b7552b71904baf6a452bdc1649e76d8286a14)
* Fix bug 6837 - "Too many open files" when trying to access large number of filesJeremy Allison2009-12-301-3/+21
| | | | | | Win7 needs the Windows server open file handle number of 16384 handles. Jeremy.
* s3-kerberos: do not include authdata headers before including krb5 headers.Günther Deschner2009-12-032-3/+0
| | | | | | Guenther Part of a fix for bug #6929.
* s3-util: add pull_reg_sz() and pull_reg_multi_sz() convenience functions.Günther Deschner2009-11-301-0/+2
| | | | | Guenther (cherry picked from commit f8016cfee922cba97b70f56c752827e4584da6c6)
* s3-util: add push_reg_sz() and push_reg_multi_sz() convenience functions.Günther Deschner2009-11-301-0/+2
| | | | | Guenther (cherry picked from commit fcee9d2c97a673347baf58f749f35785a896e468)
* s3-kerberos: only use krb5 headers where required.Günther Deschner2009-11-305-212/+238
| | | | | | | This seems to be the only way to deal with mixed heimdal/MIT setups during merged build. Guenther
* s3-kerberos: add smb_krb5_principal_get_realm().Günther Deschner2009-11-241-1/+2
| | | | Guenther
* s3-spnego: avoid NULL talloc context in read_spnego_data().Günther Deschner2009-10-201-1/+1
| | | | Guenther
* s3-rpc_client: add rpccli_lsa_lookup_sids3 wrapper.Günther Deschner2009-10-081-0/+8
| | | | | Guenther (cherry picked from commit 2f9adf04e4b3e16c046cb371a428a8a70d5de041)
* s3-rpc_client: add rpccli_lsa_lookup_names4 wrapper.Günther Deschner2009-10-081-0/+9
| | | | | Guenther (cherry picked from commit ff968712bab6c2635ef74723c6f52b0fdac4b424)
* s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_schannel().Günther Deschner2009-10-081-0/+3
| | | | | Guenther (cherry picked from commit bea8e5fa6038d5abd2ec1e12f9005c4a04abb79f)
* s3-rpc_client: add dcerpc_transport_t to cli_rpc_pipe_open_spnego_ntlmssp ↵Günther Deschner2009-10-081-0/+2
| | | | | | | and cli_rpc_pipe_open_ntlmssp. Guenther (cherry picked from commit 032e01e7c13724d057b5744d7d79613449c2f24f)
* s3-rpc_client: add cli_rpc_pipe_open_noauth_transport.Günther Deschner2009-10-081-0/+4
| | | | | Guenther (cherry picked from commit 87f61a144b8d25c90b847940ca03ced1f77b036c)
* s3-rpc_client: add enum dcerpc_transport_t to rpc_cli_transport struct.Günther Deschner2009-10-081-0/+2
| | | | | Guenther (cherry picked from commit 393a1f594d5f03a51448cdc465f92c599a93904c)
* Fix for CVE-2009-2906.Jeremy Allison2009-10-011-0/+1
| | | | | | | | | Summary: Specially crafted SMB requests on authenticated SMB connections can send smbd into a 100% CPU loop, causing a DoS on the Samba server. (cherry picked from commit 7439cd5efa50058741c57857109690e4a104f9f0)
* s3: QNX doesn't know uint - replace with uint_tBjörn Jacke2009-09-191-4/+4
| | | | (cherry picked from commit a28596964b44f20d794999541d38fe4bae64b56b)
* Fix bug 6529 - Offline files conflict with Vista and Office 2003. Jeremy.Jeremy Allison2009-09-153-1/+14
|
* Fix bug 6496 - libsmbclient: MS-DFS: cannot follow multibyte char link name. ↵SATOH Fumiyasu2009-09-091-1/+1
| | | | A server returns a byte of consumed path in UCS2, not UNIX charset.
* Fix bug 6673 - smbpasswd does not work with "unix password sync = yes". ↵Jeremy Allison2009-09-091-1/+1
| | | | Revert change from 3.3 -> 3.4 with read_socket_with_timeout changed from sys_read() to sys_recv(). read_socket_with_timeout() is called with non-fd's (with a pty in chgpasswd.c and with a disk file in lib/dbwrap_file.c via read_data()). recv works for the disk file, but not the pty. Change the name of read_socket_with_timeout() to read_fd_with_timeout() to make this clear (and add comments). Jeremy.
* s3-schannel: Fix Bug #6697. Interdomain trusts with Windows 2008 R2 DCs.Günther Deschner2009-09-081-1/+1
| | | | | | | | The Schannel verifier (aka NL_AUTH_SIGNATURE) structure (32 byte) sent from a W2k8r2 DC is passed in a buffer with the size of a NL_AUTH_SHA2_SIGNATURE (56 byte). We should just ignore the remaining 12 zeroed bytes and proceed. Guenther
* Fix a valgrind error in chain_replyVolker Lendecke2009-08-051-0/+2
| | | | | | | construct_reply() references the request after chain_reply has freed it. (cherry picked from commit 5135ebd6f099518f0a0b5796e8057210be824740) Addresses bug #6611.
* Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke2009-06-191-0/+1
| | | | (cherry picked from commit 5a9ca3db032af5938e9709f3355a1f45b1e08d27)
* Consolidate create/delete account paths in pdbeditSimo Sorce2009-06-031-1/+1
| | | | | | | | | | | | Use common paths like for smbpasswd, so that all utilities behave the same way. As for smbpasswd this changes the behavior of pdbedit to create/delete unix users is the add/delete user scripts are provided, or ldapsam:editposix is configured. Part 1/2 for bug #6333. Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit f48e39540c9767e9077e7534a6d410b4ce597c86)
* s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2009-05-271-1/+1
| | | | | | | | | | When we run out of file descriptors for some reason, every new connection forks a child that immediately panics causing smbd to coredump. This seems unnecessarily harsh; with this code change we now catch that error and merely log a message about it and exit without the core dump. Signed-off-by: Tim Prouty <tprouty@samba.org>
* s3: Always allocate memory in dptr_ReadDirNameAravind Srinivasan2009-05-181-1/+1
| | | | | | | | This is a follow up to 69d61453df6019caef4e7960fa78c6a3c51f3d2a to adjust the API to allow the lower layers allocate memory. Now the memory can explicitly be freed rather than relying on talloc_tos(). Signed-off-by: Tim Prouty <tprouty@samba.org>
* Change access_check_samr_object -> access_check_object.Jeremy Allison2009-05-181-0/+7
| | | | | | | Make map_max_allowed_access global. Change lsa_get_generic_sd to add Everyone:LSA_POLICY_READ|LSA_POLICY_EXECUTE, not just LSA_POLICY_EXECUTE. Jeremy.
* s3-privileges: add privilege_delete_account().Günther Deschner2009-05-181-0/+1
| | | | | Guenther (cherry picked from commit dccecdf33850ec4d763b8b0e7ba7be7a8eb873de)