summaryrefslogtreecommitdiffstats
path: root/source/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* This commit does 3 main things:Andrew Tridgell1997-09-143-35/+10
| | | | | | | | | | | | | | | | | | | | | | | 1) put the encryption code in by default, with no #ifdef. It is still disabled by default so you need to add "encrypt passwords = yes" in smb.conf but at least all binaries will have it. 2) cleanup the kanji code so it compiles with no warnings 3) get rid of lots of uses of ugly non-portable C code. The main offender being things like "register" but also remove uses of the "const" keyword as there are compilers out there that don't support it and even those that do often complain about its usage. Users don't like warnings :-( There is still some work to do. We need to replace the md4 code with our own implementation. The current code (from rfc1186) is PD but is not very portable. The new RFC (rfc1320) is more portable but adds copyright restrictions. I'll do a from-scratch MD4 soon. We also need to test that what I've implemented is portable. It should be, but I'm too tired right now to test it on anything other than intel linux.
* Added fix that means if connecting user sends guest accountJeremy Allison1997-09-121-1/+8
| | | | | | | with no password they are seen as guest. Previous patch broke this. Jeremy (jallison@whistle.com)
* charcnv.c client.c clitar.c kanji.c kanji.h loadparm.cJeremy Allison1997-09-112-96/+117
| | | | | | | | | | | | | | mangle.c smb.h util.c: Big merge to allow KANJI support to be in the main binary without explicitly compiling with it. locking.c: Fix for smbstatus not being able to read files. namepacket.c: Removed unneccesary debug statement. trans2.c: Added Luke's proposed fix (ifdefed out until further testing). nmblookup.c: Fixed bug where query fails and status is done on bogus IP. Jeremy (jallison@whistle.com)
* client.c: Made sure myhostname was initialised before substitutions.Jeremy Allison1997-09-052-4/+6
| | | | | | | status.c: Made sure myhostname was initialised before substitutions. server.c trans2.c: Moved OS/2 WPS fix. Jeremy (jallison@whistle.com)
* Fix from Frank Varnavas <varnavas@ny.ubs.com>.Jeremy Allison1997-09-041-3/+17
| | | | | | | | | We cannot use the same name as the client to the NT password server, as NT will drop client connections if the same client name connects twice. Instead, synthesize a name from our pid. and the remote machine name. Jeremy (jallison@whistle.com)
* Fixed up determination of client type for PROTOCOL_NT1. Uses clientJeremy Allison1997-09-042-12/+26
| | | | | | capabilities bits in session_setup_and_X to decide. Made remote_arch an enum as well as a string, for easier use. Jeremy (jallison@whistle.com)
* nameannounce.cJeremy Allison1997-09-031-2/+14
| | | | | | | | | | | | | | | | nameresp.c nameserv.c nameservreply.c proto.h : Removed broadcast and recurse parameters in the queue_netbios_pkt_wins() call - they are not needed as they should always be 'false' and 'true' respectively. Also fixed a bug with secure name registration (WINS server code). server.c: Finally fixed problem with error 267 being returned to Win95. It is needed by NT. This is a horrid fix and I would appreciate a better one :-). Jeremy (jallison@whistle.com)
* reply.c: Removed unused variables. Caught by gcc -Wall -WerrorJeremy Allison1997-09-022-7/+29
| | | | | | server.c: Fix for old DOS clients not understanding ERRbaddirectory - map to ERRbadpath. util.c: Fix for systems with no LOG_DAEMON facility. Jeremy (jallison@whistle.com)
* added word count 3 support into reply_tcon_and_X (see cifs6.txt). theLuke Leighton1997-08-311-3/+23
| | | | | only thing i couldn't do was get the chaining word count to point to the end of the smb reply, for the next and_X (not that there is one).
* fixed a bug in the printjob encoding/decoding. We weren't doing it forAndrew Tridgell1997-08-312-15/+12
| | | | | | | | | | | | | | the print_ functions in reply.c, with the effect that you couldn't cancel print jobs from smbclient or from older dos clients. we now use a couple of utility functions printjob_encode() and printjob_decode() rather than sticking the bitops inline in each place. also fixed a bunch of places that used foo%0xFF rather than foo&0xFF Note that this isn't really me doing the commit, it can't be as I'm working on my thesis ...
* Oops. Reversed mangled map change made in error. TestingJeremy Allison1997-08-281-2/+3
| | | | found this one. Jeremy (jallison@whistle.com)
* mangle.c: Fixed bug that caused string to run off the end of the mangled map.Jeremy Allison1997-08-283-8/+5
| | | | | | | | server.c: Changed comparison from dname to name2 - seems correct - don't know why I changed it originally. hmmmmm. trans2.c: Made lanman2 code more similar to scan_directory(). I should make the trans2 code call scan_dir as they are so similar. Jeremy(jallison@whistle.com).
* doing that irritating compiler clash warning with the protos for standard_subSamba Release Account1997-08-271-3/+3
| | | | | | and standard_sub_basic. again. lkcl
* smb.h: Added error code used for OS2 WPS.Samba Release Account1997-08-261-11/+5
| | | | | | trans2.c: Added OS2 WPS fix - but ifdefed out for now. Will turn on after 1.9.17 release. Jeremy (jallison@whistle.com)
* Changes to allow Samba to return the same error code as Windows NT.Samba Release Account1997-08-204-60/+285
| | | | | | | | | | | Takes care of the cases where a Windows program is parsing a pathname component by component and expects 2 different errors. ERRbadpath - if a component in the path doesn't exist. ERRbaddirectory - if a component in the path exists but is not a directory. Extra error code added to smb.h to support this. Code based on suggestions from "Christian Groessler" <chris@fast-ag.de>. Jeremy (jallison@whistle.com)
* Fix suggested by "Christian Groessler" <chris@fast-ag.de>Samba Release Account1997-08-204-4/+13
| | | | | | | | dir.c: Cause dptr_create to return -2 when failing on unix error. reply.c: Use UNIXERROR in more cases. server.c: Add ENOTDIR mapping to error table. trans2.c: Correctly determine UNIX error on dptr_create. Jeremy (jallison@whistle.com)
* Makefile: Changed for HPUX10 tidyup.Samba Release Account1997-08-195-32/+88
| | | | | | | | | | | | | | | | | | includes.h: Changed for HPUX10 tidyup. ipc.c: Fixed bug where getting local server list from NT browsers would fail. nmbsync.c: Fixed bug where getting local server list from NT browsers would fail. proto.h: Changed for crash bug on SCO with USE_MMAP. quotas.c: Added OSF quotas (patch from Bret Giddings <bret@essex.ac.uk>). Rolled back solaris uid change - I think it was wrong. reply.c: Changed for crash bug on SCO with USE_MMAP. server.c: Removed Lukes changes. Changed for crash bug on SCO with USE_MMAP. smb.h: Changed for crash bug on SCO with USE_MMAP. smbpasswd.c:Fixed crash bug with Lukes changes. uid.c: Removed Lukes changes. util.c: Fixed I18N bug with extended char filenames and widelinks = no. Jeremy (jallison@whistle.com)
* connecting to IPC$ goes under the guest account. the IPC$ share shouldSamba Release Account1997-08-172-24/+19
| | | | | | | | | | | | be treated no differently than any other share (for any security setting: user, server or share). this will clear up a bug where, when clients connect to the IPC$ share, this used to be done under the guest account. the standard_sub_basic() macros will substitute the _guest_ account for %U, causing the samba server to look different from when the client then connects to any other share. lkcl
* includes.h: Fixed S_IFLNK for old DEC ultrix.Samba Release Account1997-08-131-2/+8
| | | | | | ipc.c: Finally :-) fixed responses to NetServerEnum2 when SV_TYPE_ALL given. Jeremy (jallison@whistle.com)
* spelling.Samba Release Account1997-08-111-1/+1
| | | | lkcl
* Makefile: Added IRIX 6 target.Samba Release Account1997-08-051-3/+3
| | | | | | | loadparm.c: Fixed stupid static warnings with set_default_server_announce_type. password.c: Fixed char -> uchar cast warnings. nameservreply.c: Fixed group fade out code. Jeremy (jallison@whistle.com)
* client.c: Minor change to cast parameters for DEC unix.Samba Release Account1997-07-301-5/+5
| | | | | | | | | | | | | clientutil.c: Minor change to cast parameters for DEC unix. ipc.c: Fixes to parameterise the stuff John wants. loadparm.c: Fixes to parameterise the stuff John wants. nameannounce.c: Fixes to parameterise the stuff John wants. namedbwork.c: Fixes to parameterise the stuff John wants. nameserv.h: Fixes to parameterise the stuff John wants. proto.h: Fixes to parameterise the stuff John wants. smb.h: Fixes to parameterise the stuff John wants. util.c: tidy. Jeremy (jallison@whistle.com)
* client.c: Added amanda fixes.Samba Release Account1997-07-281-7/+9
| | | | | | | | | | | clitar.c: Added amanda fixes. nameannounce.c: Removed redundent code. nameelect.c: Removed redundent code. nameserv.h: Removed redundent code. nameservresp.c: Removed redundent code. namework.c: Removed redundent code. password.c: Prevented crash if getpwnam fails. Jeremy (jallison@whistle.com)
* loadparm.c: Changed default create mask to 755 to support MAP_ARCHIVE.Samba Release Account1997-07-241-1/+1
| | | | | server.c: Added check for MAP_ARCHIVE before we set archive bit. Jeremy (jallison@whistle.com)
* Makefile: Added UNIXWARE 2.x with shadow passwords from fja@extratech.comSamba Release Account1997-07-245-50/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | client.c: Made prompt appear at debug level 0. Fixed strcasecmp redefinition. Caused client to use set_blocking rather than making fcntl calls itself. dir.c: Removed redundent snum parameters. includes.h: Added SCO fixes. loadparm.c: Made default 'files to hide' a null string. nmbd.c: Removed O_NONBLOCK from pid file open for platforms that dont have it. proto.h: Changed snum to cnum where needed. Changed is_xx_path to is_in_path (now called via MACRO). quotas.c: Swapped setuid/seteuid calls when restoring uid. reply.c: Removed redundent snum parameters. server.c: Changed snum to cnum where needed. Setup new veto_list, hide_list namelists. Added standard_sub changes from Stefaan A Eeckels <Stefaan.Eeckels@ecc.lu> and Paul Rippin <pr3245@nopc.eurostat.cec.be> shmem.c: Changed cast for sizeof to be int before negating. smb.h: Added new veto_list, hide_list entries to connections. Added IS_PRINT, IS_HIDDEN_PATH, IS_VETO_PATH macros. trans2.c: Removed redundent snum parameters. util.c: Added standard_sub_basic changes from Stefaan A Eeckels <Stefaan.Eeckels@ecc.lu> and Paul Rippin <pr3245@nopc.eurostat.cec.be> Fixed up veto/hidden path processing so the paths are pres-parsed and checked for wildcards (for speed). Jeremy (jallison@whistle.com)
* charset.c: Fixed signed/unsigned issues.Samba Release Account1997-07-221-0/+14
| | | | | password.c: Fixed problem with MS-Exchange services. Jeremy (jallison@whistle.com)
* Removed lp_killunused() call from server main loop. ThisSamba Release Account1997-07-221-3/+0
| | | | | | | | WAS A MAJOR BUG THAT CAN CAUSE IPC$ to be removed !!!!! Not sure how this one got introduced (but I have my suspicions :-). lp_killunused() MUST ONLY BE CALLED from reload_services(). Jeremy (jallison@whistle.com)
* charset.c: Split charset_initialise() into 2 - a charset_initialise() andSamba Release Account1997-07-183-11/+31
| | | | | | | | | | | | | | | | | | | | a codepage_initialise(). Fixes problem with initialising dos map twice. charset.h: Changes to support charset changes. client.c: Changes to support charset changes. loadparm.c: follow symlinks parameter from David Clerc <David.Clerc@cui.unige.ch> nmbd.c: Changes to support charset changes. nmblookup.c:Changes to support charset changes. proto.h: Changes to support charset changes. reply.c: Don't call security=server with no user/no password guest. Fix from Stefaan A Eeckels <Stefaan.Eeckels@ecc.lu> server.c: follow symlinks code from David Clerc <David.Clerc@cui.unige.ch> smbpasswd.c:Changes to support charset changes. status.c: Changes to support charset changes. testparm.c: Changes to support charset changes. testprns.c: Changes to support charset changes. uid.c: Fixed log message with no \n. Jeremy (jallison@whistle.com)
* Makefile: Added krb5 option from Nathan Neulinger <nneul@umr.edu>Samba Release Account1997-07-174-11/+89
| | | | | | | | | | includes.h: Added krb5 option from Nathan Neulinger <nneul@umr.edu>, added SGI5 fix. password.c: Added krb5 option from Nathan Neulinger <nneul@umr.edu> quotas.c: Added inode quote fix. reply.c: removed redundent code. server.c: Changed error debug to 0, removed redundent check. util.c: Added close_low_fd() to become_daemon - fix for rsh from Johnathan Knight. Jeremy (jallison@whistle.com)
* local.h: Removed ununsed SHARE_MODES_XXX defines. Upped SMBD_RELOAD_CHECKSamba Release Account1997-07-142-37/+17
| | | | | | | | | from 10 to 60. server.c: Removed unused code (was If 0'ed out). trans2.c: Backed out Luke's ctime->mtime change. I don't think it is correct. Left the other fixes, though. util.c: Changed veto/hide files separator back to '/'. Jeremy (jallison@whistle.com)
* counter loop % usage only worked if counters were an exact multiple ofSamba Release Account1997-07-131-3/+28
| | | | | | SMBD_LOOP time. used >= instead. lkcl
* trans2 query file/path info - unix change times being reported as dos createSamba Release Account1997-07-121-43/+86
| | | | | | | | | | | | | times. now reports unix modified times as dos create times: the alternative is to report zero (unknown create time). w95 reports the info level 0x101 (smb query file basic) as data size 40 bytes not 36. put 40 bytes data instead. put in comments into trans2 set file/path info, showing which is the create time, which is the mod time. lkcl
* interface.c: Fix for AIX4.x finding interfaces.Samba Release Account1997-07-111-3/+3
| | | | | server.c: Subtle fix for filenames containing ':'. Jeremy (jallison@whistle.com)
* JHT ==> Added copyright notations for my works. This is regretably needed!John Terpstra1997-07-091-1/+3
|
* Makefile: Added AIX targets from Ole Holm Nielsen <Ole.H.Nielsen@uni-c.dk>Samba Release Account1997-07-083-19/+53
| | | | | | | | | | | | | | | | | | | chgpasswd.c: Added Samba/GPL notice (for obvious reasons). clitar.c: Updated Copyright date to include 1997 (for obvious reasons). getsmbpass.c: Updated Copyright date to include 1997 (for obvious reasons). includes.h: Added stropts for solaris. loadparm.c: Changed comment for hide files option. nameconf.c: Updated Copyright date to include 1997 (for obvious reasons). nmbd.c: Updated Copyright date to include 1997 (for obvious reasons). pcap.c: Updated Copyright date to include 1997 (for obvious reasons). proto.h: Re-added accidentaly deleted smb_shm_ calls. quotas.c: Added AIX quota patch from Ole Holm Nielsen <ohnielse@fysik.dtu.dk> server.c: Optimization on calling is_hidden_path. Updated Copyrights. smb.h: Changed DEFAULT_FILES_TO_HIDE from "*/.*" to ".*". smbpass.c: Updated Copyright date to include 1997 (for obvious reasons). ufc.c: Updated Copyright date to include 1997 (for obvious reasons). util.c: Added last component code to is_in_path(). Jeremy (jallison@whistle.com)
* missed one OpenDir() and two is_vetoed_name() calls, both of which takeSamba Release Account1997-07-061-3/+3
| | | | | | a service number as a parameter, in the rmdir code, when doing a recompile. lkcl
* added, tested and debugged new "hide files" option.Samba Release Account1997-07-065-24/+43
| | | | lkcl
* Fix for deleting directories that contain only veto files.Samba Release Account1997-07-034-10/+76
| | | | | Needed for interoperability with netatalk volumes. Jeremy (jallison@whistle.com)
* Fixes for UnixWare 2.x with shadow passwords fromSamba Release Account1997-07-031-0/+9
| | | | Warren Young <tkennedy@cyberport.com>.
* Fixed compile warnings for FreeBsd & Linux.Samba Release Account1997-07-021-10/+13
| | | | Jeremy (jallison@whistle.com).
* Rolled back Lukes changes. Not quite ready for prime time.Samba Release Account1997-07-012-18/+13
| | | | Jeremy (jallison@whistle.com)
* made "hide files" and "veto files" into per-service parameter sections,Samba Release Account1997-07-012-14/+14
| | | | | | | | instead of just [global]. this makes it easier to decide whether to remove the "hide dot files" per-service parameter, and supercede it with a default "hide files" value of ".*". lkcl
* added "hide files" option.Samba Release Account1997-07-011-0/+5
| | | | lkcl
* client.c: New print queue query code from Jeff C. Foster " ↵Samba Release Account1997-07-012-23/+77
| | | | | | | | | | | | | | | | | | | <jfoste@wgc.woodward.com> ipc.c: Added code for returning restricted lists of servers. loadparm.c: Changed default for force create mode to 000. Changed default maxmux to 50 to comply with NT. locking.c: Fixed silly crash bug with slow share mode code. nameannounce.c: Added code for returning restricted lists of servers. namedbserver.c: Added code for returning restricted lists of servers. nameelect.c: Added code for returning restricted lists of servers. namework.c: Added code for returning restricted lists of servers. nmbsync.c: Added code for returning restricted lists of servers. server.c: Added quota fix Albrecht Gebhardt <albrecht.gebhardt@uni-klu.ac.at> smb.h: Added define for COPYBUF_SIZE. system.c: Rename across filesystems Patch from Warren Birnbaum <warrenb@hpcvscdp.cv.hp.com> util.c: Minor fix for warning.
* shmem.c: Changed debug to higher levelSamba Release Account1997-06-271-3/+11
| | | | | | uid.c: Stop smbrun from deleting device files. util.c: Added EAGAIN to known error list. Jeremy (jallison@whistle.com)
* loadparm.c: Added "force create mode" and "force directory mode" params.Samba Release Account1997-06-191-1/+11
| | | | | | | | proto.h: Added lp_force_create_mode() and lp_force_dir_mode(). server.c: Fixed application of mode bits to be regular across files and directories. smb.h: Removed unused CREATE_MODE macro. Jeremy (jallison@whistle.com)
* Fixed *really* stupid bug in register_vuid - only a problemSamba Release Account1997-06-181-1/+1
| | | | | on multi-user NT systems. Jeremy (jallison@whistle.com)
* charset.c: Dropped debug message to level 6.Samba Release Account1997-06-161-1/+3
| | | | | | | | loadparm.c: Added "time server" parameter. nameserv.h: Added "time server" parameter. proto.h: Added lp_time_server(). server.c: Removed incorrect | 0700 - this was a whistle specific change. Jeremy (jallison@whistle.com).
* Makefile: Added quoata changes for Linux from Thorvald NatvigSamba Release Account1997-06-114-56/+54
| | | | | | | | | | | | | | | | | | | | | Makefile.RPM: Added quoata changes for Linux from Thorvald Natvig charset.c: Large changes to add multiple client code pages. charset.h: Changed charset_initialise() proto. client.c: Fixed message sending bug. Changed charset_initialise(). ipc.c: Fixed #ifdef compile problems. loadparm.c: Added "client code page" option. nmbd.c: Changed charset_initialise(). Fixed lmhosts read. nmblookup.c: Changed charset_initialise(). proto.h: Added lp_client_code_page(void). quotas.c: Added quoata changes for Linux from Thorvald Natvig reply.c: Changed debug level. Made SMBecho ignore tid. server.c: Changed charset_initialise(). smb.h: Added DEFAULT_CLIENT_CODE_PAGE as 850. smbpasswd.c: Changed charset_initialise(). status.c: Changed charset_initialise(). testparm.c: Changed charset_initialise(). testprns.c: Changed charset_initialise(). Jeremy Allison (jallison@whistle.com)
* loadparm.c: Made explicit max packet now ignored.Samba Release Account1997-06-061-1/+7
| | | | | | | | | namedbwork.c: Don't announce potential browser if local master = False. nameelect.c: Raise debug level of comment to 2. proto.h: Added reset_globals_after_fork(). server.c: Call reset_globals_after_fork() after forking child. util.c: Added reset_globals_after_fork() - should stop problems with % substitutions in children.