summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* This looks like a big change but really isn't.Jeremy Allison1998-04-251-3/+4
| | | | | | | | | | | 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.
* clientgen.c: Added rap error codes to cli_error, moved from smbpasswd.cJeremy Allison1998-04-231-60/+6
| | | | | | | password.c: Changed global cli -> pw_cli, removed strtok (bad strtok, bad :-) use in security=server, started to extend security=domain code. smbpasswd.c: Removed rap error code functions. Jeremy.
* includes.h: Added John's redhat fix for QSORT_CAST.Jeremy Allison1998-04-181-529/+56
| | | | | | | | | | | | | smbpass.c: Added lock depth code so calls to pw_file_lock() can be nested. Fixed codedump problems in add_smbpwd_entry(). smbpasswd.c: Removed all the code that manipulated the password file directly. Now *all* smbpasswd file changes are done through the interfaces defined in smbpass.c This should make the life of people adding alternate backend databases *much* easier. lib/rpc/server/srv_netlog.c: Removed debug messages used to debug machine password changing. Jeremy.
* clientgen.c: Changes 'cli_xxx_' calls to use the followingJeremy Allison1998-04-171-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | regularized parameter syntax: setup, setup_count, max_setup_count, params, params_count, max_params_count, data, data_count, max_data_count, (and if a reply is needed) *reply_params, *reply_data_len *reply_data, *reply_data_len This allows the pointers and the lengths that relate to these pointers to be next to each other in the parameter list. This makes seeing what you are passing to these functions much easier to see. Getting ready for adding the lib/rpc/client functions needed to do security=domain. torture.c: Fixed it so it uses / rather than \\ internally for the //machine/share syntax. Jeremy.
* Changing of machine passwords now works !!!!!!Jeremy Allison1998-04-171-11/+22
| | | | | | | | smbdes.c: Added cred_hash3. smbpasswd.c: Fixes for adding a machine account (needs more work). lib/rpc/server/srv_netlog.c: Turn on the machine password changing code by default (calls cred_hash3). Jeremy.
* ipc.c: Fix for printer queue spinning with Win95.Jeremy Allison1998-04-151-43/+46
| | | | | | | | | nmbd.c: Fix for always overwriting log despite append setting. smb.h: Addition of last time password changed entry to account info. smbpass.c: Changes to support last time changed field in smbpasswd file. smbpasswd.c: Changes to support last time changed field in smbpasswd file. util.c: Fix for always overwriting log despite append setting. Jeremy.
* Modified interfaces to getting smb password entries fromJeremy Allison1998-04-141-4/+4
| | | | | | | | | | | | | | | | | | | | get_smbpwd_entry (now an internal function to smbpass.c) to a more UNIX-like : getsmbpwnam() - get entry by name. getsmbpwuid() - get entry by uid. Changed the type returned by the smbpasswd enumeration functions to be a void * so that people don't come to depend on it being a FILE *. These abstractions should make it much easier to replace the smbpasswd file with a better backend in future. Other files changed are to match the above changes. Jeremy.
* Changes to allow Samba to be compiled with -Wstrict-prototypesJeremy Allison1998-04-131-1/+1
| | | | | | with gcc. (Not a big change although it looks like it :-). Jeremy.
* some hacks to the torture codeAndrew Tridgell1998-04-121-1/+10
|
* Makefile, loadparm.c, server.c, smb.h, util.c: Patch fromJeremy Allison1998-04-091-1/+1
| | | | | | | stn@techfak.uni-kiel.de (Stefan Nehlsen) to get homes from the NIS+ map. smbpasswd.c: Tidy up of cli_state structure. Jeremy.
* Added check for getpwnam returning NULL.Jeremy Allison1998-04-071-3/+7
| | | | Jeremy.
* Added extra remote password changing error codes from lmerr.h on NT.Jeremy Allison1998-03-301-2/+5
| | | | Jeremy.
* client.c: Fixed problem where debug level on command line was overridden by ↵Jeremy Allison1998-03-261-34/+58
| | | | | | | | smb.conf. smbpasswd.c: Removed bugs I put in yesterday (thanks Luke :-) and added error message reporting for remote password changing. Jeremy.
* Added the ability to differentiate between workstation and serverJeremy Allison1998-03-261-10/+13
| | | | | accounts when adding machine account types. Jeremy.
* smbpass.c: Made unknown accounts ending in '$' server accounts, notJeremy Allison1998-03-261-5/+29
| | | | | | | workstation. smbpasswd.c: Added code to count down from last machine account to add correct uid when adding a machine account. Jeremy.
* Added writing of '[XXX]' account control bits into gcosJeremy Allison1998-03-241-6/+49
| | | | | field when adding a user via smbpasswd. Jeremy.
* Updated smbpasswd to allow root to add machine accounts, and allowJeremy Allison1998-03-241-50/+229
| | | | | | | root to disable users and set them to "NO PASSWORD". Not quite finished with machine account stuff yet, but everything compiles. Jeremy.
* clientgen.c ipc.c smbpasswd.c: Fixes for warnings (from Herb).Jeremy Allison1998-03-241-4/+35
| | | | | | | | | | | quotas.c: Linux quota fix. util.c: Ensure smb_read_error is zero in all calls that can set it. lib/rpc/include/rpc_misc.h lib/rpc/include/rpc_netlogon.h lib/rpc/parse/parse_misc.c lib/rpc/parse/parse_net.c lib/rpc/server/srv_netlog.c : Modify Luke's code to call SamOEMhash(). Jeremy.
* - added a check for broken RH5 include files. With the standard RH5Andrew Tridgell1998-03-221-1/+1
| | | | | | | | | | includes (ie. unpatched RH5) Samba gets file corruption because of the incorrect definition of the shmid_ds structure. Updating your RH5 installation of glibc-devel fixes this. - don't try to fcntl_lock() a read-only fd in shmem.c - allow level 0 debug messages to get through in smbstatus
* Adding the same changes to HEAD as were added to BRANCH_1_9_18.Jeremy Allison1998-03-191-132/+247
| | | | | | | | | | | | | 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.
* - added "Full View"/"Normal View" on the "view config" pageAndrew Tridgell1998-03-171-1/+1
| | | | | - added the ability to auto-refresh the status page. There is a problem with this (it can kill inetd!). Hopefully we can fix that.
* - added the ability to kill off individual connections from SWAT (fromAndrew Tridgell1998-03-151-0/+1
| | | | | | | | | the status page) - split the claim_connection() code into its own file - fixed the claim_connection() code to lock the file when manipulating it - always claim a null connection at startup - fixed a bug in the pidfile code
* another makeover of loadparm to support new stuff in swat andAndrew Tridgell1998-03-143-3/+3
| | | | | | | | | | | | | | | | | | 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-1/+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.
* fix core dumps on Solaris 2.5 systems found by Orn AsgeirssonHerb Lewis1998-03-111-6/+12
|
* nmbd_incomingdgrams.c: Fix for typo.Jeremy Allison1998-02-242-1/+9
| | | | | | | | | | nmbd_sendannounce.c: Remote announcement was announcing to the wrong name ! nmblookup.c: Fix for substitutions not seeing hostname. testparm.c: Fix for substitutions not seeing hostname. wsmbstatus.c: Fix for substitutions not seeing hostname. util.c: Change read_udp_socket to use sockaddr_in rather than dubiously messing around with an opaque data type (sockaddr). Jeremy.
* Fixed warnings with gcc (assignments inside if statements).Jeremy Allison1998-01-231-4/+4
| | | | Jeremy.
* changes to correctly use some HP printer inf filesHerb Lewis1998-01-231-39/+146
|
* This is *not* a big change (although it looks like one).Jeremy Allison1998-01-228-8/+8
| | | | | | | This is merely updating the Copyright statements from 1997 to 1998. It's a once a year thing :-). NO OTHER CHANGES WERE MADE. Jeremy.
* fix problems with using inf files from HP for DesignJet 750C (C3195A)Herb Lewis1998-01-211-1/+4
|
* Makefile: Added new codepage - 866.Jeremy Allison1998-01-161-5/+5
| | | | | | | | | 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 printout of file list to stderr so you know what files you need toHerb Lewis1998-01-031-0/+4
| | | | copy to your printer$ share
* fixes to make_printerdef.c to generate a correct printers.def fileHerb Lewis1998-01-011-28/+97
| | | | changes to ipc.c to use new printers.def file
* This is it ! The mega-merge of the JRA_NMBD_REWRITE branchJeremy Allison1997-12-131-20/+18
| | | | | | | | 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.
* added cli_rmdir and cli_mkdirAndrew Tridgell1997-11-241-5/+44
| | | | | | | added test in smbtorture for the server updating the directory modify time when a file is added to a directory cleanup in smbtorture so no garbage files are left on the server
* added a SMB_QUERY_FILE_ALL_INFO test into smbtortureAndrew Tridgell1997-11-231-1/+14
| | | | W95 doesn't seem to support this call.
* added some QPATHINFO and QFILEINFO tests into smbtorture.Andrew Tridgell1997-11-231-0/+59
| | | | | This tests for things like midnight access times, sticky create times and word reversed INFO_STANDARD returns
* test SMBsetatr as wellAndrew Tridgell1997-11-231-4/+21
|
* added a test for the NT SMBgetatr bug in smbtortureAndrew Tridgell1997-11-231-1/+43
| | | | | | | | added support for choosing the protocol level in smbtorture (-m option) use -1 for null date in cli_close() get the attributes right in cli_open()
* changed nmblookup to only set recursion_desired in queries if the -RAndrew Tridgell1997-11-191-3/+9
| | | | option is used.
* loadparm.c : Added "veto oplock files" parameter.Jeremy Allison1997-11-171-1/+1
| | | | | | | | make_printerdef.c: Fixed warning. quotas.c: Fixed irix root errors. server.c: Fixed oplock reference count bug. smb.h: Added IS_VETO_OPLOCK_PATH(). Jeremy.
* added code to test the cli_NetServerEnum() function in clientgen.cAndrew Tridgell1997-11-111-0/+38
|
* Rolled back tree state to 11:59pm 8th November 1997 EST toJeremy Allison1997-11-101-4/+2
| | | | | remove problems. Jeremy
* attempting to mark up 32 bit error codes, needed for NT domains.Luke Leighton1997-11-091-2/+4
| | | | | | | | | | | | 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*.
* a few more tests added, including one that tests whether the serverAndrew Tridgell1997-11-081-1/+157
| | | | | understand the full range of byte offsets in locking requests. Samba doesn't (due to the 31 bit limitation in fcntl locking)
* added two more sets of tests to the smbtorture test. The tests I addedAndrew Tridgell1997-11-081-52/+284
| | | | | | | | | | | | | | | | | are ones that I know Samba fails. They are: 1) correct support for retaining locks over a close (ie. the server must not use posix semantics) 2) support for lock timeouts 3) the server supports multiple locking contexts on the one SMB connection, distinguished by PID. 4) the server correctly fails overlapping locks made by the same PID (this goes against POSIX behaviour, which is why it is tricky to implement) 5) the server denies unlock requests by an incorrect client PID I've been discussing with Jeremy ways that we can re-implement the locking code to handle these correctly. This test code will be useful to see that we have got it right.
* no asm/signal.h for linux as this is not portableAndrew Tridgell1997-11-061-0/+4
| | | | | | add auto username from LOGNAME for smbtorture proto fix in ufc.c
* don't print the progress so often - it slows down the client too muchAndrew Tridgell1997-11-011-1/+3
|
* set O_CREAT on lock fileAndrew Tridgell1997-11-011-1/+2
|
* a simple SMB torture tester. This will allow us to evaluate lockingAndrew Tridgell1997-11-011-0/+316
| | | | techniques more accurately.