summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1998-04-14Modified interfaces to getting smb password entries fromJeremy Allison10-38/+83
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. (This used to be commit 1161cfb7f2b0d5a6d3e2b524a14a6f325ce70efb)
1998-04-13make it look for only the proper lines to uncomment.Herb Lewis1-8/+8
(This used to be commit c963ec8cc4bd311023ca4ad00ded4502989b7faa)
1998-04-13Fixed aggregate initializer problem for gcc.Jeremy Allison1-1/+1
Jeremy. (This used to be commit e74428e4287cbc1557cc79d4930371cfaf3256d4)
1998-04-13Changes include:Christopher R. Hertel4-421/+706
proto.h: The unusual. ;) reply.c: I changes some function names, and updated reply.c to match. See mangle.c below for more. server.c: Changed function names and parameters in file mangle.c, so changed server.c calls to match. See mangle.c below for more. mangle.c: I replaced the caching mechanism used for caching reverse mangled name maps. The old method was a large array of 256-byte strings. Movement in the stack (including push and pop) was done by memcpy()ing whole chunks of memory around. The new system uses the ubi_Cache module which, in turn, uses a splay tree. Entries are dynamically allocated using a minimum amount of memory. Searches are non-linear, which should speed things up a bit, too. Overall, this should save memory and be faster. Other changes: I streamlined the is_mangled() test and made other speed enhancements including replacing some static functions with macros. Added comments, etc. Note: Per an E'mail conversation with Andrew, the 'mangled stack' parameter in smb.conf doesn't do anything anymore. The cache is now set for 16K bytes maximum memory usage. The mangle stack parameter is silently ignored. This can easily be changed, but I'd rather introduce a 'mangled cache memory' parameter and remove 'mangled stack'. Remaining problems: While testing the module, I noticed that something is calling name_map_mangle() twice. The result is that names which contain illegal characters are getting mangled twice. Also, the entire module works by overwriting the input string. This has a variety of nasty side effects. Summary: There's a lot still to be done, but the changes I have in place *should* work in exactly the same way (except for the mangle stack parameter). The rest of the bugs and other issues are separate. Chris -)----- (This used to be commit 8759bec11ba483b2292b0e513b85c98ed5e3e2d4)
1998-04-13Changes to allow Samba to be compiled with -Wstrict-prototypesJeremy Allison33-265/+243
with gcc. (Not a big change although it looks like it :-). Jeremy. (This used to be commit cd2613c57261456485fe4eeecfda209ada70de8e)
1998-04-13Contributed software for Linux autofs support.John Terpstra3-0/+524
(This used to be commit 883be3907778ee160872b0a0a023fc34e636774f)
1998-04-13fixed a memory leak in close_file(). Each time a file was openedAndrew Tridgell1-1/+7
we leaked memory equal to the length of the filename. (This used to be commit 30a347de74f7f8e2646b1853a9e5914320cee58d)
1998-04-13As it says.John Terpstra1-0/+57
(This used to be commit adf4b3ffd78dd99e593b4d9f34389d436b90fa72)
1998-04-12Added additional comments from Bruce WoodJohn Terpstra1-0/+75
(This used to be commit cd1e7eb8b13ed84dce740de92ef8620280430476)
1998-04-12minor reformatting of debug messages (so people don't think there is aAndrew Tridgell1-3/+3
. on the end of their host names) (This used to be commit dd3fe9fb471a803747957a898693a5890d71e176)
1998-04-12some hacks to the torture codeAndrew Tridgell1-1/+10
(This used to be commit 02786747ee6774f617d95b08a5c5912bf86e7586)
1998-04-12support O_SYNC at open time in files (previously we only supported itAndrew Tridgell1-0/+4
on individual writes) (This used to be commit ce017a233ba5c68e340e0d31634f9bd93118b20a)
1998-04-12if the resolve order is blank then assume "host"Andrew Tridgell1-0/+2
(This used to be commit d361a06fa14b899cf1bd697a9524b5a32f7bf204)
1998-04-12support O_SYNC in opens for smbtortureAndrew Tridgell1-0/+4
(This used to be commit 000b871839e12065fc514f857ba205590a95b040)
1998-04-11Corrected the spelling of my Surname. Added several postscripts.John Terpstra1-2/+27
Extended info on Win95 logins to Windows NT. (This used to be commit 237f80b128def6d9ec903cfebe12eec82913964f)
1998-04-11created from a really useful discussion about Win95 / NT profiles.Luke Leighton1-0/+285
Contributors: Bruce Cook <BC3-AU@bigfoot.com> Copyright (C) 1998 Bruce Cook John Terpestra <samba-bugs@samba.anu.edu.au> Copyright (C) 1998 John H. Terpestra Wolfgang Ratzka <ratzka@hrz.uni-marburg.de> Copyright (C) 1998 Wolfgang Ratzka (This used to be commit 2d7d013e0ca8fc2e97eb8299e3d847c57c40ed1c)
1998-04-11Fix heaps of warnings when compiling with gcc under Digital UNIX. Include ↵Richard Sharpe1-0/+4
route.h and mbuf.h at a strategic point ... Wierd stuff really, because the Digital compiler does not complain either way, but GCC does. (This used to be commit 241fde3c713c91961b6bcb97ecb046ac2f3bb00b)
1998-04-11Updated to include possible cause of failed TESTS 3/6 as bad broadcast address.John Terpstra1-1/+7
(This used to be commit 031f5b183e57b26a3401440cc3d8156c9771da2e)
1998-04-11Oops, fogot proto.h. It needs to be updated for changes to client.cRichard Sharpe1-1/+1
(This used to be commit c95097501a621a87c51d59407cce754be055558a)
1998-04-11smbclient.1 updated to reflect the new functionality and to document ↵Richard Sharpe1-2/+24
functionality that has been available for a long time. More updates needed ... people tend to forget the man pages when adding functionality. (This used to be commit 587624e1ebc668900600c0ac7f272e6f1b92685b)
1998-04-11Changes to client.c support the need for directories to be processed by whateverRichard Sharpe2-68/+298
action is passed to do_dir. Changes to clitar.c as requested by Canon Information Systems Research Australia: 1. Support restoring long file names 2. Write directory entries to TAR files as first part of setting directory create times 3. Ensure zero length files get correct mtime 4. Allow DOS and UNIX pathnames in command line parameters. (This used to be commit 0c228f0b33950c8d38de0529e88a38848742a50d)
1998-04-10includes.h: Moved HPUX undefine of SEMMSL to where it actually does something.Jeremy Allison12-38/+137
ipc.c: Added Luke's debug statement. locking_slow.c: Added FTRUNCATE_NEEDS_ROOT code for broken systems that need it (not sure what these are yet). membuffer.c ntdomain.h proto.h lib/rpc/include/rpc_dce.h lib/rpc/include/rpc_srvsvc.h lib/rpc/parse/parse_prs.c lib/rpc/parse/parse_rpc.c lib/rpc/server/srv_pipe_hnd.c lib/rpc/server/srv_util.c: Re-merge of Luke's NTDOM changes 'cos he's a lazy git with carpel tunnel syndrome :-). Jeremy. (This used to be commit 52e3966fbcf7b5fbdbc7cbe9ac0b453ab5bf3217)
1998-04-10Fix for [homes] problem with security=share. We were still relyingJeremy Allison1-5/+19
on a valid vuid to get the connecting username - this is *never* true (anymore) with security=share. Jeremy. (This used to be commit 5d6f63a7e665ee19bd4508b2b40d497e9851b248)
1998-04-09Makefile, loadparm.c, server.c, smb.h, util.c: Patch fromJeremy Allison6-12/+70
stn@techfak.uni-kiel.de (Stefan Nehlsen) to get homes from the NIS+ map. smbpasswd.c: Tidy up of cli_state structure. Jeremy. (This used to be commit fc2295e0f5729585fdb3ee47edb290851d4071c5)
1998-04-09I removed a static string that was in there because I planned to doChristopher R. Hertel1-6/+0
something with it some day. It was causing gcc to cough up warnings (not serious ones, mind you). Don't worry... It will be back! Chris -)----- (This used to be commit 46445421c5cbfb9597eccd2c9d222528e14ed768)
1998-04-09Added const cast to struct args to get rid of compile time warning.John Terpstra1-1/+1
(This used to be commit 5d956abb4f4ed22671dfb1c7cb51489ab280463f)
1998-04-09Removed unneeded proto symbol.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 6ed3de711858fde6fa8085e9439aae3bbf6ecda1)
1998-04-09Missed compile error when compiling with KANJI=true.Jeremy Allison1-1/+1
Jeremy. (This used to be commit c92bd807429627f18b54acc14a8a323a547bd01a)
1998-04-09Added codepage 936 (simplified Chineses).Jeremy Allison4-132/+123
In doing so I realized that much code was being duplicated between Hangul, Big5 and Simplified Chinese - so I re-arranged kanji.[ch] to go through generic functions for all multibyte characters that can be identified by a single code range (not Kanji - but all the others). Jeremy. (This used to be commit b6c965c396eb3d4f0e6dfd863e70b28390c59f66)
1998-04-08Fix to stop Windows 95 spinning on print queue requests when itJeremy Allison1-1/+1
gets an error message it doesn't understand. Jeremy. (This used to be commit 838e2fe2f76b20f34309c2322e3bd60817fef1fd)
1998-04-07Added check for getpwnam returning NULL.Jeremy Allison1-3/+7
Jeremy. (This used to be commit 81cbfaacb11747830354f4a58be441015fe19ba8)
1998-04-07want all of data in show_msg at log levels > 50.Luke Leighton1-27/+33
(This used to be commit 2245f4908ee3d33fd05f0a19abda89053cbfceb9)
1998-04-06loadparm.c: Cause IPC$ comment to be evaluated at runtime, rather thanJeremy Allison2-3/+11
load time (patch from "Marty Leisner" <leisner@sdsp.mc.xerox.com>. server.c: Patch from Josef Hinteregger <joehtg@joehtg.co.at> - string could be overwritten when find_service() called recursively. Jeremy. (This used to be commit cf15b3bd74a262e7af3d739a83ef7b43df4935e5)
1998-04-03Fix from Josef Hinteregger <joehtg@joehtg.co.at> for usingJeremy Allison2-2/+2
character set = iso8859-1 with the new multibyte char code. Was always using sj_to_sj conversion in error. Jeremy. (This used to be commit e6a083451f8785fa1c00314a958007fe96fcc039)
1998-04-02We were missing a case switch in announcement processing - weJeremy Allison1-0/+17
were loggin a become backup request with debug log level of 0 - thus producing lots of annoying error messages. Now handle this explicitly. Jeremy. (This used to be commit 0f4914b870b0dfa876ac47d29f3a1b3736a3d698)
1998-04-02Changed code to check NT password *first* - if it exists.Jeremy Allison1-11/+14
The NT password is a higher quality password, and should always be looked at before the LM password, if available (sorry, Luke, just a minor change, the other changes you made were fine :-). Jeremy. (This used to be commit c1367bf5336485ceafd7125f608dc923ecebd32d)
1998-04-02Patch from Chris Maltby <chris@softway.com.au>. His comments follow:Jeremy Allison5-12/+141
+ improvement to smbtar to allow exclusion/inclusion of system and hidden files, and to generate a listing of what has been archived in a format useful for automated backup systems. + add the "Softq" spooling system to samba's printing capabilities. + I have "fixed" the intrusion of US style dates into samba reporting as well. The format yyyy/mm/dd is not only uunambiguous, but also has the benefit of making lexicographic sorts work correctly. Jeremy. (This used to be commit f9dacd1d8b89fccad859c0c6bc7a492823eb4b06)
1998-04-02Updated Eastern European translation table from dan@feld.cvut.cz.Jeremy Allison1-4/+20
Jeremy. (This used to be commit 84d858782eca2077cd0ce089b156938fa122cf93)
1998-04-01cli_login.c :Luke Leighton2-18/+59
start to create the calls needed for client-side of "network" logins, which will be used for domain version of pass-through authentication. unfortunately, none of this code is called in the main branch, because smbclient BRANCH_NTDOM code isn't in use, yet! srv_netlog.c : fixed a problem with static net_login_network() which was being stubborn: the if() statement looked horrendous, so i split it into two if() statements, one to deal with the lm password; the other to deal with the nt password. the smb_password_check() functions should _not_ be called here, in case we decide to disable lm hashes for security reasons, just like nt does. so, we now get a response to the SAM_LOGON "network" call, but the connection is still dropped. a trace is needed from an nt server, which is why i started on the client-side code. see above, which is why i'm calling it a day :-) (This used to be commit 2c29a7d9cf2d8b35e4b6e37e5d24caa91af3a9be)
1998-04-01Rolling back machine password change code - this doesn't work (yet).Jeremy Allison1-13/+24
Jeremy. (This used to be commit 66affb3dc301d71565d789c06f105da3bb1d65b3)
1998-03-31includes.h: Added semaphore fix for HPUX10.xJeremy Allison4-25/+33
server.c trans2.c: Added oplock deadlock bug fix. lib/rpc/server/srv_netlog.c: Made code that changes machine account password the default. Jeremy. (This used to be commit 3b56fbc11e9d1cb7d4930d9782238c2610cac30d)
1998-03-31the default for old style accounts should be workstation trustAndrew Tridgell1-1/+1
account, not server trust account. (This used to be commit f2d1e39a66155497880dc0b26200a85adfe7af68)
1998-03-30Fixed compile-time error introduced by log message change.Jeremy Allison1-8/+19
Added support for 32bit error messages needed for NTDOM code (was in NTDOM branch, somehow missed during the merge). Jeremy. (This used to be commit 188fb28d7be5d466c86a7464f951d08941d0021f)
1998-03-30Added extra remote password changing error codes from lmerr.h on NT.Jeremy Allison1-2/+5
Jeremy. (This used to be commit 38391b51cd9e1e9fc7e4b77335ed2c7f6befc8c6)
1998-03-29Added remote machine and address to debug message in make_connection() function.John Terpstra1-1/+1
contributor: <ado@flower.nci.nih.gov> (This used to be commit 7775b0f2aa43ee58f1a4f13004451235cfa157ef)
1998-03-27chgpasswd.c, ipc.c, loadparm.c: Added boolean "unix password sync"Jeremy Allison6-26/+73
parameter which allows the new change password code to change the unix password also. Defaults to OFF. includes.h: Added termios.h to FreeBSD to allow password changing. namequery.c: Fixed missing name parameters to debug statements. Jeremy. (This used to be commit 4ac50c0f0aa5af084ddad89b1f9baf6c2c1ddcb8)
1998-03-27Fix for client generated core-dump bug where offset to readrawJeremy Allison1-1/+2
was so large that when used with -DUSE_MMAP it caused the unsigned subtraction to wrap aound and become positive - thus causing a silly memcpy offset. Thanks to "Michael St. Laurent" <rowl@earthlink.net> for giving me the core dump that allowed me to track this one down. Jeremy. (This used to be commit c9e066037ab222472085c4a0ecc8a39b337ad2aa)
1998-03-26client.c: Fixed problem where debug level on command line was overridden by ↵Jeremy Allison2-36/+69
smb.conf. smbpasswd.c: Removed bugs I put in yesterday (thanks Luke :-) and added error message reporting for remote password changing. Jeremy. (This used to be commit 6a3394a285a250d1029cdd545dd0bf832284555a)
1998-03-26Added the ability to differentiate between workstation and serverJeremy Allison1-10/+13
accounts when adding machine account types. Jeremy. (This used to be commit a402b5070f72d7a6948cc9885228efae16f6617d)
1998-03-26smbpass.c: Made unknown accounts ending in '$' server accounts, notJeremy Allison2-6/+30
workstation. smbpasswd.c: Added code to count down from last machine account to add correct uid when adding a machine account. Jeremy. (This used to be commit 0601a41993d6ea4fb2a186b7ca55b2f3a6f6a53d)