summaryrefslogtreecommitdiff
path: root/source3/client/smbspool.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:client: don't use cli->use_kerberos && cli->got_kerberos_mechanism in ↵Stefan Metzmacher2017-01-271-8/+9
| | | | | | | | | | smbspool.c We already know if we want to use kerberos and there's no point in altering the error message if we tried but failed to use kerberos. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:client: use cli_cm_force_encryption_creds in smbspool.c (in a #if 0 section)Stefan Metzmacher2016-12-211-5/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:client: avoid using cli->{use_kerberos,...} for cli_session_creds_init() ↵Stefan Metzmacher2016-12-091-4/+9
| | | | | | | | | | | | in smbspool.c CLI_FULL_CONNECTION_USE_KERBEROS is the only possible flag the caller of smb_complete_connection() will pass, so we can avoid use it directly instead of going via cli_start_connection() to use cli->use_kerberos. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:client: make use of cli_tree_connect_creds() in smbspool.cStefan Metzmacher2016-12-091-2/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:client: use cli_session_setup_creds() in smbspool.cStefan Metzmacher2016-11-151-3/+17
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3:libsmb: let the callers only pass the password string to ↵Stefan Metzmacher2016-11-151-2/+1
| | | | | | | | | cli_session_setup[_send]() There're no callers which tried to pass raw {lm,nt}_response any more. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* s3-smbspool: Log to stderrAndreas Schneider2016-05-251-1/+1
| | | | | | | | | | This way we will be able to see the log in the cups logs and are able to debug issues. https://bugzilla.samba.org/show_bug.cgi?id=11935 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* smbspool: Add string representation of nt_statusAndreas Schneider2016-01-221-2/+2
| | | | | | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Jan 22 20:59:36 CET 2016 on sn-devel-144
* lib: load_case_tables() -> smb_init_locale()Volker Lendecke2015-03-241-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3-smbspool: Use strtol() instead of atoi().Andreas Schneider2015-01-221-1/+8
| | | | | | | This fixes a coverity warning. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Move the callers that need to use the new cli_open() back to callingJeremy Allison2011-12-031-1/+1
| | | | it from cli_openx().
* Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()Jeremy Allison2011-12-031-1/+1
| | | | with a call that uses NTCreateX in preference to OpenAndX.
* s3:client: make use of cli_tree_connect()Stefan Metzmacher2011-11-241-2/+2
| | | | metze
* s3:client: s/Undefined/SMB_SIGNING_DEFAULT/Stefan Metzmacher2011-11-031-1/+1
| | | | metze
* s3:smbspool: use lp_load_client()Michael Adam2011-07-281-3/+1
|
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* s3: Use cli_writeall instead of cli_writeVolker Lendecke2011-04-261-6/+11
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/passwd.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Avoid a few calls to cli_errstrVolker Lendecke2011-01-171-6/+10
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jan 17 08:47:25 CET 2011 on sn-devel-104
* s3: Remove unused "retry" from cli_start_connectionVolker Lendecke2010-12-201-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Dec 20 17:58:33 CET 2010 on sn-devel-104
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-021-1/+1
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* Cause cli_close to return an NTSTATUS.Jeremy Allison2009-04-301-1/+1
| | | | Jeremy.
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-301-3/+2
| | | | | | | Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-131-1/+1
|
* Make cli_tcon_andx asyncVolker Lendecke2009-01-301-3/+6
|
* Use separate make variables for libutil and libcrypto.Jelmer Vernooij2008-10-181-1/+1
|
* smbspool: Fix printing on port 139.Karolin Seeger2008-08-141-1/+1
| | | | | | | | This one was introduced with 8eff35bc. Thanks to Noèl Köthe for tracking that down! Karolin (This used to be commit 250f5a40d6e80305220d7cdc6a8f8459d8d0de74)
* Fix bug #5675 with a varient of Tim Waugh's patch,Jeremy Allison2008-08-071-1/+1
| | | | | | as proposed by James Peach. Jeremy. (This used to be commit 5c27ad75836136c39774c9456d63f46fa62e281f)
* From Michael R Sweet <mike@easysw.com>.Jeremy Allison2008-05-301-1/+1
| | | | | | | | | | | All, Noticed that smbspool.c still has my Easy Software Products copyright on it. The following patch fixes it to match the other code I've contributed over the years... Jeremy. (This used to be commit 9f5897e28dfa0d0563cd2568b4bedc601681e41b)
* smbspool: Fix the smbspool build.James Peach2008-04-211-11/+15
| | | | (This used to be commit a51cb3c1a9549d74c1e5cf05bc43b955af1a25b7)
* smbspool: minor formatting cleanups.James Peach2008-04-211-88/+133
| | | | (This used to be commit 831a09ae25e98eacc0b0be5390d3ac3aa671a8a5)
* smbspool: Run indent to approximate conding standards.James Peach2008-04-211-533/+485
| | | | (This used to be commit 4244be792eeb69e883a1ece013b62fe6941086f2)
* smbspool: add my copyright.James Peach2008-04-211-0/+1
| | | | (This used to be commit b294b2055a422e1af59e3b6843b84750b6786d99)
* smbspool: Fix CUPS authentication protocol support.Mike Sweet2008-04-211-34/+75
| | | | | | | There were a couple of places where we weren't checking for authentication correctly. This chance fixes those places and properly supports Kerberos where available. (This used to be commit 8eff35bc4acc13807c895af43b52db79ee195cb5)
* smbspool: fix Kerberos support for CUPS 1.3.Mike Sweet2008-04-211-144/+87
| | | | | | | | | | | | | | | | | | | | | | | To summarize the changes, the patches remove the old (probably non- working) Kerberos support code which is unnecessary with CUPS 1.3 and adds some checks on the NT status we get back to see whether the connection error is related to authentication. If so, we send the ATTR: message to tell CUPS we need a username and password and return exit code 2 so cupsd will do the right thing. AUTH_USERNAME, AUTH_PASSWORD, and KRB5CCNAME are set and supported by CUPS 1.3. The new exit code is supported by CUPS 1.2.x and 1.3, and it treated as a general failure in CUPS 1.1. The ATTR: message is only supported by CUPS 1.3, while CUPS 1.2 will assume the "username,password" value we are setting. The current code only uses the AUTH_* env vars if they are set. If not, we fall back to the previous behavior. I really can't tell whether the Kerberos code that was in there would work at all. It did not work for Mac OS X which is why I dropped it. (This used to be commit 8c12c5cea01d9b801fe80c2a87b8139c488a62a5)
* Eliminate global variable in_client and a plethora of extern declarations.Derrell Lipman2008-03-061-2/+1
| | | | | Derrell (This used to be commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc)
* Add general '-e' option to enable smb encryptionJeremy Allison2008-01-051-1/+20
| | | | | | on tools. Jeremy. (This used to be commit 757653966fc1384159bd2d57c5670cd8af0cae96)
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-2/+2
| | | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
* Remove more pstring/fstrings.Jeremy Allison2007-11-081-11/+19
| | | | | Jeremy. (This used to be commit 7a1de5b44e84a7474e78518c6ba33b3fedc42b5f)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-1/+1
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23527: Use existing escaping function pointed by JamesSimo Sorce2007-10-101-27/+3
| | | | (This used to be commit 9dcbef9615aec7cfe8f72e6f21f01af4e4fcc90e)
* r23524: Fix bug 2319.Simo Sorce2007-10-101-13/+60
| | | | | | | Got report this is all ok form a tester. Close a loong standing bug preventing people to freely use any character in their password when printing via cups were involved. (This used to be commit 54ca011212982cf1d94a76ca9d39c391783da04f)
* r17571: Change the return code of cli_session_setup from BOOL to NTSTATUSVolker Lendecke2007-10-101-3/+4
| | | | | Volker (This used to be commit 94817a8ef53589011bc4ead4e17807a101acf5c9)
* r16608: Klocwork #2035. Null deref (bit of a stretch... :-).Jeremy Allison2007-10-101-2/+4
| | | | | Jeremy. (This used to be commit 7d7a98208b1b514da60486fcbbb7b6d04df4ffac)
* r15552: Fix segfault...Günther Deschner2007-10-101-0/+2
| | | | | Guenther (This used to be commit ff93fc7c1e22c035f6f1405d263702bbb9d61575)
* r15448: New autoconf macro to test for sysconf variables.James Peach2007-10-101-1/+0
| | | | (This used to be commit a19d4f2bb4aa94ab40e371efbad9f17e38e3bbc4)
* r14176: Fix coverity bug #30. Ensure no possible null deref.Jeremy Allison2007-10-101-2/+7
| | | | | Jeremy. (This used to be commit e5d6069cf88c0aa632af5582fcd7466729b20934)