summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2010-04-10s3: Check 0 termination in GETALIASESVolker Lendecke1-7/+13
2010-04-09Plumb SMB2 stubs into all the places we defer SMB1 operations.Jeremy Allison13-111/+198
Rename functions to be internally consistent. Next step is to cope queueing single (non-compounded) SMB2 requests to put some code inside the stubs. Jeremy.
2010-04-09s3-spoolss: Fix two uninitialized vars in spoolss util code.Günther Deschner1-1/+2
Guenther
2010-04-09s3: add iconv_convenience handle to pull/push sz helpers.Günther Deschner15-50/+58
Guenther
2010-04-09s3: Fix a typoVolker Lendecke1-1/+1
2010-04-09s3: Use talloc_tos() as talloc ctx for fd_lines_load() in map_username()Volker Lendecke1-1/+1
2010-04-09s3: TALLOC_FREE(command) correctly in map_username()Volker Lendecke1-0/+2
2010-04-08Stop smb2 from calling into smb1 blocking lock request code.Jeremy Allison6-0/+72
Allocate a uint16_t internal SMB1 mid for an SMB2 request. Add a back pointer from the faked up smb_request struct to the smb2 request. Getting ready to add restart code for blocking locks, share mode violations and oplocks in SMB2. Jeremy.
2010-04-08Simplify call_trans2qfilepathinfo() and smbd_do_qfilepathinfo()Jeremy Allison3-20/+4
Remove the bool ms_dfs_link parameter from smbd_do_qfilepathinfo. It is not possible for this to be a DFS link. Remove the check_msdfs_link() call from call_trans2qfilepathinfo() - the call to filename_convert() above with a ucf_flags of zero *MUST* catch a DFS link and return NT_STATUS_PATH_NOT_COVERED in this case, so the code below checking for msdfs links is redundent. Don't add this to 3.5.x, as it's an optimization but not needed to fix bug #7339 - MSDFS is non-functional in 3.5.x. Jeremy.
2010-04-08Fix bug #7339 - MSDFS is non-functional in 3.5.xJeremy Allison4-1/+6
In the refactoring around filename_convert, the split between the functions resolve_dfspath() and resolve_dfspath_wcard() was lost, leaving us only with resolve_dfspath_wcard(). Internally resolve_dfspath_wcard() calls dfs_redirect() only with a "allow_wcards" flag of true, wheras the old resolve_dfspath() would call with a value of false. The loss of this case causes dfs_redirect to always masquerade DFS links as directories, even when they are being queried directly by a trans2 QPATHINFO call. We should only masquerade DFS links as directories when called from a SMBsearch or trans2 findfirst/findnext - which was the intent of the "allow_wcards" flag. This patch adds back an allow_wcards bool parameter to resolve_dfspath_wcard(). This bool is set from the state of the ucf_flags when filename_convert() is called. I will follow this up with a new smbclient-based torture test that will prevent us from ever regressing our DFS support again. Jeremy.
2010-04-09s3-winreg: add winreg_DeleteKeyEx stub.Günther Deschner1-0/+12
Guenther
2010-04-08s3-lanman: use spoolss for api_RDosPrintJobDel().Günther Deschner1-15/+59
Guenther
2010-04-08s3-lanman: use spoolss for api_WPrintQueueCtrl().Günther Deschner1-7/+70
Guenther
2010-04-08s3-registry: fix fill_in_printer_values() for datatype and printprocessor.Günther Deschner1-2/+2
It is wise and good to enforce RAW and winprint, but we need to be consistent with spoolss (and enforce it there). Found by torture test. Guenther
2010-04-08s3: Remove the separate "child" argument from setup_domain_child()Volker Lendecke3-15/+8
2010-04-08s3:winbindd: make "smbcontrol winbindd validate-cache" reliable againStefan Metzmacher1-0/+3
commit 73577205cf81644e7fe853eaf3e6459f7f443096 (s3:winbindd: fix problems with SIGCHLD handling (bug #7317)) broke this. metze
2010-04-08s3: Fix a typoVolker Lendecke1-1/+1
2010-04-07Start to plumb smb2 into the oplock system. Calls dummy functions for now.Jeremy Allison4-46/+59
Jeremy.
2010-04-07s3-spoolss: Fix an issue in _spoolss_DeleteForm.Günther Deschner1-1/+1
Found by torture test. Guenther
2010-04-07s3-spoolss: Fix some issues in _spoolss_AddForm.Günther Deschner1-1/+19
Found by torture test. Guenther
2010-04-07s3-spoolss: Fix potential memleak in _spoolss_AddForm and _spoolss_SetForm.Günther Deschner1-2/+4
Guenther
2010-04-07s3: Fix bug 7327 -- Build fails while building without kerberosVolker Lendecke1-5/+6
libsmb/clikrb5.c has a dummy implementation for the non-kerberos case
2010-04-07On compound requests, MS-SMB2 says clients MAY use 0xFFFFFFFF for compound ↵Jeremy Allison2-0/+39
tid and 0xFFFFFFFFFFFFFFFF for compound sessionid values. Cope with this. Jeremy.
2010-04-07Don't forget to initialize *p_creds_requested.Jeremy Allison1-0/+1
Jeremy.
2010-04-07s3-spoolss: Added a winreg_getform1 function.Andreas Schneider2-0/+147
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a winreg_setform1 function.Andreas Schneider2-0/+120
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a winreg_deleteform1 function.Andreas Schneider2-0/+90
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a winreg_addform1 function.Andreas Schneider2-0/+124
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a winreg_enumforms1 function.Andreas Schneider2-0/+251
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Fixed winreg_printer_openkey to be used in a more generic way.Andreas Schneider1-19/+72
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a delete_printer_key function using the winreg pipe.Andreas Schneider2-0/+195
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a enum_printer_key function using the winreg pipe.Andreas Schneider2-0/+250
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a delete_printer_dataex function using the winreg pipe.Andreas Schneider2-3/+90
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a enum_printer_dataex function using the winreg pipe.Andreas Schneider2-0/+264
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a get_printer_dataex function using the winreg pipe.Andreas Schneider2-0/+146
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a set_printer_dataex function using the winreg pipe.Andreas Schneider2-0/+106
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-spoolss: Added a function to open a regkey using the winreg pipe.Andreas Schneider3-0/+193
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07s3-rpcclient: allow to define server_unc in cmd_srvsvc_srv_query_info().Günther Deschner1-4/+10
Guenther
2010-04-07s3: add comment about what the FSCTL_QUERY_ALLOCATED_RANGES currently doesBjörn Jacke1-0/+6
2010-04-06Ensure we total up the correct number of creds requested in a compound request.Jeremy Allison1-1/+7
2010-04-06Parameterize "smb2 max read", "smb2 max write", "smb2 max trans".Jeremy Allison6-8/+48
Set to 64k by default. Jeremy.
2010-04-06fix a segfault in the notify subsystemChristian Ambach1-5/+16
When the notify_array cannot be loaded correctly, do not keep the half-baked parsing results in the global variable. This can lead to segfaults next time notify_load is entered and the seqnum has not changed. This has been seen in a case where mixed smbd versions were running in a CTDB cluster (versions with and w/o commit c216d1e6 that changed the notify_entry structure). There will be missed notifications until all smbds are at the same software level, but this should be acceptable and is better than crashing and interrupting client operations. This fix cleans up the notify_array, removes the unparseable data from the TDB and returns a fresh notify_array that can be worked with. The NDR_PRINT_DEBUG had to be moved to only be called when the parsing succeeded, it was seen to cause additional segfaults. The status variable is intentionally left to NT_STATUS_OK to not make callers abort and report errors to the clients and make them disconnect. Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-04-06s4-waf: move to a universal method of recursing into subdirsAndrew Tridgell2-20/+20
This works with both standalone lib builds and bundled builds
2010-04-06s4-waf: set default for bundled librariesAndrew Tridgell1-0/+2
2010-04-06s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2-0/+4
them
2010-04-06s3-waf: added options for static/shared module buildingAndrew Tridgell1-0/+60
Pair-Programmed-With: Kai Blin <kai@samba.org>
2010-04-06s3-waf: build version.hAndrew Tridgell1-0/+2
2010-04-06s3-waf: charsets needs to be quoted as strings in config.hAndrew Tridgell1-6/+6
Pair-Programmed-With: Kai Blin <kai@samba.org>
2010-04-06s3-waf: fixed tests for charsetsAndrew Tridgell1-3/+3
Pair-Programmed-With: Kai
2010-04-06s3-waf: check for default charsetsKai Blin4-0/+56