summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clierror.c
Commit message (Collapse)AuthorAgeFilesLines
* r21865: Add in the stubs for SMB transport encryption. Will fleshJeremy Allison2007-10-101-0/+5
| | | | | | | | these out as I implement. Don't add to SAMBA_3_0_25, this is experimental code. NFSv4 you're now officially on notice... :-). Jeremy. (This used to be commit 5bfe638f2172e272741997100ee5ae8ff280494d)
* r21576: Patch based on work from Todd Stecher <todd.stecher@isilon.com>Jeremy Allison2007-10-101-0/+9
| | | | | | | to allow client to fragment large SPNEGO blobs (large krb5 tickets). Tested against W2K3R2. Should fix bug #4400. Jeremy. (This used to be commit b81c5c6adce51cec06df0e993534064b20666a8e)
* r18865: fixed some of the most obvious NTSTATUS/WERROR mixups in Samba3. ItAndrew Tridgell2007-10-101-1/+1
| | | | | | | | | | | | still doesn't compile with immediate structures and the NTSTATUS/WERROR separation, as there are still several places where the two error types are mixed up. I haven't fixed those as they require decisions about the rpcclient code that I really don't want to get into (the error handling there is a mess) So samba3 compiles now, but only becaise HAVE_IMMEDIATE_STRUCTURES is not used (look for HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED) (This used to be commit 8438a6a7d4506d395c8b4bd0e99f9c100e5e3c4e)
* r18858: arrgh! - since HAVE_IMMEDIATE_STRUCTURES were last enabled the codeAndrew Tridgell2007-10-101-1/+1
| | | | | | can no longer handle it (at least with gcc 4.1.2). Disable it until investigated and fixed properly. (This used to be commit c8670b33b490daeaff987c21fcb0ec601a91d54e)
* r17863: Fix unneeded NULL check on pointer parameters causing theJeremy Allison2007-10-101-7/+2
| | | | | | Stanford checker to flag null deref. Jeremy. (This used to be commit b7fc023e9025127855fab71002d556e5f84e00b4)
* r13669: Get rid of poor errno mapping table. Bounce through NTSTATUS instead.Jeremy Allison2007-10-101-39/+6
| | | | | | DO NOT MERGE FOR 3.0.21c PLEASE. Jeremy. (This used to be commit 3de0d9af6925e3dc0328c02c2a30127ea5c82a83)
* r13664: Fix the cli_error codes to always detect a socket error.Jeremy Allison2007-10-101-39/+107
| | | | | | | This code needs a tidyup and common code with libsmb/errormap.c merging. Should fix the winbindd crash Jerry found (I hope). Jeremy. (This used to be commit e81227d044fbe7c73c121e540ccafc7f6517c4ea)
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-0/+17
| | | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
* r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore.Tim Potter2007-10-101-2/+0
| | | | (This used to be commit 985dbb47d925e79c1195ca219f7ab5d6648b22b8)
* r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison2007-10-101-2/+2
| | | | | | | safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy (This used to be commit 9506b8e145982b1160a2f0aee5c9b7a54980940a)
* r547: Add entry for NT_STATUS_DUPLICATE_NAME in the ntstatus to unix error ↵Jelmer Vernooij2007-10-101-0/+3
| | | | | | | mapping table (This used to be commit 31c21d520d030e27e4adc6075a50026724b87173)
* Eliminate valgrind error when client gets bad sig on list. Some reformatting.Jeremy Allison2003-07-301-0/+3
| | | | | Jeremy. (This used to be commit b8f6b836468b3a0ae75977dc65cae8400f74734c)
* Spelling.Tim Potter2003-07-161-1/+1
| | | | (This used to be commit 2750418752e491c5e87f0f2adf253291e31ee4c2)
* Merge SMB signing, cli buffer clobber and NTLMSSP signing tweaks from HEAD.Andrew Bartlett2003-04-211-4/+8
| | | | (This used to be commit c6c4f69b8ddc500890a65829e1b9fb7a3e9839e9)
* Add some more NT to unix error code mappings (from HEAD)Jelmer Vernooij2003-04-151-3/+92
| | | | (This used to be commit 62dac3d6ebc72bec24f3c0df4c8d8e37029473e2)
* Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett2003-01-031-3/+3
| | | | | | | warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
* Cope with rw errors and timeout to peer.Jeremy Allison2002-10-011-5/+25
| | | | | Jeremy. (This used to be commit d8d351eb01ea7c84828dbc96224d7b13d643b558)
* Added error string for server timeout on client call.Jeremy Allison2002-10-011-0/+8
| | | | | Jeremy. (This used to be commit 28d2eb934318818a3b0527e391987ea139dbf4a3)
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-2/+2
| | | | (This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-171-1/+1
| | | | (This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
* merge from 2.2Gerald Carter2002-02-131-0/+5
| | | | (This used to be commit 50fa21c995d33601920b3b56a3e03b09262e7fd9)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Add more string explanations of RAP errors that are already documentedMartin Pool2002-01-221-8/+17
| | | | | in clirap2. (This used to be commit 935955b50ff503d18265f745e6e0df90d3e5dd4b)
* Treat RAP codes differently.Jeremy Allison2001-12-101-19/+20
| | | | | Jeremy. (This used to be commit 919b11a787145139e6255674179b2ff7e587475d)
* RAP error strings take precedence as they are not encoded in the SMB headerJeremy Allison2001-12-101-9/+9
| | | | | | (ie. the call can succeed, but still be an encoded error). Jeremy. (This used to be commit 3c68b94199ff08b205d1eb14da56804936b900a8)
* Fix --enable-developer shadow warningAndrew Bartlett2001-11-261-3/+3
| | | | (This used to be commit 6a919bcf3d5848e09ddba1e8946f985661af8f67)
* This patch applied, except without the structure changes to nmblib.cAndrew Bartlett2001-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Andrew Bartlett. From kai@cmail.ru Mon Oct 29 18:50:42 2001 Date: Fri, 19 Oct 2001 17:26:06 +0300 From: Andrew V. Samoilov <kai@cmail.ru> To: samba-technical@lists.samba.org Subject: [patch]: makes some arrays const to be shared between processes Hi! This patch makes some arrays const. So these arrays go to text/rodata segment and are shared between all of the processes which use shared library with these arrays. Regards, Andrew V. Samoilov. P.S. Please cc your answer to kai@cmail.ru, I don't subscribed to this list. ChangeLog: * cliconnect.c (prots): Make const. * clierror.c (rap_errmap): Likewise. * nmblib.c (nmb_header_opcode_names): Likewise. (lookup_opcode_name): Make opcode_namep const. Eliminate i. * nterr.c (nt_err_code_struct): Typedef const. * smberr.c (err_code_struct): Make const. (err_classes): Likewise. (This used to be commit cb84485a2b0e1fdcb6fa90e0bfb97e125ae1b3dd)
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-3/+0
| | | | (This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
* use cli_is_error() instead of looking in smb_rcls, otherwise NT statusAndrew Tridgell2001-09-051-1/+1
| | | | | codes don't work correctly (This used to be commit 55d5828e608671f070a9e96938be0d16d50aeb26)
* fixed typoAndrew Tridgell2001-08-281-1/+1
| | | | (This used to be commit 2d1829dfd041336a587443435d8dccab365a2b56)
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-22/+31
| | | | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs (This used to be commit 1b778bc7d22efff3f90dc450eb12baa1241cf68f)
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-38/+11
| | | | | | | | | | | | | | | | | major changes include: - added NSTATUS type - added automatic mapping between dos and nt error codes - changed all ERROR() calls to ERROR_DOS() and many to ERROR_NT() these calls auto-translate to the client error code system - got rid of the cached error code and the writebmpx code We eventually will need to also: - get rid of BOOL, so we don't lose error info - replace all ERROR_DOS() calls with ERROR_NT() calls but that is too much for one night (This used to be commit 83d9896c1ea8be796192b51a4678c2a3b87f7518)
* Distinguish between NT informational and error codes.Tim Potter2001-08-211-4/+10
| | | | (This used to be commit 02fe0e18dfcb8cc83b3cf0b6c8dd4dc1ddb7e196)
* Debug cleanups.Tim Potter2001-08-101-3/+3
| | | | (This used to be commit e98f9481235dce9a0a76450b84769b86eca57ca2)
* Had the test for cli_is_error() reversed. You idiot Stimpy!Tim Potter2001-08-101-1/+1
| | | | (This used to be commit e9ceb17d777f4bcb7a9ff6b509c178f063be4722)
* A rewrite of the error handling in the libsmb client code. I've separatedTim Potter2001-08-101-92/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | out the error handling into a bunch of separate functions rather than all being handled in one big function. Fetch error codes from the last received packet: void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num); uint32 cli_nt_error(struct cli_state *); Convert errors to UNIX errno values: int cli_errno_from_dos(uint8 eclass, uint32 num); int cli_errno_from_nt(uint32 status); int cli_errno(struct cli_state *cli); Detect different kinds of errors: BOOL cli_is_dos_error(struct cli_state *cli); BOOL cli_is_nt_error(struct cli_state *cli); BOOL cli_is_error(struct cli_state *cli); This also means we now support CAP_STATUS32 as we can decode and understand NT errors instead of just DOS errors. Yay! Ported a whole bunch of files in libsmb to use this new API instead of the just the DOS error. (This used to be commit 6dbdb0d813f3c7ab20b38baa1223b0b479aadec9)
* The big character set handling changeover!Andrew Tridgell2001-07-041-1/+1
| | | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
* Added a unix error code for NT_STATUS_PATH_NOT_COVERED.Tim Potter2001-06-151-0/+1
| | | | (This used to be commit 66e62245ea50fe7b996484ca919083eec2edfd14)
* Add an extra error code translation to clierror.c so that libsmbclientRichard Sharpe2001-01-291-1/+2
| | | | | gets some more error codes correct ... (This used to be commit bca6b7dd20839a15aa97b4e6ba03c60eab9ed237)
* Return EACCES for bad password.Tim Potter2001-01-021-1/+1
| | | | (This used to be commit 143006d32f0a0d339b870741b811ec49795b7099)
* changes to sync with 2.2. treeHerb Lewis2000-10-111-1/+1
| | | | | | | | | | | | | | | | | | .cvsignore remove config.h - not in this directory include/profile.h profile changes lib/messages.c added message to return debug level libsmb/clierror.c cast to get rid of compiler warning libsmb/smbencrypt.c cast to get rid of compiler warning profile/profile.c add flush profile stats changes for profile struct rpc_parse/parse_samr.c fix for compiler warning rpc_server/srv_samr.c cast to get rid of compiler warning smbd/ipc.c profile stats message.c profile stats smbd/negprot.c profile stats smbd/nttrans.c profile stats smbd/trans2.c profile stats utils/smbcontrol.c new flush stats command (This used to be commit bbb24daa25dca4e4b6b1f8942cd84ee3aa1bed8e)
* In cli_error() return ENOENT when an ERROR_INVALID_NAME is received insteadTim Potter2000-08-041-0/+1
| | | | | of the generic EINVAL. (This used to be commit a290107aee01a85ca1ef5565f23c8f00e18e98c2)
* Tidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need ↵Jeremy Allison2000-08-011-1/+2
| | | | | | | | | NT_STATUS_XXX). Removed IS_BITS_xxx macros as they were just reproducing "C" syntax in a more obscure way. Jeremy. (This used to be commit c55bcec817f47d6162466b193d533c877194124a)
* more mergingAndrew Tridgell2000-05-101-1/+1
| | | | | | it is now at the stage that winbindd can compile in the head branch, but not link (This used to be commit d178c00aae77710ae6ff20a7f54a30e3bd8232bb)
* split clientgen.c into several partsAndrew Tridgell2000-04-251-0/+213
the next step is splitting out the auth code, to make adding lukes NTLMSSP support easier (This used to be commit 10c5470835b43116ed48b3137c3b9cc867a20989)