summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
* namedbname.c: Added 'S' or 'R' flags to wins.dat to aid debugging. Forced ↵Samba Release Account1997-05-302-9/+23
| | | | | | | | | all type 1e names to be added as 255.255.255.255. namedbsubnet.c: Fixed bug I intruduced - register 1e name on WINS subnet also. (thanks to Luke for pointing this one out). Jeremy (jallison@whistle.com)
* charcnv.c: Fixed silly bugs detected on IRIX.Samba Release Account1997-05-3016-153/+305
| | | | | | | | | | | | | | | | | | | | | | | | client.c: Fixed silly bugs detected on IRIX. namedbname.c: Stopped 1d names from being registered in WINS db. namedbsubnet.c: Only register 1e names on broadcast subnet. nameelect.c: Changed add_my_name entries. Forced host announces if we have less than 10 servers listed. Fixed registering 1b domain name issues. namepacket.c: Added error message when dgram discarded. nameserv.c: Added notion of 'direct' names that are not registered on the network. Needed to get around bugs in earlier nmbd handling of DOMAIN(1b) names. nameservreply.c:Tidied up debug message. nameservresp.c: Added response_name_query_domain() code. Deals with re-registering DOMAIN(1b) name. nmbd.c: Fixed silly bugs detected on IRIX. nmblib.c: Added paranoia debugs. proto.h: Updated remove_name_entry(), add_my_name_entry(). server.c: Fixed silly bugs detected on IRIX. trans2.c: Fixed silly bugs detected on IRIX. uid.c: Fixed silly bugs detected on IRIX. version.h: Updated to alpha3. Jeremy (jallison@whistle.com).
* loadparm.c: Ensure printer services cannot be read only and don't use share ↵Samba Release Account1997-05-277-35/+55
| | | | | | | | | | | | | mode locking. locking.c: Changed aborts to returns so not so drastic on PANIC errors. proto.h: Removed definition of open_file as this is now never externally called. reply.c: Changed reply_mknew, reply_ctemp, reply_printopen to go through open_file_shared. server.c: Modified open_file_shared to be more robust and be useful for printer & temp files. Removed truncate option from open_file (now all truncates are done in open_file_shared). util.c: Added EAGAIN to errors checked in open_socket_out(). version.h: Updated to 1.9.17alpha2. jallison@whistle.com
* coding standards issue: should never compare a boolean expression == FalseSamba Release Account1997-05-221-45/+53
| | | | | | | | or == True. should always do if (boolean_expression). sorry. lkcl
* Removed use of 'domain controller' parameter for browsing systemSamba Release Account1997-05-221-0/+4
| | | | as Luke recommends. jallison@whistle.com
* Makefile: Turned on FAST_SHARE_MODES by default for a bunch of machines.Samba Release Account1997-05-211-1/+1
| | | | | | nameelect.c: Fixed bug where we were always using our workgroup name instead of the current one. jallison@whistle.com
* Added code to make nmbd always lose elections if 'local master'Samba Release Account1997-05-211-1/+9
| | | | | parameter is set to False. jallison@whistle.com
* Added fix from Paul Nelson @ Thursby - smb_mid field could beSamba Release Account1997-05-211-0/+18
| | | | | corrupted if security = server. jallison@whistle.com
* dir.c: Fixed double slash issue.Samba Release Account1997-05-2026-916/+1925
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | includes.h: Changed to ifdef FAST_SHARE_MODES. ipc.c: Changed lp_workgroup() to myworkgroup. loadparm.c: Added new shared mem parameters. Added Luke's fix. locking.c: Rewrite to do share modes better (both fast and slow modes). nameannounce.c: Changed lp_workgroup() to myworkgroup. Added Luke's fix. nameconf.c: Changed lp_workgroup() to myworkgroup. namedbname.c: Improved debug. namedbserver.c: Changed lp_workgroup() to myworkgroup. namedbsubnet.c: Added Luke's fix - rewritten somewhat. namedbwork.c: Changed lp_workgroup() to myworkgroup. nameelect.c: Added Luke's fix - rewritten somewhat. nameresp.c: Stoped shadowing global. nameserv.c: Added Luke's fix - Improved debug. nameservreply.c: Improved debug. namework.c: Changed lp_workgroup() to myworkgroup. nmbd.c: Added Luke's fix - Changed lp_workgroup() to myworkgroup. pipes.c: Changed lp_workgroup() to myworkgroup. proto.h: Added Luke's fix, added smb_shm_ proto's. reply.c: Changed lp_workgroup() to myworkgroup. server.c: Rewrite to do share modes better (both fast and slow modes). shmem.c: Rewrite to do share modes better (both fast and slow modes). smb.h: Rewrite to do share modes better (both fast and slow modes). status.c: Rewrite to do share modes better (both fast and slow modes). trans2.c: Fixed double slash issue. util.c: Tidied up, created myworkgroup. Jeremy Allison (jallison@whistle.com).
* namedbname.c: Fixed *nasty* bug that caused nmbd to spin and eat memorySamba Release Account1997-05-153-26/+33
| | | | | | | | | and CPU whilst trying to become a master browser. Don't ask, you don't want to know :-). nameresp.c: Tidied formating of code. nameservresp.c: Added debug value of IP address that is rejecting our registration. jallison@whistle.com
* use NULL instead of 0Samba Release Account1997-05-121-2/+2
| | | | lkcl
* Updated Samba minor version so it announces itself as NT Server versionJohn Terpstra1997-05-111-4/+7
| | | | 4.20. This indicates that the browsing code has been updated (changed).
* status.c: Added brief option. Patch from ccctim@mailbox.ucdavis.eduSamba Release Account1997-05-083-21/+102
| | | | | client.c: Added translation of '/' characters to '\' characters. Suggested by friedl@mtndew.com (Stephen J. Friedl) charcn.c: Fix for iso8859-2 (Eastern European) conversions based on a patch from Miroslaw M. Maczka <elvisbze@polbox.com>
* 'The mother of all checkins' :-). Jeremy Allison (jallison@whistle.com)Samba Release Account1997-05-0864-363/+392
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed May 7 1997: Update for 1.9.17alpha1 release - 'browsefix release' designed to make browsing across subnets work. byteorder.h: Updated copyright to 1997. charcnv.c: Updated copyright to 1997. charset.c Updated copyright to 1997. charset.h Updated copyright to 1997. client.c Updated copyright to 1997. clientutil.c Updated copyright to 1997. dir.c Updated copyright to 1997. fault.c Updated copyright to 1997. includes.h Updated copyright to 1997. interface.c Updated copyright to 1997. ipc.c Updated copyright to 1997. kanji.c Updated copyright to 1997. kanji.h Updated copyright to 1997. loadparm.c Updated copyright to 1997. locking.c Updated copyright to 1997. mangle.c Updated copyright to 1997. message.c Updated copyright to 1997. nameannounce.c Made use of WINS subnet explicit. Added reset_announce_timer() so announcement can be made immediately when we become a master. Expanded code to do sync with dmb. namebrowse.c Removed redundent checks for AM_MASTER in sync code. Made use of WINS subnet explicit. namedbname.c Made use of WINS subnet explicit. namedbresp.c Made use of WINS subnet explicit. namedbserver.c Made use of WINS subnet explicit. namedbsubnet.c Explicitly add workgroup to WINS subnet when we become a dmb. Made use of WINS subnet explicit. namedbwork.c Made use of WINS subnet explicit. Removed redundent check_work_servertype() function. nameelect.c Explicitly add workgroup to WINS subnet when we become a master browser. Made use of WINS subnet explicit. namelogon.c Updated copyright to 1997. namepacket.c Updated copyright to 1997. namequery.c Updated copyright to 1997. nameresp.c Made use of WINS subnet explicit. Made nmbd fail if configured as master browser and one exists already. nameserv.c Made use of WINS subnet explicit. Remove redundent logon server and domain master code. nameserv.h Add emumerate subnet macros. nameservreply.c Made use of WINS subnet explicit. nameservresp.c Updated copyright to 1997. namework.c Made use of WINS subnet explicit. Updated code to add sync browser entries to add subnet parameter. nmbd.c Added sanity check for misconfigured nmbd. nmblib.c Updated copyright to 1997. nmblookup.c Updated copyright to 1997. nmbsync.c Removed redundent AM_ANY_MASTER check. params.c Updated copyright to 1997. password.c Updated copyright to 1997. pipes.c Updated copyright to 1997. predict.c Updated copyright to 1997. printing.c Updated copyright to 1997. proto.h Changed protos for new nmbd code. quotas.c Updated copyright to 1997. replace.c Updated copyright to 1997. reply.c Updated copyright to 1997. server.c Updated copyright to 1997. shmem.c Updated copyright to 1997. smb.h Updated copyright to 1997. smbencrypt.c Updated copyright to 1997. smbpasswd.c Updated copyright to 1997. smbrun.c Updated copyright to 1997. status.c Updated copyright to 1997. system.c Updated copyright to 1997. testparm.c Updated copyright to 1997. testprns.c Updated copyright to 1997. time.c Updated copyright to 1997. trans2.c Updated copyright to 1997. trans2.h Updated copyright to 1997. uid.c Updated copyright to 1997. username.c Updated copyright to 1997. util.c Updated copyright to 1997. version.h Changed to 1.9.17alpha1.
* added automount home directory support. contributed by simeon@bangor.co.ukSamba Release Account1997-05-075-18/+103
| | | | | | | | | | | | and a mini bug-fix by rob.nacarrato@sheridanc.on.ca reads in an entry from the auto.home file for the user when they log in, and mounts their home directory as the default path for the [homes] service. i might add this as to the %substitution system, so that you can specify subdirectories for the user profiles, mainly. lkcl
* name_unregister_work() using strequal incorrectly.Samba Release Account1997-05-031-1/+1
| | | | lkcl
* expiry of browser entries wasn't happening once the entry had synced.Samba Release Account1997-04-171-1/+1
| | | | lkcl
* two bugs jeremy and i found while at sgi.Samba Release Account1997-04-172-2/+2
| | | | | | | | find_workgroupstruct call in nameannounce.c should have False not True check_master_browser should _only_ force an election for its own workgroup, not other workgroups! lkcl
* removed reference to subnet_record and work_record, as neither are needed.Samba Release Account1997-04-111-19/+0
| | | | lkcl
* jra@cygnus.com: Changed CHECK_TIME_MST_ANNOUNCE back to 15 from 1 (from test).Samba Release Account1997-04-091-2/+1
|
* Large changes from jra@cygnus.com. Mainly browser updates.Samba Release Account1997-04-0923-628/+790
| | | | | | | | | | | | | | | | | | | | | | | | | | access.c: Fixed crash if yp domain unavailable. includes.h: Moved ifdefs for minor platform. interface.c: Changed name of ipgrp to wins_ip to make it clearer. loadparm.c: Changed default of wins support to 'no'. nameannounce.c: Many changes to fix cross subnet browsing. namebrowse.c: Many changes to fix cross subnet browsing. namedbname.c: Many changes to fix cross subnet browsing. namedbresp.c: Many changes to fix cross subnet browsing. namedbsubnet.c: Many changes to fix cross subnet browsing. namedbwork.c: Many changes to fix cross subnet browsing. nameelect.c: Many changes to fix cross subnet browsing. namelogon.c: Many changes to fix cross subnet browsing. namepacket.c: Many changes to fix cross subnet browsing. nameresp.c: Many changes to fix cross subnet browsing. nameserv.c: Many changes to fix cross subnet browsing. nameserv.h: Many changes to fix cross subnet browsing. nameservreply.c: Many changes to fix cross subnet browsing. nameservresp.c: Many changes to fix cross subnet browsing. namework.c: Many changes to fix cross subnet browsing. nmbd.c: Change to search wins subnet. nmbsync.c: Change to check if we are any master before proceeding. proto.h: Added find_subnet_all() and check_work_servertype(). util.c: Moved 'done' settings on name resolution.
* name_type for name_query with smbclient -M name should be used. that way,Samba Release Account1997-04-031-3/+3
| | | | | | you get messages to the proper location. lkcl
* finally! doing a strequal() == 0 instead of just strequal(). too used toSamba Release Account1997-03-151-10/+9
| | | | | | strcmp. oops. lkcl
* compile errors. oops.Samba Release Account1997-03-151-4/+4
| | | | lkcl
* become_domain_master(), become_local_master() and become_logon_server()Samba Release Account1997-03-151-36/+38
| | | | | | weren't being called properly from name_register_work(). lkcl
* bug: when checking whether there is a PDC already on the current localSamba Release Account1997-03-151-7/+4
| | | | | | | | subnet, on finding that there was no response, the (broadcast) ip address queried was accidentally being compared to the (unicast) interface ip address. this would stop non-WINS-client nmbds from ever becoming a PDC. lkcl
* JHT ===> Blasted typos. BROWSER_ELECT_VERSION in smb.h should have beenSamba Release Account1997-03-151-1/+1
| | | | BROWSER_ELECTION_VERSION.
* JHT ===> Moved MAJOR_VERSION and MINOR_VERSION defines to smb.hSamba Release Account1997-03-153-8/+14
| | | | | | | | | | | | | | | Made version info consistent in ipc.c and nameannounce.c Added define for BROWSER_ELECTION_VALUE and BROWSER_CONSTANT (see do_announce_host() in nameannounce.c). Sniffing with the latest bloodhound I found that the byte range occupied by the BROWSER_ELECTION_VALUE is interpreted depending on the type of announcement being made. In a Local_Master_Announcement it is BROWSER_ELECTION_VALUE but in both Workgroup_Announcement and Host_Announcement this is seen as Comment_String_Pointer. What does this mean? We need to know?
* added jeremy's patch to return Node Status info type in a Node StatusSamba Release Account1997-03-131-1/+1
| | | | | | | | response, instead of always Name Query. oops. lkcl
* added code that checks whether the DOMAIN<1b> name is claimed on theSamba Release Account1997-03-123-7/+68
| | | | | | | | | | | | | local subnet _before_ going and registering it. the reason for this is that i don't want to cause chaos by registering the name twice. it's ok to register DOMAIN<1b> with the WINS server, because the WINS server's job is to check a) _if_ there's a current owner of the name b) if the current owner exists c) if the current owner still wants the name. if they don't, the WINS server responds by saying, 'yes, you can have it'. lkcl
* 1) updated ipc.c NetUserGetInfo - load \\%L\%U instead of \\%L\HOMESSamba Release Account1997-03-0913-349/+795
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | because the share must be browseable by a w95 client 2) send_mailslot_reply - unique or group datagram argument added. 3) netlogon.c - rewrote response packet to do the right thing for w95. 4) server.c reply_nt1() - added OEMDomainstring to the end. 5) (deep breath) reworked the nmbd-browsing code a little bit. i discovered two months ago that becoming a primary domain controller (and domain master browser) is done independently of becoming a backup domain controller (logon server) is done independently of becoming a local master browser. therefore, three sets of state-machines (instead of just one) are in place - each of which is responsible for taking samba through the required stages to become: a logon server; a domain master browser; and a local master browser. each of these three things can occur independently on each interface, _including_ the wins pseudo-interface. the only slight caveat is that the wins pseudo-interface, by virtue of _not_ being a broadcast interface, does _not_ register as a local master browser with the wins server, as this doesn't make sense. lkcl
* preferred master option will force an election every 5 minutes if theSamba Release Account1997-03-081-21/+38
| | | | | | | | | | | | server isn't a preferred master, and DEBUG(0,(...)) this. reason: if the os level etc parameters aren't working properly, then a domain master browser samba server that _ought_ to be the local master browser as well might not. i'll modify smb.conf.5 man page etc to reflect this change. lkcl
* Added better debug for what kind of netbios packet we got.Samba Release Account1997-03-071-2/+32
| | | | jra@cygnus.com
* quotas.c: Fixed typo in #ifdef'ed compile.Samba Release Account1997-03-072-3/+5
| | | | | ufc.c: Added pre-declaration of _ufc_doit(). jra@cygnus.com
* Fix fro signed/unsigned problem with TIME_T_MIN from Anatoly V. GrabarSamba Release Account1997-03-071-1/+1
| | | | | <agra@sice.ru> jra@cygnus.com
* added debug_nmb_packet() call.Samba Release Account1997-03-021-0/+2
| | | | lkcl
* Split maxxmit parameter into two : max_send (auto configured by theSamba Release Account1997-02-285-18/+30
| | | | | | | connecting client, as per CIFS4) and max_recv, which can be configured as the old maxxmit was. Fixes problems with NT directory listings when maxxmit is set very small. jra@cygnus.com
* JHT ===> Set to 1.9.16p12alpha until someone thinks it's Beta prime time.Samba Release Account1997-02-231-1/+1
| | | | To be set to 1.9.16p12 just before release.
* Makefile: Added cleandir target.Samba Release Account1997-02-238-18/+81
| | | | | | | | | | | | | | | chgpasswd.c: Added patch from Roland Haag <haag@think.de> to allow password changes to be done more than once. loadparm.c: Added entries for the "directory mode/directory mask parameters". Changed default file mode to 644. proto.h: Added sys_gethostbyname. server.c: Added directory mode changes. system.c: Added sys_gethostbyname. trans2.c: Added NT_FILE_ATTRIBUTE_NORMAL patch from Roger Orr <rorr@csfp.csfb.com> trans2.h: Defined NT_FILE_ATTRIBUTE_NORMAL for above patch. util.c: Changes calls to gethostbyname to sys_gethostbyname. jra@cygnus.com
* JHT ===> Updated SV_TYPE defines in smb.h (added WIN95 entry)Samba Release Account1997-02-222-1/+2
| | | | nameserv.h returned to original state.
* Fixed problem with renaming folder on top level share.Samba Release Account1997-02-181-15/+35
| | | | jra@cygnus.com
* Fixed inclusion of crypt.h bug when libdes is being used on SolarisSamba Release Account1997-02-132-2/+4
| | | | | only. jra@cygnus.com
* Fixed bugs in my YOST replacement code. Doing a trim_stringSamba Release Account1997-02-131-1/+9
| | | | | | | in unix_clean_name caused directory names to go from ./ to "". This is now checked for, unix_clean name returns ./ in these cases. jra@cygnus.com
* JHT ===> Updated RedHat RPM Makefile - not really used except to generateSamba Release Account1997-02-121-1/+1
| | | | the RedHat Makefile diffs.
* Replaced YOST code with more functionally equivalent code thatSamba Release Account1997-02-115-29/+26
| | | | | changes a bit less. Also added fix to tricky reply_mv case. jra@cygnus.com
* Added trim_string(s, "./", 0) to unix_clean_name to removeSamba Release Account1997-02-101-0/+3
| | | | | leading ./ characters. jra@cygnus.com
* Removed YOST code. Removal of leading ./ chars shouldSamba Release Account1997-02-101-20/+0
| | | | | be done in unix_clean_name in util.c jra@cygnus.com
* JHT ===> William Yost patches integrated to fix leading path on 8.3Samba Release Account1997-02-102-0/+25
| | | | | | | | | | | | | | | | | | filename problem. Problem conditions: case sensitive = no default case = lower mangle case = yes preserve case = yes short preserve case = yes Problem: Win95 still writes upper case file names. Patches supplied have been incorporated into mangle.c and server.c but needs YOSTW to be defined for it to take effect. Action: ======= If we are happy with the patch, delete old code in mangle.c, then remove all YOSTW #ifdefs.
* Fixed incorrect offset into array.Samba Release Account1997-02-061-1/+1
| | | | jra@cygnus.com
* JHT ===> **** WARNING **** Only updated version to 1.9.16p11Samba Release Account1997-02-041-1/+1
| | | | so I can test RedHat RPM builds.