summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
1998-03-12moved cgi.c and swat.c into a source/web/ directory. Note that youAndrew Tridgell2-1226/+0
won't see a cvs add in the web directory or these files as I added them by directly copying in the repository. This keeps the history of the files intact. (This used to be commit abe0379cf99f63116ea6f61337134ad5c228f933)
1998-03-12move setup_groups() into password.c so that swat can link withoutAndrew Tridgell2-83/+86
including server.o (This used to be commit 67bb8835c76e3efc43de55493971fe2402c0d709)
1998-03-12use password_ok() instead of calling crypt()Andrew Tridgell2-22/+4
(This used to be commit 53dc8ea5e315abf9ee8d38ffdb8a3057df0235be)
1998-03-12add swat to .cvsignoreAndrew Tridgell1-2/+10
(This used to be commit e826790666a7fb4a39ecdbc8c8084d484a011a62)
1998-03-12these have been replaced by swatAndrew Tridgell2-331/+0
(This used to be commit f9ce87f8658920bd73ed9968723bd5c65a07b8b2)
1998-03-12add FLAG_HIDE to "config file" option (so it can't be set in swat)Andrew Tridgell1-1/+1
(This used to be commit f9f9fe67c7570f7585099a14c36bb3ff0291cdf4)
1998-03-12use FSTYPE_STRING not "SAMBA" for filesystem typeAndrew Tridgell1-1/+1
(This used to be commit df62c80e1d04059905b8a3c5bf9073ba91331e99)
1998-03-12report the max size of raw reads as 65536 not 65535 (this now matchesAndrew Tridgell1-1/+1
what Win95 reports) (This used to be commit a4c6884f43233d57a5f6465f67c4657dd061ae43)
1998-03-11Missed fixes in NTDOM branch for doing readX via pipe IPC$.Jeremy Allison2-1/+5
Allows long share lists to be browsed. Browsing *into* a long share name still fails, though. (Luke - you may need to look into this). Jeremy. (This used to be commit 5299d1b49f2bfd6cf84a687548904206f4a18a41)
1998-03-11"For I have laboured mightily on Luke's code, and hath brokenJeremy Allison56-2626/+22969
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. (This used to be commit 118ba4d77a33248e762a2cf843fb7cbc906ee6e7)
1998-03-11fix core dumps on Solaris 2.5 systems found by Orn AsgeirssonHerb Lewis1-6/+12
(This used to be commit bafc7768925109d0e8e87152054d37ec3f4e7fdd)
1998-03-10This functionality was added to ubi_sLinkList, so is no longer needed as aChristopher R. Hertel2-329/+0
separate module. Chris -)----- (This used to be commit 687e9be59bc853f3ada6005c3826689854489799)
1998-03-10Updates to all of these base level modules.Christopher R. Hertel10-381/+370
Trees: Previously, the AVL node type was different than the node type used in the BinTree and SplayTree modules. It requires an additional field to maintain AVL balance information. I merged that field into the base type (in ubi_BinTree.h) so that all three use the same node type. On most systems this will have zero effect on the node size, due to word alignment. The change allowed me to remove a bigbunch of redundant code, which makes the AVL module smaller and cleaner. Linked Lists: I combined ubi_StackQueue into ubi_sLinkList. The interface has changed a tiny bit. I added macros to ubi_dLinkList to round it out a bit. I have verified that the few Samba modules that use these tools (so far) do not have any problems with the changes. Chris -)----- (This used to be commit 599a29401defded32358dfae18e54704c0428f38)
1998-03-10added status page to SWAT. Similar to smbstatus output but in a HTMLAndrew Tridgell2-4/+218
table (This used to be commit 8e4a412dba3dc6458651ea042096687b3fcfdc0a)
1998-03-10added a "home" iconAndrew Tridgell2-0/+2
(This used to be commit 60ef0b31a0e85164a89a70a4f0d4e675db25f35d)
1998-03-10added Date and Expires headers in the mini web server so clients knowAndrew Tridgell5-20/+67
what they can cache. (This used to be commit b6055e40bb91775a29b756640d95910a6f19814f)
1998-03-08- remove redundent strstr()Andrew Tridgell4-12/+2
- don't show printers in shares page (This used to be commit 2b4204a7769a974a74a7658e787274f6251b1d69)
1998-03-08allow for non-authenticated SWAT for demo purposesAndrew Tridgell5-11/+17
(This used to be commit 6e1237568b559c006ee5429308ac47e97cc4a1c4)
1998-03-08Jeremy is going to hate me ...Andrew Tridgell7-302/+1240
These are some hacks on SWAT. Maybe users will actually be able to work out how to use it now. Unfortunately these changes required some editing in loadparm.c and smb.h which will make Jeremys merge job harder. Sorry! (This used to be commit 674c88a6bf4c8009769a482c53f105efdc54bbc8)
1998-03-04Removed broken change I made to mangle.c (ooops. Andrew's originalJeremy Allison2-9/+4
algorithm was correct). Finally (I think) fixed the mangled directory stack issue in scan_directory() correctly. Mangled & non-mangled names are now being checked correctly. Hurrah to Ulrik Dickow <ukd@kampsax.dk> who helped isolate this one. Jeremy. (This used to be commit 37f5f7b557aa59c7eba4a9f2f2f323d7cec62fc7)
1998-03-04Adding Korean and Traditional Chinese codepage support.Jeremy Allison4-1/+53
Jeremy. (This used to be commit 2df47cf1bb3428fbaa8dcf45ec114ec3aaafae57)
1998-03-03Change the multibyte character set support so thatJeremy Allison15-218/+593
Kanji support is one case of multibyte character support, rather than being a specific case in single byte character support. This allows us to add Big5 Chinese support (code page 950) and Korean Hangul support (code page 949) at very little cost. Also allows us to easily add future multibyte code pages. Makefile: Added codepages 949, 950 as we now support more multibyte codepages. asyncdns.c: Fixed problem with child being re-spawned when parent killed. charcnv.c charset.c client.c clitar.c kanji.c kanji.h smb.h util.c loadparm.c: Generic multibyte codepage support (adding Big5 Chinese and Korean Hangul). nmbd.c: Fixed problem with child being re-spawned when parent killed. mangle.c: Modified str_checksum so that first 15 characters have more effect on outcome. This helps with short name mangling as most 'long' names are still shorter than 15 chars (bug was foobar_mng and foobar_sum would hash to the same value, with the modified code they hash differently. Jeremy. (This used to be commit 299016338cfb47f0c585875ef9b468121fcee97d)
1998-02-26Makefile, password.c, includes.h: Added KRB4 patches from Johan Hedin ↵Jeremy Allison3-3/+52
<johanh@fusion.kth.se> nmbd_packets.c: Patch for aliased interfaces from Daniel Haun <dhaun@ecf2.puc.edu>. Jeremy. (This used to be commit 60f6302b1972e49159bf6e1a838e691268e4399c)
1998-02-26-N option still prompted for password in smbclient -L usageHerb Lewis2-1/+5
(This used to be commit 140fba461bc22f26055c13b04a084d2df16ac604)
1998-02-26Fix for NT redirector bug where deltree fails if the resume keyJeremy Allison3-17/+72
indexes are changed between directory scans. This fix does what NT4.x SP3 does in that it stops using resume keys and returns zero instead. We now use the filename in findnext to continue the search in the correct place (as NT does). Jeremy. (This used to be commit b813fb22c4c1b0ee48667e99e82434d20266bbf2)
1998-02-26Code to work around a bug in FTP OnNet software NBT implementation.Jeremy Allison1-0/+16
They do a broadcast name release for WORKGROUP<0> and WORKGROUP<1e> names and *don't set the group bit*. Jeremy. (This used to be commit 1feb54e1ba27ab8aba2df4ebef4df010ca980f12)
1998-02-24Fixed bug reported by Janne.Harju@nmp.nokia.com. When used in broadcastJeremy Allison3-7/+37
only mode nmbd was not reporting WORKGROUP<0> and WORKGROUP<1e> names to a unicast node status query (although it was registering these names on the network). Also tidied up code in nmbd_mynames.c so that all known IP addresses are registered in the unicast subnet in this case rather than just the first, as was previously done. Jeremy. (This used to be commit eb71c5edcbb983ed4a1b0f57139bd66b671c67fa)
1998-02-24Fixed bug where second response message was being printed with theJeremy Allison1-1/+1
wrong IP address. This confused a lot of people (including me :-). Jeremy. (This used to be commit 0f4080d3f076db58917d13787a282e96ba59a053)
1998-02-24nmbd_incomingdgrams.c: Fix for typo.Jeremy Allison6-8/+22
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. (This used to be commit 776ccf5c0641b5aa300236c2612b5f2761d1179f)
1998-02-20nmbd_packets.c: nmbd_subnetdb.c: Patch from Andrey Alekseyev ↵Jeremy Allison7-40/+157
<fetch@muffin.arcadia.spb.ru> to fix the fact that retransmit_or_expire_response_records() wasn't looking at the WINS subnet. server.c: Patch from jkf@soton.ac.uk to add %p (NIS server path) substitution. smbpass.c: Fix to stop parsing failing on non-valid lines. trans2.c: Fix for volume serial number code. util.c: Patch from jkf@soton.ac.uk to add %p (NIS server path) substitution. Fix for warnings under RH5. gcc 2.8. Jeremy. (This used to be commit e58ab3bbe6e939ba678ad5482e58e0191c8dcbcb)
1998-02-14Fix to make us compile cleanly with gcc 2.8.Jeremy Allison1-3/+0
Jeremy. (This used to be commit 0a535680077a9e436362fd7f1711f62b35317fa4)
1998-02-14Sometime after 1.9.17p5 smbclient stopped being able to doJeremy Allison1-2/+4
NetBIOS name lookups by broadcast and instead only does DNS. With the belief that this was not what was intended (I think it happened in the clientutil.c cleanup) I have added that capability back to smbclient by adding the #define USENMB into clientutil.c, and adding the required namequery.o into the object lists for smbclient and smbmount (as they now need it to link). If this was done intentionally let me know and I'll back this out. Jeremy. (This used to be commit 1da47e79d3055468b03f496982af0fb836d91f8c)
1998-02-13Fix for crash bug with amanda - from "Michael C. Povel" <Michael.Povel@hub.de>.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 735adfa01b7b2e540bb5476a77d6b689ca70852a)
1998-02-13Ding-dong the witch is dead, the witch is dead......Jeremy Allison7-45/+29
This is the checkin that fixes the infamous Visual C++ 'file has changed' bug. I feel *SO* good about that :-). charset.c: Added (void) to fix Herb's fussy compiler. loadparm.c: Removed "win95 bug compatibility" (didn't like it much anyway :-). Added "dos filetime resolution" instead. reply.c: Added the 2 second timestamp resolution fix that the song above is about. time.c: Removed unneeded get_access_time() function. trans2.c : Removed unneeded "win95 bug compatibility" code. Jeremy. (This used to be commit 10d628e4aeaecc573de27e251fec7b91844cba40)
1998-02-12make the initial logfile names consistent. This should mean that smbdAndrew Tridgell2-1/+3
starts with log.smb and nmbd starts with log.nmb. It also gets rid of the "log." when using the log.%m construct as %m expands to smb before a client connects. (This used to be commit b7712a0a6d0afeef6239d5af61cba677eebb247b)
1998-02-12Added fix for doing pq command (from "James J. Szinger" ↵Jeremy Allison1-2/+2
<james.szinger@yale.edu>). Jeremy. (This used to be commit 7123405d6351cf6457adb1199dab3c6416bf9865)
1998-02-11Makefile: Added AIX 3.2.5.Jeremy Allison10-13/+77
loadparm.c: Added "win95 bug compatibility" parameter. local.h: Replaced MAX_OPEN_FILES back to 100 from 10 (oops). reply.c: Fixed ulogoff check against uid - changed to vuid. server.c: Changed file struct save of uid - changed to vuid. smb.h: Changed id in struct current_user to vuid. Changed file struct uid to vuid. time.c: Added "win95 bug compatibility" atime -> mtime return. trans2.c: Added "win95 bug compatibility" fixes. uid.c: Changed id in struct current_user to vuid - added checks to set/reset it. util.c: Added code to expand environment variables. version.h : still at 1.9.18 (head branch doesn't matter too much at present). Jeremy. (This used to be commit adc903bcf59ad1664babd7f1d43675d3a75bfbc9)
1998-02-07A small raft of changes, I will sync up with 1.9.18 also.Jeremy Allison13-49/+115
chgpasswd.c: Fixed typo in debug message. includes.h: Fix include for aix. kanji.c: Added cap_to_sj as inverse of sj_to_cap. loadparm.c: local.h: password.c: Added code for "networkstation user login" parameter. - patch from Rob Nielsen <ran@adc.com>. printing.c: Added further aix printing fixes. reply.c: Changed access time fetch to a function. trans2.c: Changed access time fetch to a function. time.c: Changed access time fetch to a function. server.c: Made NT redirector workaround final. util.c: Added debug for write_socket failing. Jeremy. (This used to be commit a031404623c22d62f8de035be2239f609af08112)
1998-01-31server.c: Added fix where, if all the file entries are beingJeremy Allison1-1/+57
used, smbd tries to break an oplock to make room for another file entry. This works well with Windows 95 that seems to keep batch oplocks around for an arbitrarily long time. Also changed rlimit code to ask for MAX_OPEN_FILES + 10 (if allowed) as many systems use file descriptors for directory handles also. Jeremy. (This used to be commit 1544d5a0f889d42696656fb18d2da1c1f8626b2b)
1998-01-30fix bug when using lpstat as printcap file - remove space at start ofHerb Lewis1-1/+1
printer names generated (This used to be commit 8f48a0571a4dda282bd3438e54a029400b7ca448)
1998-01-29Makefile: Fix for OSF1 typo.Jeremy Allison9-10/+62
asyncdns.c: Fixes that went into 1.9.18p2 - allow unclocking of sigterm. chgpasswd.c: char -> unsigned char fixes. includes.h: AIX fix to get prototype for inet_ntoa. local.h: Tune size of shared memory based on MAX_OPEN_FILES. nmbd_mynames.c: Fix for nmbd repeated refresh bug. nmbd_responserecordsdb.c: Fix for nmbd repeated refresh bug. nmbd_winsserver.c: Fix for multi-homed registration optimisation. smb.h: Moved default shared memory size to local.h Jeremy. (This used to be commit fa5466805685d461564054d7d9947948fc56ae93)
1998-01-28Fix from Charles Hoch (hoch@hpl.hp.com). Whne there is no dataJeremy Allison1-2/+4
to send, setting the data alignment to a 4 byte boundary causes a few extra bytes to be sent. This seems to cause the NT redirector to *sometimes* fail. Jeremy. (This used to be commit f6ee3263dac960772024bf9009ad0ddce6d8f289)
1998-01-25always align both the parameter and data bytes on a 4 byte boundary inAndrew Tridgell1-8/+20
trans2 responses. I'm not at all convinced this was causing problems, because observations of Win95 show that it produces totally non-aligned paramater bytes and 2 byte aligned data bytes. We were previously always producing 2 byte aligned data and parameter bytes so we already had "better" alignment than Win95. lets hope no clients rely on servers producing unaligned data or parameters! (This used to be commit 68ad11a7352824fea46ecbe67a3827a7ba3bcbab)
1998-01-24Added log message so we can tell when free_service is called.Jeremy Allison1-0/+3
Just in case of problems. Jeremy. (This used to be commit ee307df9ad1f03d7f8e515549902abd96dae72fc)
1998-01-24Fix for memory leak in loadparm.c - donated by Branko Cibej ↵Jeremy Allison1-1/+8
<branko.cibej@hermes.si> I checked this out and it looks ok - the bzero() in init_service() was overwriting the pointers pservice->szService and pservice->copymap that should have been freed in copy_service() the line later. This fix frees pservice->szService and pservice->copymap inside free_service() and sets them to zero so they won't be freed again. Jeremy. (This used to be commit 0bcb00e2bad999df859fdff59ce720d34de9b1ad)
1998-01-24Added get_create_time() function to time.c.Jeremy Allison4-7/+30
This gets the minimum timestamp associated with a file. reply.c and trans2.c then return this as the create time. Designed to fix problems with VC++ and others. Jeremy. (This used to be commit e3d5f6196d6eff707c78941696a368216e2a7410)
1998-01-23Changed code that truncates salt after 2 characters so that it becomesJeremy Allison1-0/+3
HPUX specific. This fixes a bug with FreeBSD md5 crypt implementation that needs all of the password characters. It seems better to make this an HPUX specific thing. Jeremy. (This used to be commit 91a2b746d3fac261d4be3bd7afa3d5bb601b3d27)
1998-01-23Fixed warnings with gcc (assignments inside if statements).Jeremy Allison1-4/+4
Jeremy. (This used to be commit 1a9e25d3bc610a1d49241e2fe39530813d983882)
1998-01-23changes to correctly use some HP printer inf filesHerb Lewis1-39/+146
(This used to be commit ab894c3e1de582864ad9c0f6ae797b73b4c2ba41)
1998-01-23nmbd.c, server.c: Added #ifndef MEM_MAN around code that sets the SIGUSR1Jeremy Allison2-0/+9
and SIGUSR2 signals. This allows the MEM_MAN code to be compiled in and the memory debug feature to be used with SIGUSR1. Jeremy. (This used to be commit 43ef7e3cb5bb971ff6ddf8230b08995e55b7c6e1)