summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* loadparm.c: Changed 'interfaces only' parameter to 'bind interfaces only'. AddedJeremy Allison1997-10-203-13/+69
| | | | | | | | | | | | | | 'dos filetimes' parameter for UTIME fix. locking_shm.c: Fixed typo (sorry Andrew :-). namepacket.c: Changed lp_interfaces_only() to lp_bind_interfaces_only(). proto.h: The usual. reply.c: Made filetime calls use new file_utime call (wrapper for sys_utime). server.c: Made filetime calls use new file_utime call (wrapper for sys_utime). system.c: Added Andrew's sanity checks to times in sys_utime(). time.c: Moved set_filetime() to server.c. Made null_mtime() global. trans2.c: Made filetime calls use new file_utime call (wrapper for sys_utime). Jeremy (jallison@whistle.com) (This used to be commit 41a1d81c112a82ad2ae1b3c4ee81051f133ce1ed)
* util.c password.c :Luke Leighton1997-10-202-64/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | added automount_server() function which, if -DAUTOMOUNT is in use, returns the server name of the NIS auto.map entry. otherwise, it returns local_server. added use of automount_server() for a new substitution %N for NIS home server. this defaults, via automount_server(), to the same functionality as %L if -DAUTOMOUNT is not used. removed vuser->home_share. moved code that grabbed the servername into the separate function automount_server(). loadparm.c : created "logon drive" (default of "") created "logon home" (default of "\\%N\%U") changed default of "logon path" from NULL to "\\%N\%U\profile". ipc.c pipenetlog.c : use lp_logon_drive(), lp_logon_home() and lp_logon_path() in their now easier-to-use form (don't have to check if *lp_logon_path() and manually substitute a default of \\%L\%U and do a standard_sub_basic() on the result, because the default automatically does this. (This used to be commit c6c28a4c3c9010ff9d5eac4bad091189a786d5a0)
* a major share modes reorganisation.Andrew Tridgell1997-10-202-18/+14
| | | | | | | | | | | | | | | | | | | | The shares modes code is now split into separate files. The shared memory implementation is in locking_shm.c. The slow implementation is in locking_slow.c It is all controlled by a struct share_ops structure that has function pointers to the implementation of all the functions needed by a share modes implementation. An initialisation function sets up this structure. This will make adding new implementations easy and clean. This also allowed me to get rid of the ugly code in smbstatus. Now status.c links to the locking code and calls methods in share_ops. I also renamed some things and generally organised things in a much cleaner fashion. Defines and structures specific to each implementation have been moved to the appropriate file and out of smb.h. (This used to be commit 65ab9adaa0d356b8041ed8a507ea52117f2a284e)
* casting cleanupsAndrew Tridgell1997-10-201-1/+1
| | | | (This used to be commit ab849a97821c9e1f199eea8ea2ec477687bed947)
* pipes.c pipesrvsvc.c :Luke Leighton1997-10-191-80/+0
| | | | | | moved stub srvsvc pipe function into separate file, in preparation for further work. (This used to be commit 2f2d18cc9474e1b40765a67242659be7c63a9936)
* put the NT_STATUS_ALLOTTED_SPACE_EXCEEDED error in instead of 0x99.Luke Leighton1997-10-181-1/+2
| | | | | whatever that means. (This used to be commit ce54f3a7a965b0a9f888dc45d6f4633609d5ca08)
* Simply moved the #include for ubi_dLinkList.h from within dir.c toChristopher R. Hertel1997-10-171-2/+0
| | | | | includes.h. More consistent with current practice. (This used to be commit cb51c860b352fb9d07fb3298d0317274ba6c9925)
* Added Michael Johnsons' PAM modifications <johnsonm@redhat.com>John Terpstra1997-10-161-12/+12
| | | | | This patch has been checked over. JHT (This used to be commit c84a043f89ccba001597962cd03e2f2a634c4b08)
* Made changes to the dir cache functions:Christopher R. Hertel1997-10-161-83/+121
| | | | | | | | | | | | | | | - They now use the ubi_dLinkList linked list code. This is not a big gain, I suppose. It would be significant if there were lots of doubly-linked lists in the code and I replaced them all. The only other advantage is that the code is more modular, which appeals to my own sense of order, if no one elses. :-} - I allocate space for the entry structure and the strings in one go, instead of using malloc() and separate strdup() calls. This should be more efficient, and allows for a single call to free() to free the whole thing. These are very minor changes, but they do serve to make me more familiar with the code overall. (This used to be commit 1dafef88871338f06dbcbbb67ce3bbbb460d7bb6)
* ipc.c: Adding Andrews become_root code to the main branch.Jeremy Allison1997-10-156-22/+106
| | | | | | | | | | | | locking.c: Adding Andrews become_root code to the main branch. pipes.c: Fixing the close_file issue. proto.h: The usual. reply.c: Move smb_pass into NTDOMAIN defined code. Fixing the close_file issue. server.c: Fixing the close_file issue. trans2.c: Fixing the close_file issue. uid.c: Adding Andrews become_root code to the main branch. Jeremy (jallison@whistle.com) (This used to be commit 16fd4337f79ce33f91050c96c4a566221c5d9126)
* smb.h smbparse.c pipenetlog.c :Luke Leighton1997-10-151-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | whoops, the SAM Logon structure was wrong. updated this, and cifsntdomain.txt. more debug info in pipenetlog.c. the crash is somewhere around deal_with_credentials(). byteorder.h : put in uint8, uint16 and uint32 typecasts around debug info, because sign extending was resulting in ffffffe8 being displayed instead of e8. credentials.c : some debugging info, because i'm tracking a coredump. without gdb. nothing like making things difficult. reply.c : whoops, missed this (important) bit from paul's code, which tells the NT workstation that the MACHINE$ entry doesn't already exist, and we're going to create a default entry with a password "machine" right now. proto.h: the usual. (This used to be commit ed606bc7d4e6fb1091e527ea70a3e950d50a1db4)
* added srvsvc basic pipe, straight from paul's code. does NETSHAREENUMLuke Leighton1997-10-152-0/+84
| | | | | and NETSERVERGETINFO. (This used to be commit 96b17b829fc787c15cd366eca604c09d68b5b900)
* force the salt to be a maximum of 2 characters long in callsAndrew Tridgell1997-10-151-0/+1
| | | | | | | to crypt() This might solve some password problems, particulary on HPUX (This used to be commit 45f4ae4327a8836cad22bbf64f1effba6a6eb7f5)
* split pipes.c down into util, netlog and ntlsa.Luke Leighton1997-10-131-1135/+1
| | | | (This used to be commit 8fe02c239d70497af449ed0cdf1a32de10021ba1)
* debugging... no idea what i'm doing.Luke Leighton1997-10-131-9/+10
| | | | (This used to be commit d7a9a02e0a9e1e791810c24bcfcbd39a6bd7dac5)
* debug info addedLuke Leighton1997-10-131-0/+4
| | | | (This used to be commit a3f96555b47265b8cd4d1f735af58375e2591d56)
* checked in a file with a compile error. oops!Luke Leighton1997-10-131-1/+0
| | | | (This used to be commit 28d96c7e6de19a28346d406ccc6fc8b00305903b)
* byteorder.h :Luke Leighton1997-10-131-292/+54
| | | | | | | | | | | | | debugging output wasn't (still isn't) perfect. credentials.c lsaparse.c smbparse.c : added DEBUG strings. pipes.c : lost some changes, to do with setup of RPC headers. arg. (This used to be commit 9fdd697d17b68293bb95fd68f44c24f0f5b97f5f)
* getting somewhere.Luke Leighton1997-10-122-51/+65
| | | | | | | | | | | ipc.c : removed srvsvc pipe reference: have to do that. pipes.c lsaparse.c smbparse.c : more debugging info. looks a bit like netmon output. (This used to be commit e02aa88e25ae6d4da7953aaff04ff2ae9a656d05)
* updated rpc header reply: callid wrong; alloc hint a uint32 not a uint16.Luke Leighton1997-10-121-21/+15
| | | | | still doesn't get rid of the netlogon trans2 request with zero data. (This used to be commit 0cf67955f09d99c452bfc3fdde00dcea98e21db1)
* ipc.c:Luke Leighton1997-10-122-50/+52
| | | | | | | | | | | | | debugging info. found that data = NULL because of short packet length indicated from the ntlsaRPC pipe _royally_ stuffs NT's packet handling. maybe this should go down as a service denial bug to the ntbugtraq list. pipes.c lsaparse.c smbparse.c : added more debug stuff. added length of header to data_len in MSRPC fragment_length field (0x18 bytes short) which caused the above bug from NT 4.0. oops. (This used to be commit a6f8de6815e0b85bb23b302980730501ac0b87e5)
* added debugging macros (suitable eventually for use in tcpdump, hopefully)Luke Leighton1997-10-121-20/+25
| | | | (This used to be commit 946d73cf838976b905550288cac3aea7c43959f6)
* remove { and } from the list of illegal characters in filenames. TheAndrew Tridgell1997-10-121-1/+1
| | | | | | | | CIFS3 spec does not list them as illegal. This allows things like the control panel icon to be placed on a Samba drive. (This used to be commit d2ac9e6fb6e76778154c58217237251d7bb0e98c)
* added api_lsa_sam_logon() and api_sam_logoff(). that's it. lots ofLuke Leighton1997-10-101-170/+216
| | | | | run-time debugging, now. (This used to be commit 75f32987d8599d10b294dc4e0c0160eecda7296b)
* added lsa_reply_srv_pwset()Luke Leighton1997-10-101-66/+96
| | | | (This used to be commit 0d043cfef289ee82287bb6014a164ba83ca87f30)
* ipc.c :Luke Leighton1997-10-102-973/+395
| | | | | | | | | | | | | | | | | | | #if NTDOMAIN call to api_netlogRPC #endif lsaparse.c : renamed lsa_io_q_auth2 to lsa_io_q_auth_2. pipes.c : added api_lsa_reply_auth_2() and api_netlogRPC. proto.h : the usual. (This used to be commit e2e1979b6215080593728942d414a273505877df)
* Makefile:Luke Leighton1997-10-104-71/+1126
| | | | | | | | | | | | | | | | | | | | | | | | | added credentials.c to smbd credentials.c: using credential structures instead of char* password.c uid.c server.c: added sid and attr to user_struct. smbdes.c: smbhash and str_to_key make public instead of private. pipes.c smb.h: lsa structures, sub-functions. proto.h: usual. (This used to be commit 87a0a944855a673d693d934e446bdc231b1c7f02)
* nmblookup.c: Added -A ability to do status on ip address.Jeremy Allison1997-10-101-1/+21
| | | | | | | | | smb.h: Added defines we will need for NT SMB calls. trans2.c: Fixed SMB_QUERY_FILE_ALT_NAME_INFO return - this is only for short name returns (and only used when you negotiate NT SMB calls to boot !). Jeremy (jallison@whistle.com) (This used to be commit 53915bd160eda8c099482ddcef74d1d7606e752b)
* local.h: Fix spelling mistake :-).Jeremy Allison1997-10-093-4/+11
| | | | | | | | | namedbsubnet.c: Stop registering 1x name unless we can be a local master. reply.c: Remove ERRbaddirectory code. server.c: Remove abort() - use exit_server() instead. trans2.c: Remove ERRbaddirectory code. Jeremy (jallison@whistle.com) (This used to be commit 76247228896d39312ba896fa229076be3271e2e4)
* added #ifdef NTDOMAIN. added call to api_ntLsarpc instead of api_LsarpcLuke Leighton1997-10-092-981/+7
| | | | | in ipc.c iff NTDOMAIN is defined. (This used to be commit 7bc4c4c27bf18ce3f632d230dc919ea341b5abb0)
* pipes.c:Luke Leighton1997-10-091-82/+1093
| | | | | | | | | added api_ntlsarpcTNP() function. hooray! smb.h: added LSA #defines needed by above function. (This used to be commit 5437f666987918516032cf8a5dada107e5d14d25)
* credentials.c:Luke Leighton1997-10-091-1/+189
| | | | | | | | | | | | | | | | | | | | | | | use UTIME structure (defined and commented in smb.h to be time, secs, since 01jan1970) pipes.c: another sub-function. util.c: added char *unistr2(uint16 *buff) function. same as unistr except it takes uint16* instead of char*. smbparse.c smb.h: more structure sorting. proto.h: the usual. (This used to be commit 72a86f514f0c92b69499718e63f5dd73ebece56e)
* bracket some macrosAndrew Tridgell1997-10-092-5/+9
| | | | | | | | | change MAX_PASSWORD_LENGTH to MAX_PASS_LEN to prevent conflict on some systems add #ifdef around soft link dependent code (for systems that don't have soft links) (This used to be commit e10ba4b97a219e87b62d32834bf15ed2e323ed2e)
* Put in fix for read-prediction extending files bug. Hard to test, can'tJeremy Allison1997-10-081-13/+26
| | | | | | get read-prediction to happen :-). Jeremy (jallison@whistle.com) (This used to be commit fa69b3dda47d56e0c3ce1f4f284eac89d4b4bf56)
* added a dummy function (space in front so make proto doesn't pick it up)Luke Leighton1997-10-081-1008/+20
| | | | | | | to call the unused static functions in pipes.c. avoids need to move #if UNDEFINED_NTDOMAIN about, to stop compiler warnings while code is being developed, but might be released as-is. (This used to be commit d7f41e3815babce58fa9901f076c2918666abaf9)
* Makefile: Split definitions for SGI4,5,6.Jeremy Allison1997-10-083-4/+165
| | | | | | | | | includes.h: Split definitions for SGI4,5,6. pipes.c: Moved Luke's #ifdef to remove warnings. quotas.c: Two changes for FreeBSD and SGI. server.c: Quota changes for large filesystems. Jeremy (jallison@whistle.com) (This used to be commit b8ff5543b9fa45095caa9f24aeb22a1dcc1cd308)
* added api_lsa_lookup_sids() functionLuke Leighton1997-10-081-3/+1071
| | | | (This used to be commit 35dd48740d8f733e7725813322b094b4679b31c5)
* loadparm.c proto.h:Luke Leighton1997-10-081-2/+138
| | | | | | | | | | | | | added lp_domainsid() lsaparse.c smb.h: debugging structures and parsing functions pipes.c: finally got to the functions that will go into the RPC switch statement. (This used to be commit d15aed8a9c58a7cc90befaee2d5a2752708f9327)
* updating lsaparse.c and smbparse.c in line with changes to pipes.c and smb.hLuke Leighton1997-10-081-4/+0
| | | | | from yesterday. (This used to be commit 0b7049fae25957851a7f33d2bd500d8ecefc1ad5)
* ipc.c: Added ERROR_MORE_DATA error if client buffer too small.Jeremy Allison1997-10-082-3/+12
| | | | | | | server.c: Allow admin_user on read only shares. I think this is safe but it needs looking at. Jeremy (jallison@whistle.com) (This used to be commit cc50955a2760f1de7e80b91408a7c0806f6eb44c)
* locking.c: Added fix for race condition in slow share mode code.Jeremy Allison1997-10-072-0/+33
| | | | | | | | | | lsaparse.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS. pipes.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS. server.c: Fixed last known oplock race condition. smb.h: Re-removed USE_OPLOCK defines - someone checked in an old version. smbparse.c: #ifdef'ed out code so this will compile - LUKE PLEASE CHECK THIS. Jeremy (jallison@whistle.com) (This used to be commit 1e1366ddc5542283a37debdf830ca139bbade1b0)
* pipes.c:Luke Leighton1997-10-071-18/+182
| | | | | | | | | | | | | more static unused functions in pipes.c for the LSA RPC stream. smb.h: corrections and altercations over the documentation lsaparse.c: reflecting alterations in LSA structures... (This used to be commit bef12478d212a950578843d6d4dece1f153bfd25)
* pipes.c:Luke Leighton1997-10-071-1/+237
| | | | | | | | | | | some routines to create LSA RPC packets. none of them are used. lsaparse.c: smbparse.c: smb.h: more tidy-up. (This used to be commit b37e21273e81b875876e8e8ddf6804714044ffd8)
* client.c: Changed shadowed variable.Jeremy Allison1997-10-062-31/+1
| | | | | | | | | | | | | | locking.c: Removed USE_OPLOCKS - now the default. params.c: Removed unused variable. proto.h: Updated. reply.c: Removed USE_OPLOCKS - now the default. server.c: Removed USE_OPLOCKS - now the default. smb.h: Removed USE_OPLOCKS - now the default. smbparse.c: Changed shadowed variable. status.c: Removed USE_OPLOCKS - now the default. util.c: Removed USE_OPLOCKS - now the default. Jeremy (jallison@whistle.com) (This used to be commit b93509846d6291771787af457500eec8984ee6bd)
* fix some "shadows global" errors.Andrew Tridgell1997-10-041-4/+4
| | | | (This used to be commit 25b7ada3587d1fe68164a2339d7f0fbcecf18e53)
* Race condition with multiple oplock break requests happensJeremy Allison1997-10-041-3/+2
| | | | | | | | more often than you might think (reproduced here with 4 clients and netbench :-). Raising debug log level for report from 1 to 3. Jeremy (jallison@whistle.com) (This used to be commit 23eeab7aa2e9c935e1f48ce3449544c03c1c899f)
* locking.c: Fixed incorrect parameter count in debug statements. May explainJeremy Allison1997-10-033-62/+63
| | | | | | | | | | | | | | | | | | | solaris crashes. reply.c: Added NT specific error code. Put oplock break code in correct place in reply_lockingX. server.c: Removed unneeded error mapping stuff. Fixed race condition in oplock code. trans2.c: Added NT specific error code. util.c: Added paranoia check in interpret_addr. Some core dumps reported here. Upped fcntl debug levels. Andrew. Please check the NT specific error code handling (search for the string "/* Ugly - NT specific hack - but needed (JRA) */", this makes NT and 95 clients behave correctly here - please check your Visual Basic apps with this code. Jeremy (jallison@whistle.com). (This used to be commit 97ee4a5f69bd9cfbbc8710a1a04d80db0ee40104)
* add "static" to a couple of functions that are only used locally.Andrew Tridgell1997-10-031-7/+6
| | | | | | set granted_oplock=False at the start of open_file(). This is paranoia. (This used to be commit c7f09ffd4a00ef7266e3f54536ee6aaca9335fb8)
* proto.h: Updated.Jeremy Allison1997-10-032-29/+47
| | | | | | | | | | | server.c: Updated after netbench observation. Oplocks must be broken *before* share modes are checked, not after. Netbench seems to be working now. smb.h: Added offsets for oplock break time fields. trans2.c: Upped debug messages. util.c: Upped debug messages. Jeremy (jallison@whistle.com) (This used to be commit bc4b70c566ed5fa926441fb64a0f756a6137d8d0)
* change a debug level in reply.cAndrew Tridgell1997-10-022-2/+2
| | | | | | | | | | | | | change from ERRbaddirectory to ERRbadpath for ENOTDIR errors. This reverts to the old Samba code. I've done quite a bit of testing against NT4 and have yet to get it to produce the ERRbaddirectory error code. Producing ERRbaddirectory made a visual basic application that was sent to me not run. This might explain some of the "it doesn't work any more" complaints we've got about 1.9.17. Jeremy, can you remember how you got NT to produce ERRbaddirectory? There might be some specific circumstances we need to cover. (This used to be commit 1ed901ddffef48cdce87017bab0fd613e6ca8637)