summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* check return value of locking_init()Andrew Tridgell1998-11-051-10/+12
|
* Added scripting option (-s) to smbpasswd.Jeremy Allison1998-11-041-10/+73
| | | | Jeremy.
* Makefile.in configure configure.in include/proto.h smbd/noquotas.c ↵Jeremy Allison1998-11-031-0/+3
| | | | | | | | | | | | smbd/quotas.c: Added quotas patch for autoconf from Dejan Ilic <svedja@lysator.liu.se>. printing/printing.c: Filenames with spaces patch from Allan Bjorklund <allan@umich.edu> utils/nmblookup.c: Fix usage() function. smbd/reply.c: Split out the security=server and security=domain checks into check_server_security() and check_domain_security() to aid the writing of the 'hack' appliance mode invented by John Schimmel. Jeremy.
* Fix suggested by Nicholas.S.Jenkins@cdc.com - connect to theJeremy Allison1998-10-301-2/+7
| | | | | | | password change server as anonymous - you don't need to have logged on as the user to do the password change. Doh ! (Why didn't *I* think of that one.... :-). Jeremy.
* I've moved the debugparse module files into the ubiqx directory because IChristopher R. Hertel1998-10-281-15/+10
| | | | | | | | | | | know that 'make proto' will ignore them there. The debugparse.h header file is included in includes.h, and includes.h is included in debugparse.c, so all of the pieces "see" each other. I've compiled and tested this, and it does seem to work. It's the same compromise model I used when adding the ubiqx modules into the system, which is why I put it all into the same directory. Chris -)-----
* Fixed a small bug in debug2html. It wasn't properly checking EOF. TheChristopher R. Hertel1998-10-271-1/+18
| | | | | | | | | | | | | | | | current status is "it works". I need to add some syntax error recovery and a usage message. Basic stuff. I've also modified Makefile.in. If you want to compile it you'll have to do a 'make debug2html', as I used smbtorture as a model. We can decide later if this tool is useful enough to be compiled always. BTW, a 'make realclean' fails because the bin directory isn't empty. That's because it doesn't delete optionally compiled files such as smbtorture and debug2html (and because of the CVS subdirectory, but I think that's only a problem for developers). Chris -)-----
* Here is the simple debug parser and the debug2html converter. Still to do:Christopher R. Hertel1998-10-261-0/+239
| | | | | | | | | | | * Debug message filtering. * I need to add all this to Makefile.in (If it looks at all strange I'll ask for help.) If you want to compile debug2html, you'll need to do it by hand until I make the changes to Makefile.in. Sorry. Chris -)-----
* volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell1998-10-241-4/+5
| | | | | | changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before.
* torture debug.Luke Leighton1998-10-221-0/+14
|
* enumeration tests (files, sessions, shares, connections).Luke Leighton1998-10-221-0/+32
| | | | | hey, you can see how many connections succeed while the rpctorture command is running!
* rpctorture commandLuke Leighton1998-10-221-0/+520
|
* fixed a connection bug in torture testAndrew Tridgell1998-10-201-11/+66
|
* added maxfid testAndrew Tridgell1998-10-161-11/+66
|
* set recursion desired for bcast name queryAndrew Tridgell1998-10-141-1/+2
|
* dce/rpcLuke Leighton1998-10-081-3/+3
|
* - don't generate 0 params in tortureAndrew Tridgell1998-10-081-1/+1
| | | | - handle 0 params in ipc.c
* - fixed a bunch of warnings and minor errorsAndrew Tridgell1998-10-081-53/+37
| | | | | | - got smbtorture to compile - removed %D from some of lukes code - Luke, what is %D? it ain't portable anyway
* use 1 second resolution calls if possibleAndrew Tridgell1998-10-081-3/+3
|
* - modified resolve_name() to take a name_typeAndrew Tridgell1998-10-041-1/+1
| | | | | | - cleaned up resolve_name() (split into separate functions for each resolver) - if can't find local master then use #1B name - support listing of foreign workgroups in /smb/
* added lseek() support for directoriesAndrew Tridgell1998-10-031-2/+2
|
* - static function "create_new_hashes" was identical to "nt_lm_owf_gen".Luke Leighton1998-10-021-23/+2
| | | | | | | | | | create_new_hashes didn't zero the buffer for the md4hash: nt_lm_owf_gen did, because jeremy sorted this out a couple of days ago. call nt_lm_owf_gen instead. - call SMBOWFencrypt from SMBencrypt and SMBNTencrypt. - added #ifdef DEBUG_PASSWORD debug password calls.
* some changes in smbtorture as a result of clientgen interface changesAndrew Tridgell1998-10-021-5/+5
| | | | | | | for smbwrapper note that Lukes client changes broke smbtorture. This doesn't fix it, but at least I didn't break it more than it was.
* Fixed problems found in lint pass over the old code by <cpeterso@microsoft.com>.Jeremy Allison1998-09-281-3/+25
| | | | | These were the problems that still existed in the 2.0 branch. Jeremy.
* Changes to test in configure if capabilities are enabled on a system.Jeremy Allison1998-09-283-9/+4
| | | | | | | | | | Changes to get Samba to compile cleanly with the IRIX compiler with the options : -fullwarn -woff 1209,1174 (the -woff options are to turn off warnings about unused function parameters and controlling loop expressions being constants). Split prototype generation as we hit a limit in IRIX nawk. Removed "." code in smbd/filename.c (yet again :-). Jeremy.
* automated generation of .dummy files for each subdirectory;Alexandre Oliva1998-09-281-1/+0
| | | | | dummy.in files are no longer needed, and new directories will be taken care of automatically, at configure (or config.status --recheck) time
* Fixed up more possibly uninitialized variables.Richard Sharpe1998-09-271-1/+1
| | | | | | Now only two compilation warnings seem to be left. Luke may want to check the changes I made.
* Makefile.in: Fixed bug with continuation line causing proto to fail.Jeremy Allison1998-09-252-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added $(PROGS) $(SPROGS) as targets for make clean. acconfig.h: Added HAVE_IRIX_SPECIFIC_CAPABILITIES. configure.in: Added sys/capability.h header check. Added function checks for srandom random srand rand. Added HAVE_IRIX_SPECIFIC_CAPABILITIES test. includes.h: Added #include <sys/capability.h>. ntdomain.h: Moved struct acct_info into here from smb.h smb.h: Added KERNEL_OPLOCK_CAPABILITY define. Moved enum action_type into rpcclient.h Moved struct cli_state into client.h Moved struct nt_client_info, struct tar_client_info, struct client_info into rpcclient.h lib/genrand.c: Changed to use sys_random() & friends. lib/smbrun.c: Lose capabilities after fork. lib/system.c: Added set_process_capability(), set_inherited_process_capability() sys_random(), sys_srandom(). lib/util.c: Added Ander's EFBIG lock check to fcntl_lock for 64 bit access to an 32 bit mounted NFS filesystem. nmbd/nmbd.c: Changed to use sys_random() & friends. nmbd/nmbd_browsesync.c: Changed to use sys_random() & friends. passdb/ldap.c: Missed one pdb_encode_acct_ctrl call. passdb/passdb.c: Changed to Ander's code for ' ' characters. passdb/smbpass.c: Added Ander's code to reset ACB_PWNOTREQ. script/mkproto.awk: Added 'long' to prototypes. smbd/chgpasswd.c: Lose capabilities after fork. smbd/open.c: Do the mmap *after* the kernel oplock. smbd/oplock.c: Removed stub code from kernel oplock path. Added set_process_capability(), set_inherited_process_capability() calls. smbd/reply.c: Initialize count = 0, offset = 0. smbd/server.c: Added set_process_capability(), set_inherited_process_capability() calls. tests/summary.c: Ensure we have RANDOM or RAND. utils/smbpasswd.c: Added Ander's code to reset ACB_PWNOTREQ. utils/torture.c: Changed to use sys_random() & friends. Jeremy.
* added wksinfo command to rpcclient, which don't work too good.Luke Leighton1998-09-251-0/+1
|
* added rpcclient programLuke Leighton1998-09-251-1/+7
|
* Integration of Anders Blomdell <anders.blomdell@control.lth.se>'sJeremy Allison1998-09-241-48/+90
| | | | | | smbpasswd changes. Not exactly the same as his code - several changes. Jeremy.
* major autoconf clean-upAlexandre Oliva1998-09-211-0/+1
| | | | fix problems in builds with srcdir!=builddir
* some cleanups to use ZERO_STRUCT() and friendsAndrew Tridgell1998-09-051-1/+1
|
* tridge the destroyer returns!Andrew Tridgell1998-09-054-20/+19
| | | | | | | | | | | | | | | | | | | | | | prompted by the interpret_security() dead code that Jean-Francois pointed out I added a make target "finddead" that finds potentially dead (ie. unused) code. It spat out 304 function names ... I went through these are deleted many of them, making others static (finddead also reports functions that are used only in the local file). in doing this I have almost certainly deleted some useful code. I may have even prevented compilation with some compile options. I apologise. I decided it was better to get rid of this code now and add back the one or two functions that are needed than to keep all this baggage. So, if I have done a bit too much "destroying" then let me know. Keep the swearing to a minimum :) One bit I didn't do is the ubibt code. Chris, can you look at that? Heaps of unused functions there. Can they be made static?
* Ok - this is the 64 bit widening check in. It changes the configureJeremy Allison1998-09-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | to check for stat64 and friends, and then changes much of Samba to use the data type SMB_OFF_T for file size information. stat/fstat/lstat/lseek/ftruncate have now become sys_stat etc. to hide the 64 bit calls if needed. Note that this still does not expose 64 bit functionality to the client, as the changes to the reply_xxx smb's are not yet done. This code change should make these changes possible. Still to do before full 64 bit-ness to the client: fcntl lock code. statfs code widening of dev_t and ino_t (now possible due to SMB_DEV_T and SMB_OFF_T types being in place). Let me know if wierd things happen after this check-in and I'll fix them :-). Jeremy.
* More abstraction of file system data types, to move to a 64Jeremy Allison1998-09-012-3/+3
| | | | | | | | | | | | | | | | | | | | | bit file interface for the NT SMB's. Created a new define, SMB_STRUCT_STAT that currently is defined to be struct stat - this wil change to a user defined type containing 64 bit info when the correct wrappers are written for 64 bit stat(), fstat() and lstat() calls. Also changed all sys_xxxx() calls that were previously just wrappers to the same call prefixed by a dos_to_unix() call into dos_xxxx() calls. This makes it explicit when a pathname translation is being done, and when it is not. Now, all sys_xxx() calls are meant to be wrappers to mask OS differences, and not silently converting filenames on the fly. Jeremy.
* bounds check next_token() to prevent possible buffer overflowsAndrew Tridgell1998-08-311-4/+4
|
* some smbtorture hacks (random IPC calls)Andrew Tridgell1998-08-251-4/+60
|
* and get the message right ...Andrew Tridgell1998-08-211-1/+1
|
* silly me.Andrew Tridgell1998-08-211-1/+1
| | | | perms on lock dir should be 755 not 644.
* testparm now prints a warning if the lock directory doesn't have 0644Andrew Tridgell1998-08-201-4/+15
| | | | permissions.
* this checkin gets rid of the global Files[] array and makes it localAndrew Tridgell1998-08-151-1/+0
| | | | | | | in files.c it should now be faily easy to expand the default MAX_OPEN_FILES to many thousands.
* configure: Changes for extra headers.Jeremy Allison1998-08-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | configure.in: Source for header changes. client/clitar.c: Fixed isXXX macros & debugs for gcc pedantic compile. include/config.h.in: Added MEMSET, BZERO, MEMORY, RPCSVC_YPCLNT, STRINGS headers. include/includes.h: Headers for the above. include/smb.h: Made SIGNAL_CAST POSIX by default void (*)(int). lib/access.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/charset.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/debug.c: Fixed signal functs. lib/kanji.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/smbrun.c: Fixed isXXX macros & debugs for gcc pedantic compile. lib/util.c: Fixed isXXX macros & debugs for gcc pedantic compile. libsmb/namequery.c: Fixed isXXX macros & debugs for gcc pedantic compile. locking/shmem.c: Fixed isXXX macros & debugs for gcc pedantic compile. locking/shmem_sysv.c: Fixed error messages in sysV stuff. nmbd/asyncdns.c: Fixed signal functs. nmbd/nmbd.c: Fixed isXXX macros & debugs for gcc pedantic compile. passdb/passdb.c: Fixed isXXX macros & debugs for gcc pedantic compile. passdb/smbpassfile.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/chgpasswd.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/ipc.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/nttrans.c: Fixed fsp code path. smbd/password.c: fixed HAVE_YP_GET_DEFAULT_DOMAIN problem. smbd/printing.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/reply.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/server.c: Fixed isXXX macros & debugs for gcc pedantic compile. smbd/trans2.c: Fixed core dump bug. smbd/uid.c: Fixed isXXX macros & debugs for gcc pedantic compile. Jeremy.
* this is the bug change to using connection_struct* instead of cnum.Andrew Tridgell1998-08-141-2/+0
| | | | | | | | Connections[] is now a local array in server.c I might have broken something with this change. In particular the oplock code is suspect and some .dll files aren't being oplocked when I expected them to be. I'll look at it after I've got some sleep.
* return to old behaviour of dumping ALL parametersHerb Lewis1998-08-131-1/+1
|
* the rest of the binaries now compile and linkAndrew Tridgell1998-08-101-33/+34
|
* a few more things compile.Andrew Tridgell1998-08-091-0/+92
| | | | I'll do the rest tomorrow.
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-293-9/+3
|
* Updates smbstatus to have a -S and -L flag.Richard Sharpe1998-07-241-69/+87
| | | | | | Also updated the documentation :-) The code is ugly, we need to rewrite smbstatus someday.
* Fixed bug found by Richard Sharpe. After increasing files_struct size byJeremy Allison1998-07-221-1/+1
| | | | | | | | | MAX_OPEN_DIRECTORIES for nttrans I forgot to update the code that enumerates the array. Created new MAX_FNUMS in local.h, changed all code that iterates through the files_struct array to use this. (sorry Richard). Jeremy.
* loadparm.c:Jeremy Allison1998-07-141-10/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | With apologies to Charlton Heston and Pierre Boule. "You damn fools, you finally did it". Changed default security mode to be security=user. Yes this is a big (although small in code) change. It's something we've been discussing for a while, to finally wean people off the legacy security=share mode which is *never* what you want. Jeremy. nmbd_incomingrequests.c: Bug fix for nmbd core dumps caused by overrun. Found by <samuel@public.szonline.net>. nttrans.c: More NT smb stuff. reply.c: Unlink will overwrite an existing file. Well you learn something new about POSIX every day. :-). server.c: Tidyup unreadable code. smbpasswd.c: Code to allow -U remote_username to allow ordinary users to change remote passwords if their NT username is different from their UNIX username. Patch from <torbjorn.lindh@allgon.se>. Jeremy.