summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Added 'delete veto files' paremeter. Ugly - but the onlyJeremy Allison1997-09-171-3/+1
| | | | | | | | | way to allow Samba client users to delete directories containing Mac metafile information (.AppleDouble directories). Needed for clean integration with netatalk. Jeremy (jallison@whistle.com)
* - change generate_challenge() to use md4 instead of desAndrew Tridgell1997-09-161-4/+2
| | | | | | | | | | | | | | | | | | | | | | | - move routines about a bit between smbencrypt.c and smbdes.c. Ensure that there is no entry point for normal DES operation - add the following comment: This code is NOT a complete DES implementation. It implements only the minimum necessary for SMB authentication, as used by all SMB products (including every copy of Microsoft Windows95 ever sold) In particular, it can only do a unchained forward DES pass. This means it is not possible to use this code for encryption/decryption of data, instead it is only useful as a "hash" algorithm. There is no entry point into this code that allows normal DES operation. I believe this means that this code does not come under ITAR regulations but this is NOT a legal opinion. If you are concerned about the applicability of ITAR regulations to this code then you should confirm it for yourself (and maybe let me know if you come up with a different answer to the one above)
* rewrote md4.c from scratch. This implementation should be portable andAndrew Tridgell1997-09-151-0/+1
| | | | doesn't have any worries about RSA copyright.
* This commit does 3 main things:Andrew Tridgell1997-09-143-21/+22
| | | | | | | | | | | | | | | | | | | | | | | 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.
* charcnv.c client.c clitar.c kanji.c kanji.h loadparm.cJeremy Allison1997-09-112-12/+5
| | | | | | | | | | | | | | 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)
* prototype updates for new functionsAndrew Tridgell1997-09-111-1/+21
|
* JHT ===> Just setting version to 1.9.18alpha1John Terpstra1997-09-051-1/+1
|
* Fixed up determination of client type for PROTOCOL_NT1. Uses clientJeremy Allison1997-09-042-0/+4
| | | | | | 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-1/+0
| | | | | | | | | | | | | | | | 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)
* use of recursion_available and recursion_desired flag in netbios responses.Luke Leighton1997-09-011-1/+5
|
* Makefile: New program and support for dynamic codepage loading.Jeremy Allison1997-08-302-4/+26
| | | | | | | charset.c: Dynamic codepage loading code. charset.h: Defines for file format. proto.h: Updated. Jeremy (jallison@whistle.com)
* includes.h: Make sure REPLACE_GETPASS are wrapped with #ifdefs.Jeremy Allison1997-08-281-0/+4
| | | | | | | nmbsync.c: Make sure REPLACE_GETPASS is defined before including includes.h clientutil.c: Catch null passwords. Fixes for a nmbd crash bug found by Herb Lewis @ SGI. Jermey(jallison@whistle.com)
* charset.c: Added patch for client code page 852 (Eastern European) fromSamba Release Account1997-08-271-1/+0
| | | | | | | Leos Bitto <bitto@altec.cz>. clitar.c: proto.h: Fixed proto mismatch for strslashcmp(). Jermey (jallison@netcom.com)
* Put back the smb_shm_ proto's that Luke keeps breaking !Samba Release Account1997-08-271-0/+3
| | | | Jeremy (jallison@whistle.com)
* doing that irritating compiler clash warning with the protos for standard_subSamba Release Account1997-08-271-7/+8
| | | | | | and standard_sub_basic. again. lkcl
* preparing for release of 1.9.17Samba Release Account1997-08-261-1/+1
|
* smb.h: Added error code used for OS2 WPS.Samba Release Account1997-08-261-1/+2
| | | | | | trans2.c: Added OS2 WPS fix - but ifdefed out for now. Will turn on after 1.9.17 release. Jeremy (jallison@whistle.com)
* charset.c : Add mapping for code page 932 (KANJI).Samba Release Account1997-08-251-0/+5
| | | | | | | | | | | | client.c : Fix crash bug. Add code to use BUFFER_SIZE for NetServerEnum calls. namepacket.c: Fixed cast. nmbsync.c : Add code to use BUFFER_SIZE for NetServerEnum calls. smb.h : Set default client code page to 932 for KANJI. system.c : Remove vendor specific code that crept in :-). util.c : Added #define to allow Samba to behave as Win95 when doing KANJI case insensitivity tests. Jeremy (jallison@whistle.com)
* Kanji fixes for upper/lower case conversion with sjis characters.Samba Release Account1997-08-212-0/+18
| | | | | Code from Takashi Fujita <fujita@ainix.isac.co.jp>. Jeremy (jallison@whistle.com)
* Changes to allow Samba to return the same error code as Windows NT.Samba Release Account1997-08-202-2/+6
| | | | | | | | | | | 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)
* Makefile: Changed for HPUX10 tidyup.Samba Release Account1997-08-193-5/+7
| | | | | | | | | | | | | | | | | | 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)
* JHT ===> Just making sure any new tests do not announce as the last alpha!John Terpstra1997-08-181-1/+1
|
* includes.h: Fixed S_IFLNK for old DEC ultrix.Samba Release Account1997-08-131-0/+4
| | | | | | ipc.c: Finally :-) fixed responses to NetServerEnum2 when SV_TYPE_ALL given. Jeremy (jallison@whistle.com)
* loadparm.c: Added new netbios aliases parameter (code from Cisco)Samba Release Account1997-07-311-2/+4
| | | | | | | | | | | | | nameannounce.c: Code to announce aliases as well as our own names. namedbsubnet.c: Code to add the aliases to the server list. nameserv.c: Code to defend our aliases on the namelist. namework.c: Code to check it's one of our aliases. nmbd.c: Code to initialise the aliases. proto.h: Fixup protos. util.c: Code to check it's one of our aliases. All above code based on code for 1.9.16p11 donated by Cisco from Ben Woodard <bwoodard@luthien.cisco.com> Jeremy (jallison@whistle.com)
* client.c: Minor change to cast parameters for DEC unix.Samba Release Account1997-07-303-7/+9
| | | | | | | | | | | | | 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-1/+0
| | | | | | | | | | | 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)
* Re-added shm stuff - keeps getting lost.Samba Release Account1997-07-241-1/+3
| | | | Jeremy (jallison@whistle.com)
* nameserv.c: split add_domain_names() into three functions:Samba Release Account1997-07-241-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add_domain_logon_names() - adds <1c> names on WINS and broadcast. add_domain_master_wins() - adds <1b> name only with WINS server add_domain_master_bcast() - adds <1b> names only by bcast. : made add_domain_names() add <1c> names, unconditionally, and add <1b> name with the WINS server if using a WINS server, or add <1b> name by broadcast if _not_ using a WINS server, but _not_ both. : removed the direct parameter from remove_name_entry() and add_my_name_entry(). nameelect.c: made become_domain_master(), on successful registration of the <1b> name with the WINS server, go ahead and register the <1b> names by broadcast. if the <1b> name is _not_ successfully registered with the WINS server, the broadcast registration of <1b> names will _not_ proceed. namedbsubnet.c: sorted out calls to add_my_name_entry() and remove_my_name() which no longer has a direct parameter. this is all added because... in order to fix a compatibility bug with 1.9.16p2->p11, jeremy had added a feature that got the <1b> broadcast registered names _directly_ into the nmbd netbios lists, undefended. the aim was to get round the aggressive netbios registration of <1b> names of 1.9.16p2->p11. however, because 1.9.16p2->p11 don't properly _provide_ netlogon services, it is better that an error message appears in 1.9.17 logs, and that administrators are made aware of the problems with 1.9.16p2->p11, and replace 1.9.16p2->p11 servers, rather than attempt to run 1.9.16 alonside 1.9.17. (these warning messages will need to be added...) in _addition_, they shouldn't _be_ getting two samba servers to provide domain logon / domain master services for the same workgroup in the same WINS scope! lkcl
* removed definition of strslashcmp - now a static in clitar.c.Samba Release Account1997-07-241-1/+0
| | | | Jeremy (jallison@whistle.com)
* Makefile: Added UNIXWARE 2.x with shadow passwords from fja@extratech.comSamba Release Account1997-07-243-24/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* JHT ===> Getting ready for release of 1.9.17alpha5John Terpstra1997-07-231-1/+1
| | | | Please note that version.h has been updated!!!!!!!!!!
* charset.c: Split charset_initialise() into 2 - a charset_initialise() andSamba Release Account1997-07-182-2/+4
| | | | | | | | | | | | | | | | | | | | 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-171-0/+6
| | | | | | | | | | 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-141-3/+1
| | | | | | | | | 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)
* CIFS definitions for SMB_INFO_xxx etc.Samba Release Account1997-07-141-0/+5
| | | | lkcl
* JHT ==> Added copyright notations for my works. This is regretably needed!John Terpstra1997-07-091-0/+1
|
* Makefile: Added AIX targets from Ole Holm Nielsen <Ole.H.Nielsen@uni-c.dk>Samba Release Account1997-07-083-2/+5
| | | | | | | | | | | | | | | | | | | 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)
* added, tested and debugged new "hide files" option.Samba Release Account1997-07-062-7/+12
| | | | lkcl
* replaced the "wins proxy" to treat NetBIOS names as DNS names with newSamba Release Account1997-07-061-10/+12
| | | | | | | | | | | | "dns proxy" option. the "wins proxy" option should be used for broadcast only hosts, and isn't properly implemented anyway. the new "dns proxy" option can be disabled if the (blocking) dns resolution takes up a significant amount of time. this _will_ occur if gethostbyname does external DNS lookups, instead of just (immediately) returning entries in /etc/hosts. lkcl
* preparing for release of 1.9.17alpha4Samba Release Account1997-07-031-1/+1
|
* Makefile: Added DGUX changes for intel.Samba Release Account1997-07-031-1/+1
| | | | | | | namedbwork.c: Minor tidyup for election flah. util.c: Fix for broken readdir detectino code. version.h: Back to 1.9.17alpha3 - will be updated by release script. Jeremy jallison@whistle.com
* preparing for release of 1.9.17alpha4Samba Release Account1997-07-031-1/+1
|
* Fix for deleting directories that contain only veto files.Samba Release Account1997-07-031-1/+1
| | | | | Needed for interoperability with netatalk volumes. Jeremy (jallison@whistle.com)
* Fixes for UnixWare 2.x with shadow passwords fromSamba Release Account1997-07-031-0/+6
| | | | Warren Young <tkennedy@cyberport.com>.
* Rolled back Lukes changes. Not quite ready for prime time.Samba Release Account1997-07-012-27/+17
| | | | Jeremy (jallison@whistle.com)
* made "hide files" and "veto files" into per-service parameter sections,Samba Release Account1997-07-011-9/+9
| | | | | | | | 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-012-11/+21
| | | | lkcl
* client.c: New print queue query code from Jeff C. Foster " ↵Samba Release Account1997-07-011-0/+3
| | | | | | | | | | | | | | | | | | | <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.
* loadparm.c: Added "force create mode" and "force directory mode" params.Samba Release Account1997-06-192-1/+2
| | | | | | | | 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)
* charset.c: Dropped debug message to level 6.Samba Release Account1997-06-162-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).