summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* the usual proto.h updateAndrew Tridgell1997-10-151-2/+4
|
* fixed the freeze on logout bug. The fix has several parts:Andrew Tridgell1997-10-151-0/+1
| | | | | | | | | | | | | | | | | | 1) add a new parameter to queue_netbios_packet(), the "reply_id", this is the id that should be used when sending a further response to the packet (such as a response after we get back a reply to a name query after senidnga WACK). reply_id is 0 (meaning unused) in most cases. 2) fix the id used in the reply in add_name_respond() from response_name_query_register() 3) remember to remove the response record at the end of response_name_query_register() 4) get the right IP address (it was 0.0.0.0) in response_name_query_register() 5) add a new field reply_id to struct response_record
* byteorder.h:Luke Leighton1997-10-141-2/+13
| | | | | | | | | | | | | | | | | | | created a RW_PIVAL macro which was missing. smbparse.c: smb_io_dom_sid() was storing its sub-authorities as uint16s instead of uint32s. used the DBG_RW_PIVAL macro instead of DBG_RW_PSVAL. pipentlsa.c: not sure. something to do with the Query Info reply. pipeutil.c: make_rpc_reply() had the packed representation field set to 0x0100 0000 instead of 0x1000 0000, which had the interesting result of turning all uint32 and uint16 field byte ordering the other way round!
* credentials, query info reply.Luke Leighton1997-10-143-10/+9
|
* split pipes.c down into util, netlog and ntlsa.Luke Leighton1997-10-131-7/+29
|
* debug info addedLuke Leighton1997-10-131-7/+7
|
* byteorder.h :Luke Leighton1997-10-131-2/+2
| | | | | | | | | | | | 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.
* getting somewhere.Luke Leighton1997-10-122-28/+28
| | | | | | | | | | 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.
* updated rpc header reply: callid wrong; alloc hint a uint32 not a uint16.Luke Leighton1997-10-121-1/+1
| | | | still doesn't get rid of the netlogon trans2 request with zero data.
* ipc.c:Luke Leighton1997-10-121-1/+1
| | | | | | | | | | | | 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.
* added debugging macros (suitable eventually for use in tcpdump, hopefully)Luke Leighton1997-10-122-18/+48
|
* namelogon.c :Luke Leighton1997-10-112-0/+8
| | | | | | | | | | | | | | | | added NTLOGON. (fixed the case 0:) namepacket.c: call to NTLOGON mailslot nameserv.h defines for NETLOGON and NTLOGON mailslot util.c: added andrew's dump_data() function.
* the usualLuke Leighton1997-10-101-1/+4
|
* added lsa_reply_srv_pwset()Luke Leighton1997-10-101-1/+1
|
* ipc.c :Luke Leighton1997-10-101-1/+1
| | | | | | | | | | | | | | | | | | #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.
* Makefile:Luke Leighton1997-10-102-8/+52
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* nmblookup.c: Added -A ability to do status on ip address.Jeremy Allison1997-10-101-19/+34
| | | | | | | | 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)
* local.h: Fix spelling mistake :-).Jeremy Allison1997-10-091-1/+1
| | | | | | | | 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)
* added #ifdef NTDOMAIN. added call to api_ntLsarpc instead of api_LsarpcLuke Leighton1997-10-091-0/+4
| | | | in ipc.c iff NTDOMAIN is defined.
* moved the array macros outside of the CAREFUL_ALIGNMENT define.Luke Leighton1997-10-091-2/+9
|
* pipes.c:Luke Leighton1997-10-091-0/+38
| | | | | | | | added api_ntlsarpcTNP() function. hooray! smb.h: added LSA #defines needed by above function.
* credentials.c:Luke Leighton1997-10-092-5/+4
| | | | | | | | | | | | | | | | | | | | | | 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.
* bracket some macrosAndrew Tridgell1997-10-092-5/+5
| | | | | | | | 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)
* Makefile: Split definitions for SGI4,5,6.Jeremy Allison1997-10-081-2/+2
| | | | | | | | 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)
* loadparm.c proto.h:Luke Leighton1997-10-082-3/+6
| | | | | | | | | | | | 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.
* locking.c: Added fix for race condition in slow share mode code.Jeremy Allison1997-10-071-15/+0
| | | | | | | | | 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)
* pipes.c:Luke Leighton1997-10-071-4/+5
| | | | | | | | | | | | 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...
* pipes.c:Luke Leighton1997-10-072-16/+32
| | | | | | | | | | some routines to create LSA RPC packets. none of them are used. lsaparse.c: smbparse.c: smb.h: more tidy-up.
* get rid of SIGCLD_IGNORE for HPUX. A user reported it causing lotsAndrew Tridgell1997-10-071-1/+3
| | | | | | of defunct smbd processes. Andrew
* client.c: Changed shadowed variable.Jeremy Allison1997-10-062-21/+7
| | | | | | | | | | | | | 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)
* lsaparse.c smb.h: added 32 bit "return status" to the response structures.Luke Leighton1997-10-062-0/+20
|
* Makefile: added lsaparse.c and smbparse.cLuke Leighton1997-10-062-2/+20
| | | | | lsaparse.c, smbparse.c, smb.h: more functions / structures. proto.h: the usual.
* updating lsa and smb parsing routines and structures.Luke Leighton1997-10-052-6/+49
|
* smb.h:Luke Leighton1997-10-051-4/+373
| | | | | | | | | | | added more structures, this time for the use in the query and response of the LSA_XXXX functions. next target: the NTLOGON mailslots (10 minutes work). smbparse.c: tidying. adding some more sub-structure functions.
* proto.h:Luke Leighton1997-10-042-3/+16
| | | | | | | | | | | | | | | | | | | - recreated, as usual. smb.h: - added RPC_HDR structure - the 18 byte MSRPC header smbparse.c: - added smb_io_rpc_hdr() function to read/write the RPC_HDR structure. util.c: - added align2, align4, align_offset functions. - added skip_unicode_string, unistrcpy, unistrncpy functions. - modified unistrcpy and unistrncpy to return the number of unicode characters returned, effectively making skip_unicode_string redundant.
* added some RW_XXXX wrapper macros with an extra i/o argument, to call XXXXLuke Leighton1997-10-041-0/+49
| | | | | | | | | or SXXXX as appropriate. added some for-loop pointer macros that will do a batch of data into a (fixed length) buffer. no length validation is done in the macro itself. note: there are some CAREFUL_ALIGNMENT macros missing. i think.
* added structures readable and writeable by smbparse.c routines into and outLuke Leighton1997-10-041-0/+182
| | | | of SMB or Mailslot packets.
* This is all the NT error codes less than 1000. I extracted them usingAndrew Tridgell1997-10-041-0/+505
| | | | | | | smbclient+netmon If we want to start supporting NT error codes in Samba (which may be forced upon us by buggy apps) then this is a good start.
* add "static" to a couple of functions that are only used locally.Andrew Tridgell1997-10-031-3/+0
| | | | | set granted_oplock=False at the start of open_file(). This is paranoia.
* proto.h: Updated.Jeremy Allison1997-10-032-6/+8
| | | | | | | | | | 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)
* change the semantics of hosts allow/hosts deny so that a globalAndrew Tridgell1997-10-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | setting applies to all shares regardless of any settings on other shares. This allows us to immediately drop a connection if it does not come from a allowed host, without even parsing the first SMB packet. The next time we get a nasty security hole we can offer people the option of just setting their hosts allow line. If we drop a connection in this way we generate a "Not listening for calling name" response and then exit. add a per share "oplocks" option in smb.conf. I think its important to be able to disable oplocks on a per-share basis as there are occasions then they are definately not wanted, for example when sharing data between a windows box and a unix application. This also allows us to tell people "try disabling oplocks" when diagnosing problems. fix a bug in process_smb(). It was taking the length of the packet from outbuf, not inbuf (this bug was introduced with the oplocks code). Jeremy, I assume this wasn't deliberate?
* OPLOCK CHECK-IN - oplocks are now *OPERATIONAL* !!!!Jeremy Allison1997-10-013-3/+5
| | | | | | | | | | | | | | | Yipeee. At least as far as I can check in a short time :-). local.h: Changed OPLOCK_BREAK_TIMEOUT to 30 seconds. locking.c: Big changes to delete oplocks on a share mode entry. proto.h: updated. reply.c: Added oplock break code in lockingX reply & readbraw reply. server.c: Add batch oplock code. Force server shutdown if client fails to respond to oplock break. smb.h: Fix silly slow share mode oplock define bug. status.c: Add oplock status info. Jeremy (jallison@whistle.com)
* dir.c: more pstrcpys.Jeremy Allison1997-09-303-1/+52
| | | | | | | | | | | local.h: Add OPLOCK_BREAK_TIMEOUT. password.c: Fix for paranoia password server security bug. proto.h: Updated. reply.c: Oplock changes. server.c: Massive oplock changes - nearly there.... smb.h: oplock definitions. util.c: Add local message processing queues for oplocks. Jeremy (jallison@whistle.com)
* Syncing up current oplock work in progress. #ifdef'ed outJeremy Allison1997-09-262-8/+52
| | | | | so should have no effect on other work. Jeremy (jallison@whistle.com)
* Adding Andrews buffer overflow fixes into the main branch.Jeremy Allison1997-09-261-0/+2
| | | | Jeremy (jallison@whistle.com)
* Added missing slow share mode offset defines. SomehowJeremy Allison1997-09-251-0/+34
| | | | | they got lost. Jeremy (jallison@whistle.com).
* Makefile: Removed earlier errors.Jeremy Allison1997-09-253-6/+18
| | | | | | | | | | | includes.h: Added INADDR_LOOPBACK define. locking.c: More code to support oplocks. proto.h: Updated. server.c: More code to support oplocks. Moved processing of an SMB out of process() into a separate function so it is easier to call from an oplock break. smb.h: Added oplock fields. Jeremy (jallison@whistle.com)
* Checkin to sync up oplock development code so that NTJeremy Allison1997-09-232-1097/+11
| | | | | | | | | | | | | domain development code won't diverge. Makefile: Fixed make proto (again). Added GLIBC2 fixes for Linux. includes.h: Added GLIBC2 fixes for Linux. proto.h: Much tidier. quotas.c: OSF/1 quota fix. reply.c: Fix from Ray Frush <frush@engr.colostate.edu> for zero NT timestamps. server.c util.c: First oplock checkin - nowhere near finished so bracketed with #ifdef USE_OPLOCKS. Done to make sync with NT domain code easier. Jeremy (jallison@whistle.com)
* added code from Philip A Prindeville <philipp@enteka.com> which expandsLuke Leighton1997-09-231-0/+3
| | | | | | | | the interfaces option to this: "interfaces = le0 le1" or "interfaces = all". it uses SIOCGIFxxxx ioctl calls.
* Makefile: Changed proto: target to not include c files not used currently.Jeremy Allison1997-09-191-53/+1098
| | | | | | | | | | | Caused proto.h to be from a sorted list of C files. arcfour.h: Added prototypes. client.c: Added username%password in environment patch from John Blair <jdblair@frodo.tucc.uab.edu> loadparm.c: Added username manipulation code from Peter McCool [SMTP:peter@qimr.edu.au] username.c: Added username manipulation code from Peter McCool [SMTP:peter@qimr.edu.au] mkproto.awk: Added arc4_key type. proto.h: Updated & sorted. Jeremy (jallison@whistle.com)