summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
Commit message (Collapse)AuthorAgeFilesLines
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Fixed display of "remote downlevel document" in old print job submissionJeremy Allison2002-01-251-1/+1
| | | | | case. Jeremy.
* Same fix as went into 2.2 (I'm waiting for jerry to finish some code).Jeremy Allison2002-01-111-34/+34
| | | | Jeremy.
* Missed error return is can_rename fails.Jeremy Allison2002-01-041-0/+1
| | | | Jeremy.
* Re-wrote the guts of the rename_internals code to cope with a reportedJeremy Allison2002-01-041-37/+80
| | | | | | | bug (renaming name -> name was failing, on W2K it succeeds). Simplified the common case, did a lot of work to ensure NT error codes are correctly reported back to client. Jeremy.
* Ensure modtime is set correctly on destination files in copy command.Jeremy Allison2002-01-031-0/+4
| | | | Jeremy.
* passing NULL to print_queue_status()'s status parameter could end in a segfaultSimo Sorce2001-12-291-1/+2
|
* Ensured filetimes set (by name) after close. Ignore errors. This is theJeremy Allison2001-12-161-14/+13
| | | | | | correct way to ensure times set in 'pending modtime' and 'time close' are always set correctly. Inspired by patch from Juergen Hasch. Jeremy.
* I think this is a fix for the "out of space" errors with oplocks=no.Jeremy Allison2001-11-251-49/+58
| | | | Jeremy.
* Tidyups when I was doing the big merge...Jeremy Allison2001-11-171-12/+16
| | | | Jeremy.
* Fix from Herb. mincount/maxcount need to be ssize_t for comparisons.Jeremy Allison2001-11-141-1/+1
| | | | Jeremy.
* Fixup __LPID -> _LPID.Jeremy Allison2001-11-091-1/+1
| | | | Jeremy.
* Change to guest logon code.Andrew Bartlett2001-11-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This changes the way we process guest logons - we now treat them as normal logons, but set the 'guest' flag. In particular this is needed becouse Win2k will do an NTLMSSP login with username "", therefore missing our previous guest connection code - this is getting a pain to do as a special case all over the shop. Tridge: We don't seem to be setting a guest bit for NTLMSSP, in either the anonymous or authenticated case, can you take a look at this? Also some cleanups in the check_password() code that should make some of the debugs clearer. Various other minor cleanups: - change the session code to just take a vuser, rather than having to do a vuid lookup on vuser.vuid - Change some of the global_client_caps linking - Better debug in authorise_login(): show the vuid. Andrew Bartlett
* Don't put a \n on the end of the arg to exit_server()Tim Potter2001-11-051-5/+5
|
* Various post AuthRewrite cleanups, fixups and tidyups.Andrew Bartlett2001-11-011-2/+2
| | | | | | | | | | | | | | | | | Zero out some of the plaintext passwords for paranoia Fix up some of the other passdb backends with the change to *uid_t rather than uid_t. Make some of the code in srv_netlog_nt.c clearer, is passing an array around, so pass its lenght in is definition, not as a seperate paramater. Use sizeof() rather than magic numbers, it makes things easier to read. Cope with a PAM authenticated user who is not in /etc/passwd - currently by saying NO_SUCH_USER, but this can change in future. Andrew Bartlett
* When you make a data_blob() then you probably need to free it too...Andrew Bartlett2001-10-311-0/+4
|
* This is a farily large patch (3300 lines) and reworks most of the AuthRewriteAndrew Bartlett2001-10-311-16/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | code. In particular this assists tpot in some of his work, becouse it provides the connection between the authenticaion and the vuid generation. Major Changes: - Fully malloc'ed structures. - Massive rework of the code so that all structures are made and destroyed using malloc and free, rather than hanging around on the stack. - SAM_ACCOUNT unix uids and gids are now pointers to the same, to allow them to be declared 'invalid' without the chance that people might get ROOT by default. - kill off some of the "DOMAIN\user" lookups. These can be readded at a more appropriate place (probably domain_client_validate.c) in the future. They don't belong in session setups. - Massive introduction of DATA_BLOB structures, particularly for passwords. - Use NTLMSSP flags to tell the backend what its getting, rather than magic lenghths. - Fix winbind back up again, but tpot is redoing this soon anyway. - Abstract much of the work in srv_netlog_nt back into auth helper functions. This is a LARGE change, and any assistance is testing it is appriciated. Domain logons are still broken (as far as I can tell) but other functionality seems intact. Needs testing with a wide variety of MS clients. Andrew Bartlett
* another few changes to the new mangle codeSimo Sorce2001-10-291-2/+27
|
* Converted a bunch of 0x85 constants to SMBkeepalive.Tim Potter2001-10-201-2/+2
|
* Restored old Bmpx code - actually used by OS/2.Jeremy Allison2001-10-191-57/+247
| | | | Jeremy.
* split session setup code out of reply.c in preparation for addingAndrew Tridgell2001-10-151-344/+1
| | | | NTLMSSP and kerberos support in smbd
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-1/+0
|
* Kill of the reply.c end of the workstaion trust account mess.Andrew Bartlett2001-09-261-155/+43
| | | | | | | | | | | | | | Fix the NT errror codes, this time in line with WinXP/2k. - Return the normal error codes, expect for bad user/bad password. These map to logon failure, as a quick security hack. We follow suit. Simplfy some of the password extraction code, the auth subsytem has the intelegence to sort this stuff out, no need to do it here. Move to 'global_encrypted_passwords_negotiated' to determine the use of unencrypted hacks, replacing the current mess. Andrew Bartlett
* Lets call an NTSTATUS an nt_status, not an ecode.Andrew Bartlett2001-09-231-6/+6
|
* Zero out these pstrings before we start: makes for much easier debugging.Andrew Bartlett2001-09-231-2/+2
|
* Fix up NT_STATUS return for session setups, Win2k objects to anything otherAndrew Bartlett2001-09-231-3/+3
| | | | | | | | | | | than NT_STATUS_LOGON_FAILURE. This also brings us (almost) back in line with their implementation. Kill off SMBENCRYPT() macro Kill off 'nt smb support' paramater - tridge okayed this one. Andrew Bartlett
* fixed the error code handling in can_delete() by converting it toAndrew Tridgell2001-09-211-19/+22
| | | | NTSTATUS. This gets the right error codes in SMBunlink
* move to SAFE_FREE()Simo Sorce2001-09-171-1/+1
|
* fixed ctemp in server and client. It turns out that ctemp on NT is ↵Andrew Tridgell2001-09-171-9/+20
| | | | completely broken, and it's pointless to emulate their brokenness completely in this case, but at least this makes us use approximately the same packet format. The spec is complelet wrong in this case
* Fix up workstaion and kickoff time checks, moved to auth_smbpasswd.c whereAndrew Bartlett2001-09-161-4/+7
| | | | | | | | | they can have general effect. Fixed up workstaion support in the rest of samba, so that we can do these checks. Pass through the workstation for cli_net_logon(), if supplied.
* Start pushing the NTSTATUS stuff out to the wire for session setups.Andrew Bartlett2001-09-161-51/+27
| | | | | | | | | Rework the 'map to guest' code, its now possible to follow what its trying to do... Add an NT_STATUS_EQUAL(x,y) macro to make this stuff sane to look at. Andrew Bartlett
* Kill off the //server/share%user hack in share level security.Andrew Bartlett2001-09-151-65/+8
| | | | | | This should help make much of this code simpiler. Andrew Bartlett
* Oops... For reference, NTLMv2 passwords are > 24 chars in length, whileAndrew Bartlett2001-09-151-1/+1
| | | | NTLMv1 passwords (and old LM passwords) are exactly 24 in lenghth.
* This looked suspicious now we are attempting to to NTLMv2.Andrew Bartlett2001-09-151-2/+2
| | | | Andrew Bartlett
* Some patches to authentication:Tim Potter2001-09-121-2/+3
| | | | | | | | | - the usersupplied_info now contains a smb_username (as it comes across on the wire) and a unix_username (after being passed through mapping functions) - when doing security={server,domain} use the smb_username, otherwise use the unix_username
* convert more code to using d_printfAndrew Tridgell2001-09-081-1/+0
|
* #ifdef out function when not used.Jeremy Allison2001-09-071-0/+2
| | | | Jeremy.
* Fix the 62bit locking onto 32 bit NFS mounts problem generically for HPUX.Jeremy Allison2001-09-061-0/+32
| | | | | Don. please check this out. Jeremy.
* Merge of transfer file code from 2.2, fix for readbraw.Jeremy Allison2001-09-041-267/+267
| | | | Jeremy.
* the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell2001-09-041-102/+83
| | | | the client code still needs some work
* more NTSTATUS changesAndrew Tridgell2001-09-011-17/+4
|
* Fix crash bug with indirecting through null pointer on recursive delete.Jeremy Allison2001-08-301-134/+119
| | | | Jeremy.
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-11/+13
| | | | to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs
* converted smbd to use NTSTATUS by defaultAndrew Tridgell2001-08-271-765/+495
| | | | | | | | | | | | | | | | 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
* get rid of compiler warningsHerb Lewis2001-08-241-2/+2
|
* flush on a invalid fsp should give an errorAndrew Tridgell2001-08-241-16/+16
|
* Fix to only send the status32 error for status32 clients, not to otherAndrew Bartlett2001-08-231-3/+1
| | | | nt_smb clients. As spotted by Thursby.
* A few changes:Andrew Bartlett2001-08-221-3/+1
| | | | | | | | | | | | drop paramaters: status utmp hostname change session code to always record each vuid current on the server. The sessionid struct is no longer packed, as I couldn't get that to work ;-) change smbstatus to show this info and less of the connections.tdb info (its not actualy that accurate). I'll get swat doing some of this shortly.
* The DELL powervault 705 is sending a tcon&x with the service name beingJean-François Micouleau2001-08-221-5/+15
| | | | | | | | | "share" instead of "\\server\share". Fix that. Still not able to get the user list but that's something else. Jeremy I don't think I broke anything ;-) J.F.
* two fixes for NT clients -> share level Samba serverAndrew Tridgell2001-08-201-1/+9
|