summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
* Minor wording change to the usage message for nmblookup.Richard Sharpe1999-02-041-1/+1
| | | | Now makes more sense, at least to my sleep deprived brain.
* Minor changes to the usage message in neblookup to explain whatRichard Sharpe1999-02-021-3/+15
| | | | | | | | | nmblookup -M - does. Also added a -T flag, which forces the translation of IP addresses to names. Not [yet] the default.
* utils/testparm.c: Fixed "passwd program" tests to look for the correct program.Jeremy Allison1999-01-131-4/+13
| | | | | | smbd/reply.c: Changed "Error" in level 0 debug message about NT bug to "Warning" as Samba will continue without it. Jeremy.
* nmbd/nmbd_incomingrequests.c: Split long debug message.Jeremy Allison1999-01-071-0/+2
| | | | | | utils/smbpasswd.c: Added load_interfaces() to allow name resolution to work correctly for multihomed smb.confs. Jeremy.
* Makefile.in configure configure.in include/config.h.in: Added -c -o fixes ↵Jeremy Allison1998-12-291-0/+4
| | | | | | | from Tim Rice. utils/smbpasswd.c web/swat.c: Added set_auth_parameters() call where needed for OSF1_ENC_SEC. Jeremy.
* Rather large (I'm afraid) tidyup of the setuid handling code.Jeremy Allison1998-12-221-23/+5
| | | | | | | | | | | | | | | | | | | | All setuid code now resides in the one module lib/util_sec.c. The interfaces this module exports are : void gain_root_privilage(void); - Set real/eff/saved uid's to 0. void gain_root_group_privilage(void); - Set real/eff/saved gid's to 0. int set_effective_uid(uid_t uid); - Set eff uid *only* to given value. int set_effective_gid(gid_t gid); - Set eff gid *only* to given value. BOOL become_user_permanently(uid_t uid, gid_t gid); - Set real/eff/saved uid's and gid's to uid and gid permanently - with no way back to root. Most of the quota code now uses these calls (except for a few special cases). smbd/chgpasswd.c: Ensured the dochild exits in the fork()'d child. libsmb/nmblib.c: Fix from Jasper for memory leak. Jeremy.
* Added testparm scripts for invalid unix password sync problems.Jeremy Allison1998-12-121-0/+38
| | | | Jeremy
* Fixed bug in smbpasswd where adding a user and mis-typing the newJeremy Allison1998-12-121-2/+7
| | | | | | password a second time would add the user with a potentially random garbage password. Jeremy.
* HPUX fix. This looks like a big change but isn't actually, most of theJeremy Allison1998-12-101-1/+1
| | | | | | | | | | | | | | | | changes are bzero -> memset as the compiler on HPUX is very picky about bzero (probably a strange define). The significant changes are in configure.in, to fix the HPUX shadow.h problem and also move the large file support to the correct place. passdb/pass_check.c: Added includes for KRB5, DCE and AFS if requested in autoconf. tests/trapdoor.c: Fix to use setresuid and setresgid if defined. The rest of the changes are bzero -> memset. Jeremy.
* Makefile.in added PRINTER_OBJ to SWAT_OBJ so swat canHerb Lewis1998-12-101-1/+1
| | | | | | | | | | | | | | enumerate printers param/loadparm.c added parameter to lp_dump to limit number of items dumped. Pulled real dump code into new function lp_dump_one so it can be called by swat utils/testparm.c extra parameter added for lp_dump call web/statuspage.c got rid of extra > being printed when smbd not running web/swat.c allow auto loaded printers to be enumerated in printer page include/proto.h changed number of parameters in lp_dump and new function lp_dump_one defined.
* Added check for invalid wildcard characters '*' and '?'Jeremy Allison1998-12-101-0/+24
| | | | | in hosts allow/deny checks. Jeremy.
* Samba 2.0 wasn't building on Linux-alpha - so I addedJeremy Allison1998-12-031-2/+2
| | | | | | | | | HAVE_SETRESGID and HAVE_SETRESGID_DECL defines, based on the HAVE_SETRESUID checks. I also updated the places that setresgid was being called based on HAVE_SETRESUID being defined and made sure *both* were defined before allowing the call. Jeremy.
* Makefile.in: Implemented andrej's private and swat file changes.Jeremy Allison1998-12-011-3/+4
| | | | | | | | | configure.in: Implemented andrej's private and swat file changes and SINIX changes. client/smbmount.c: Head branch race condition fix. lib/system.c: Fix compile for OS's that don't have shared mmap. smbd/dfree.c: Fix compile for STAT_STATVFS64 as well as STAT_STATVFS. utils/smbpasswd.c: Tidied up error messages. Jeremy.
* I have done the evil thing :-).Jeremy Allison1998-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | I have added the 'crap applience' mode code to the 2.0 branch. This allows smbd in security=server or security=domain mode to create a UNIX user on the fly if the password server accepts them but there is no local UNIX user. It uses two new parameters add user script delete user script and replaces %u with the username. Note that I have violated my own rules by not yet documenting this :-). But I intend to, after some more testing. It seems ok - but needs more testing. Jeremy.
* update testparm with -s option so it doesn't require a carriage returnHerb Lewis1998-11-191-10/+34
| | | | | also allow specifying [host hostip] without [configfile] updated man page
* Added some of the fixes needed for OSF1 (Digital UNIX).Jeremy Allison1998-11-181-12/+6
| | | | | | | HAVE_PUTPRPWNAM is defined in -lsecurity. <net/route.h> needed to stop compile complaints in <net/if.h> smbpasswd: Moved SunOS optind/optarg to global scope. Jeremy
* Changed (most) open()/fopen()/creat()/mmap() calls to use sys_XXX() instead.Jeremy Allison1998-11-174-7/+7
| | | | | | Needed as in the 64 bit file spec new open types are needed on many OS's to be able to seek past 32bits. Jeremy.
* Added machine account fixes.Jeremy Allison1998-11-161-10/+32
| | | | Jeremy.
* fixes for OSF1 compilationAndrew Tridgell1998-11-132-5/+8
|
* sids in rpctorture changed from fstrings to DOM_SIDLuke Leighton1998-11-131-2/+2
|
* Removed code that used printf/fprintf in password changin libraries.Herb Lewis1998-11-121-3/+19
| | | | Now passes strings instead.
* Fixed smbpasswd so that enabling a user who already has a passwordJeremy Allison1998-11-121-2/+20
| | | | | | doesn't require a new password entry. Sets the 'enable/disable' code back to being symmetrical. Jeremy.
* extracted the password change code from smbpasswd and used it in swatAndrew Tridgell1998-11-121-218/+0
| | | | instead of opening pipes and other horrible stuff.
* char -> uchar fixAndrew Tridgell1998-11-121-1/+1
|
* largely rewrote smbpasswd so that the code is understandable. ThisAndrew Tridgell1998-11-121-637/+679
| | | | | | | | | | | | | should allow us to call a function in swat rather than piping to smbpasswd. while doing this I also fixed quite a few "const char *" versus "char *" issues that cropped up while using const to track down bugs in the code. This led to changes in several generic functions. The smbpasswd changes should be correct but they have not been extensively tested. At least if I have introduced bugs then we should be able to fix them more easily than before.
* include/local.h:Jeremy Allison1998-11-101-0/+4
| | | | | | | | | | | | | include/smb.h: param/loadparm.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). printing/printing.c: Added J.F.'s latest fix. rpc_parse/parse_misc.c: parse_reg.c: rpcclient/cmd_reg.c: rpcclient/display.c: SGI compiler signed/unsigned issues. smbd/reply.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). utils/testparm.c: Added extra test. Jeremy.
* converted smbclient to use clientgen.c rather than clientutil.cAndrew Tridgell1998-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | I did this when I saw yet another bug report complaining about smbclient intermittently missing files. Rather than applying more patches to smbclient it was better to move to the more robust clientgen.c code. The conversion wasn't perfect, I probably lost some features of smbclient while doing it, but at least smbclient should be consistent now. It if fails it should _always_ fail rather than giving people the false impression of a reliable utility. the tar stuff seems to work, but hasn't had much testing as I never use it myself. I'm sure someone will find bugs in my conversion of smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It now uses clientgen.c exclusively. smbclient is still quite messy, but at least it doesn't build its own SMB packets. I haven't touched smbmount as I never use it. Mike, do you want to convert smbmount to use clientgen.c?
* codepages/codepage_def.936: Updated comment.Jeremy Allison1998-11-071-3/+3
| | | | | | | | | param/loadparm.c: Removed "networkstation user login", "domain controller", and "domain sid" parameters. passdb/passdb.c: Removed "networkstation user login" code and changed bug test code to only check once for a bad password server. This will stop the complaints of many "bad login" audit records in NT PDC logs. utils/smbpasswd.c: Removed check for "domain controller". Jeremy.
* lib/charcnv.c: Improved debug comment.Jeremy Allison1998-11-061-8/+10
| | | | | | | | | | | libsmb/namequery.c: Fix to remove 2 second wait is we are doing a unicast and got a reply. smbd/dfree.c: smbd/noquotas.c: smbd/quotas.c: Fixes from Dejan Ilic <svedja@lysator.liu.se> for the quota code. utils/smbpasswd.c: Fixes to allow smbpasswd to be called from swat. Jeremy.
* 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.