summaryrefslogtreecommitdiffstats
path: root/source/client
Commit message (Collapse)AuthorAgeFilesLines
...
* client.c: Allowed client to proceed even if it gets error 234 (more dataJeremy Allison1998-06-041-101/+108
| | | | | | | available) when scanning server/workgroup/share lists. ipc.c: Removed redundent definition of ERROR_MORE_DATA (234) we already have ERRmoredata in smb.h Jeremy.
* clientutil.c: Don't core dump if no controlling terminal available for password.Jeremy Allison1998-06-011-0/+3
| | | | | | | passdb.c: lib/rpc/include/rpc_misc.h: First cut at automatic uid/gid to rid mapping. We can change this at a later date to make more bits available if neccessary. Jeremy.
* includes.h: SunOS doesn't have strcasecmp, solaris versions prior to 2.6 don'tJeremy Allison1998-05-121-2/+2
| | | | | | | | | | have vsnprintf. locking_slow.c: slight tidy. make_smbcodepage.c: Use safe_strcpy instead of pstrcpy. nmbd_winsserver.c: Use pstrcpy instead of fstrcpy. smbmount.c: Fixed reported bug. util.c: Removed old fstrcpy/fstrcat functions. Jeremy.
* This is a security audit change of the main source.Jeremy Allison1998-05-126-244/+244
| | | | | | | | | | | | | | | | | | It removed all ocurrences of the following functions : sprintf strcpy strcat The replacements are slprintf, safe_strcpy and safe_strcat. It should not be possible to use code in Samba that uses sprintf, strcpy or strcat, only the safe_equivalents. Once Andrew has fixed the slprintf implementation then this code will be moved back to the 1.9.18 code stream. Jeremy.
* don't use system functions as arguments to qsort() as otherwise youAndrew Tridgell1998-05-111-1/+1
| | | | | get stuck on systems with broken headers (like SunOS4). In this case use StrCaseCmp instead of strcasecmp
* changed to use slprintf() instead of sprintf() just aboutAndrew Tridgell1998-05-113-14/+26
| | | | | | | everywhere. I've implemented slprintf() as a bounds checked sprintf() using mprotect() and a non-writeable page. This should prevent any sprintf based security holes.
* clitar.c: #ifdef'ed out all the bits that were giving 'defined but not used'Jeremy Allison1998-05-081-0/+7
| | | | | | | | | messages. nttrans.c: More updates. smb.h: Removed stuff that didn't belong in the smb_passwd struct. Persuaded Luke to use a new structure. web/swat.c: Fixed gcc complaints about shadowing global 'string'. Jeremy.
* Se-submitting clitar.c/Richard Sharpe1998-05-081-53/+433
| | | | | | | | I now only have one warning in my code which is the result of some code I have started working on but am not yet using in the code, along with a warning that is caused by one of the include files (a nested comment). I used -Wall -Wshadow -Wstrict-prototypes
* Rolling back again to the equivalent of revision 1.22, as the currentJeremy Allison1998-05-061-382/+25
| | | | | CVS head branch will not compile. Jeremy.
* Real fix for clitar.c problems. Have now made all the rightRichard Sharpe1998-05-061-25/+382
| | | | | | | | things static, and have done a 'make proto; make clean; make'. Still get 54 compiler warnings under Digital UNIX cc. Honest. :-)
* Rolling clitar.c back to the previous rev 1.22 as the current oneJeremy Allison1998-05-051-382/+25
| | | | | needs fixing (sorry). Jeremy.
* Added bug fixes to clitar to ensure proper longfile name restoresRichard Sharpe1998-05-051-25/+382
| | | | | | occur. Also getting ready for setting directory dates correctly
* This looks like a big change but really isn't.Jeremy Allison1998-04-253-17/+17
| | | | | | | | | | | It is changing the global variables "myname" and "myworkgroup" to "global_myname" and "global_myworkgroup" respectively. This is to make it very explicit when we are messing with a global (don't ask - it makes the domain client code much clearer :-). Jeremy.
* Changes to allow Samba to be compiled with -Wstrict-prototypesJeremy Allison1998-04-133-63/+39
| | | | | | with gcc. (Not a big change although it looks like it :-). Jeremy.
* Changes to client.c support the need for directories to be processed by whateverRichard Sharpe1998-04-112-68/+298
| | | | | | | | | | | | action is passed to do_dir. Changes to clitar.c as requested by Canon Information Systems Research Australia: 1. Support restoring long file names 2. Write directory entries to TAR files as first part of setting directory create times 3. Ensure zero length files get correct mtime 4. Allow DOS and UNIX pathnames in command line parameters.
* Patch from Chris Maltby <chris@softway.com.au>. His comments follow:Jeremy Allison1998-04-021-6/+46
| | | | | | | | | | | | | | + improvement to smbtar to allow exclusion/inclusion of system and hidden files, and to generate a listing of what has been archived in a format useful for automated backup systems. + add the "Softq" spooling system to samba's printing capabilities. + I have "fixed" the intrusion of US style dates into samba reporting as well. The format yyyy/mm/dd is not only uunambiguous, but also has the benefit of making lexicographic sorts work correctly. Jeremy.
* client.c: Fixed problem where debug level on command line was overridden by ↵Jeremy Allison1998-03-261-2/+11
| | | | | | | | smb.conf. smbpasswd.c: Removed bugs I put in yesterday (thanks Luke :-) and added error message reporting for remote password changing. Jeremy.
* Adding the same changes to HEAD as were added to BRANCH_1_9_18.Jeremy Allison1998-03-192-50/+0
| | | | | | | | | | | | | Changed smbpasswd to be client-server for a normal user, rather than accessing the private/smbpasswd file directly (it still accesses this file directly when run as root, so root can add users/change a users password without knowing the old password). A shakeout of this change is that smbpasswd can now be used to change a users password on a remote NT machine (yep - you heard that one right - we can now change a NT password from UNIX !!!!!). Jeremy.
* Adding the same change as was added to 1.9.18 branch to add theJeremy Allison1998-03-162-33/+13
| | | | | | | | | | | | | | | | | | | | | | | "name resolve order" parameter. source/Makefile: Re-ordered link for name resolve order code. source/clientgen.c: source/clientutil.c: Added calls to resolve_name(). source/includes.h: Added HPUX zombie fix. source/loadparm.c: Added new name resolve order parameter. source/namequery.c: Re-wrote to include parsing of lmhosts file, new resolve_name() function requested by John. source/nmbd.c: Tell resolve_name not to do WINS lookups if we are the WINS server. source/nmbd_lmhosts.c: Call lmhosts parsing functions in namequery.c source/password.c: Call resolve_name() to lookup security=server name. source/reply.c: source/time.c: source/trans2.c: "fake directory create times" fix from Jim Hague - hague@research.canon.com.au. source/util.c: Removed isalnum() test in Get_Hostname() that seems to cause problems on many systems. Jeremy.
* another makeover of loadparm to support new stuff in swat andAndrew Tridgell1998-03-142-2/+2
| | | | | | | | | | | | | | | | | | testparm. In particular I added: - ability to optionally save default values of all parameters when calling lp_load(). This can then be used to save only non-default parameters in lp_dump(). This makes the saved smb.conf (and viewed parameters in testparm) much shorter - ability to not load ipc share in lp_load() - separators in parm_table[] so parameters can be grouped logically. - flag to mark parameters that are local but which should be also viewed as global as far as parameters editing is concerned
* "For I have laboured mightily on Luke's code, and hath brokenJeremy Allison1998-03-111-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | all I saw" - the book of Jeremy, chapter 1 :-). So here is the mega-merge of the NTDOM branch server code. It doesn't include the new client side pieces, we'll look at that later. This should give the same functionality, server wise, as the NTDOM branch does, only merged into the main branch. Any fixes to domain controler functionality should be added to the main branch, not the NTDOM branch. This code compiles without warnings on gcc2.8, but will need further testing before we are sure all the working functionality of the NTDOM server branch has been correctly carried over. I hereby declare the server side of the NTDOM branch dead (and all who sail in her :-). Jeremy.
* Change the multibyte character set support so thatJeremy Allison1998-03-033-72/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kanji support is one case of multibyte character support, rather than being a specific case in single byte character support. This allows us to add Big5 Chinese support (code page 950) and Korean Hangul support (code page 949) at very little cost. Also allows us to easily add future multibyte code pages. Makefile: Added codepages 949, 950 as we now support more multibyte codepages. asyncdns.c: Fixed problem with child being re-spawned when parent killed. charcnv.c charset.c client.c clitar.c kanji.c kanji.h smb.h util.c loadparm.c: Generic multibyte codepage support (adding Big5 Chinese and Korean Hangul). nmbd.c: Fixed problem with child being re-spawned when parent killed. mangle.c: Modified str_checksum so that first 15 characters have more effect on outcome. This helps with short name mangling as most 'long' names are still shorter than 15 chars (bug was foobar_mng and foobar_sum would hash to the same value, with the modified code they hash differently. Jeremy.
* -N option still prompted for password in smbclient -L usageHerb Lewis1998-02-262-1/+5
|
* Sometime after 1.9.17p5 smbclient stopped being able to doJeremy Allison1998-02-141-2/+4
| | | | | | | | | | | | | NetBIOS name lookups by broadcast and instead only does DNS. With the belief that this was not what was intended (I think it happened in the clientutil.c cleanup) I have added that capability back to smbclient by adding the #define USENMB into clientutil.c, and adding the required namequery.o into the object lists for smbclient and smbmount (as they now need it to link). If this was done intentionally let me know and I'll back this out. Jeremy.
* Fix for crash bug with amanda - from "Michael C. Povel" <Michael.Povel@hub.de>.Jeremy Allison1998-02-131-1/+1
| | | | Jeremy.
* Added fix for doing pq command (from "James J. Szinger" ↵Jeremy Allison1998-02-121-2/+2
| | | | | | <james.szinger@yale.edu>). Jeremy.
* This is *not* a big change (although it looks like one).Jeremy Allison1998-01-227-7/+7
| | | | | | | This is merely updating the Copyright statements from 1997 to 1998. It's a once a year thing :-). NO OTHER CHANGES WERE MADE. Jeremy.
* *** empty log message ***Volker Lendecke1998-01-222-55/+53
|
* Makefile: Added new codepage - 866.Jeremy Allison1998-01-161-1/+1
| | | | | | | | | charset.c: Supporting code for codepage 866. clientutil.c: Fix compile bug in little-used #define. includes.h: Supporting code for codepage 866. make_smbcodepage.c: Supporting code for codepage 866. pcap.c: Fix bug for lpstat. Jeremy.
* Added manpages.Volker Lendecke1998-01-061-4/+0
| | | | | Removed obsolete options from smbmount help message. Volker
* the real source code for the smbfs utilities. Forgot to doVolker Lendecke1998-01-053-0/+1429
| | | | | cvs add first. Volker
* Added 3 commands:Volker Lendecke1998-01-052-31/+39
| | | | | | | | smbmount: This is a stripped down smbclient that communicates with the Linux 2.1.x kernel to supply authenticated smb connections for smbfs mount points. smbmnt/smbumount: setuid commands that do the actual smb mount system call after having done the appropriate security checks
* Bugfix from Branko Cibej <branko.cibej@hermes.si>Jeremy Allison1997-12-241-1/+1
| | | | | | - client.c had a workaround embedded in it for his earlier bug in StrnCaseCmp - removed this. Jeremy.
* client.c:Jeremy Allison1997-12-203-45/+50
| | | | | | | | | | | | | | | | clientgen.c: clientutil.c: clitar.c: Changed usage of receive_smb to new function client_receive_smb except for one use of receive_smb in client.c. This is the receive_smb used to discard packets received whilst in a keyboard wait state. util.c: Created new function client_receive_smb that ignores session keepalives just as the old receive_smb used to do. Created internal function read_smb_length_return_keepalive that is used internally by the changed receive_smb call. Changed read_smb_len to not use an internal buffer - it is never called with a null buffer so such code is redundant. Jeremy.
* fix a bug that sometimes prevented smbclient from connecting withAndrew Tridgell1997-12-141-1/+3
| | | | protocol < LANMAN1
* This is it ! The mega-merge of the JRA_NMBD_REWRITE branchJeremy Allison1997-12-131-4/+7
| | | | | | | | back into the main tree. For the cvs logs of all the files starting nmbd_*.c, look in the JRA_NMBD_REWRITE branch. That branch has now been discontinued. Jeremy.
* fixed the help message for -p (someone complained!)Andrew Tridgell1997-12-021-1/+1
|
* get rid of stat command (it is a hangover from an old experiment)Andrew Tridgell1997-11-251-38/+0
|
* added true enumerated types in loadparm.c. Now we don't need all thoseAndrew Tridgell1997-11-221-8/+2
| | | | | | | | | | | | | | | | "interpret_security" and similar functions. This also means that testparm produces string values for these enumerated types rather than an integer. This was done to make the web interface much cleaner. While I was doing this I found a couple of very nasty bugs in the parm_table code. Someone had added a handle_character_set() function that treated the char** pointer for a P_STRING as an integer! This would have caused memory corruption for anyone using the "character set" option. The loadparm code is delicate - please be careful about using it's more esoteric features! I've also removed the "coding system" global and made it a P_STRING. The integer value was never used anywhere in Samba.
* Rolled back tree state to 11:59pm 8th November 1997 EST toJeremy Allison1997-11-102-174/+42
| | | | | remove problems. Jeremy
* byteorder.h :Luke Leighton1997-11-091-43/+72
| | | | | | | | | | | | typecasting for the debug messages of the data dump. hm. #ifdef NTDOMAIN ntclient.c rpc_pipes/lsaparse.c rpc_pipes/ntclientnet.c rpc_pipes/smbparse.c : adding "Net Server Password Set" functionality to smbclient. #endif
* attempting to mark up 32 bit error codes, needed for NT domains.Luke Leighton1997-11-092-13/+116
| | | | | | | | | | | | separated out smb server-mode password validation into a separate file. added called and calling netbios names to client gen state: referenced section in rfc1002.txt. created workstation trust account checking code in ntclient.c there might be a bug in reply_session_setup_andX. i indented and added { } around single-line if statements: the lm password checking code now doesn't look right (around the GUEST_SESSSETUP bits). *no code semantics have been changed by the indentation process*.
* added code that _uses_ arcfour. arcfour itself, or anything remotelyLuke Leighton1997-11-032-4/+24
| | | | | | | like it, has *not* been added. this is the client and server side of the SAM Logon NT and LM OWF password obfuscation (rc4 with the long-term session key).
* convert the credentials code back to uchar[8] from uint32[2]Andrew Tridgell1997-11-022-6/+6
| | | | This should fix the byte order problems (maybe!)
* client.c clientutil.c proto.hLuke Leighton1997-11-013-26/+29
| | | | | | | | | | | | | | | | | rpc_pipes/ntclientlsa.c rpc_pipes/ntclientnet.c rpc_pipes/ntclientpipe.c : added extra argument to cli_call_api() to allow specifying the length of the \PIPE\ name. it appears that, like when the name of the pipe is NULL and OS-2 requires two extra bytes _after_ the NULL name, that NT requires two bytes after the NULL-terminated name "\PIPE\". these two bytes vary, but values seen so far are: 0x72 0x70; 0x63 0x65; 0x44 0x65; 0x4E 0x00. there appears not to be much logic to this. purpose unknown. ntclient.c: put Set Named Pipe Handle State call directly after SMBopenX call.
* a simple SMB torture tester. This will allow us to evaluate lockingAndrew Tridgell1997-11-012-155/+1
| | | | techniques more accurately.
* added a client-side "set named pipe handle state" function. not knownLuke Leighton1997-10-301-4/+18
| | | | | exactly when you call this (before or after a bind). can sort that out later.
* removed mechanism that created actual files NETLOGON, lsarpc and the like,Luke Leighton1997-10-301-1/+1
| | | | | | | | which are pipes on the IPC$ connection. created mechanism to record pipe names in a separate pipes_struct. it is planned to expand this, to return sensible things like interface structures, and policy handles (RPC_IFACE and LSA_POL_HND). and the like.
* split ntclient.c down into appropriate modules.Luke Leighton1997-10-291-975/+38
|
* added frag field to make_rpc_hdr() functionLuke Leighton1997-10-291-1/+1
|