summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* creating NetShareEnum parsing / reply creation. compiles, but untested.Luke Leighton1997-10-193-25/+163
|
* Makefile :Luke Leighton1997-10-195-44/+285
| | | | | | | | | | | | | | | | | | | | | added srvparse.o and pipesrvsvc.o smb.h : mods to the Net Share Enum stuff srvparse.c : Net Share Enum parsing support. more srvsvc pipe parsing to go here... pipenetlog.c util.c: modified standard_sub_basic() so that you can set a global boolean and use a different string for the %U username substitution. proto.h: the usual.
* added the following structures:Luke Leighton1997-10-191-0/+67
| | | | | | | | | | | | | SH_INFO_1 SH_INFO_1_STR SHARE_INFO_1_CTR SRV_Q_NET_SHARE_ENUM SRV_R_NET_SHARE_ENUM the share info1 container can handle a maximum of 32 shares. the share info1 string structures contain two unicode strings, with 1024 uint16 characters _each_. we're going to _have_ to dynamically allocate the unicode strings, else we'll run out of stack space. rapidly.
* pipes.c pipesrvsvc.c :Luke Leighton1997-10-192-80/+113
| | | | | moved stub srvsvc pipe function into separate file, in preparation for further work.
* put the NT_STATUS_ALLOTTED_SPACE_EXCEEDED error in instead of 0x99.Luke Leighton1997-10-181-1/+2
| | | | whatever that means.
* After talking with Andrew added "interfaces only" parameter thatJeremy Allison1997-10-183-19/+13
| | | | | turns off the filtering on the broadcast socket by default. Jeremy (jallison@whistle.com)
* .cvsignore: Added make_smbcodepageJeremy Allison1997-10-1716-236/+454
| | | | | | | | | | | | | | | | | | | | interface.c: Added is_local_net(). locking.c: Added Fix for zero length share files from Gerald Werner <wernerg@mfldclin.edu> plus a race condition fix for the fix. nameannounce.c: Made function static. namedbresp.c: extern int ClientDGRAM removed - not used. namedbserver.c: extern int ClientDGRAM removed - not used. namedbsubnet.c: Added code to make sockets per subnet. namepacket.c: Added code to read from all sockets & filter. nameresp.c: extern int ClientDGRAM removed - not used. nameserv.c: Indentation tidyup :-). nameserv.h: Added sockets to struct subnet. nameservresp.c: Improved debug message. nmbd.c: Changed to terminte on listen_for_packets exiting. nmbsync.c: extern int ClientDGRAM & ClientNMB removed - not used. proto.h: The usual. util.c: Fixed debug message. Jeremy (jallison@whistle.com)
* Simply moved the #include for ubi_dLinkList.h from within dir.c toChristopher R. Hertel1997-10-172-2/+1
| | | | includes.h. More consistent with current practice.
* make_unihdr() was setting the length to 1/2 the required value.Luke Leighton1997-10-171-2/+2
|
* pipenetlog.c lsaparse.c smb.h :Luke Leighton1997-10-174-71/+90
| | | | | | SAM logon sorting. too many buffer pointers. added in the missing switch value (value of 3). dealing with the buffer pointers to the user info structure in a slightly different way.
* smbparse.c smb.h :Luke Leighton1997-10-175-6/+21
| | | | | | | | | | | | | uni_max_len and uni_str_len are the other way round, in UNIHDR. util.c : increased the show_msg() data size from 256 bytes to 512 bytes: the LSA SAM Logon response can be about 500 bytes long. pipenetlog.c : forgot to set the authoritative field to 1.
* set the wrong info level (0x0C00 0000 instead of 0xC000 0000) so thatLuke Leighton1997-10-171-1/+1
| | | | | nt got confused and thought that the server password had been set instead of refused. this is for the SRV_PWSET response.
* remove a spurious error message from nmbd. The message was:Andrew Tridgell1997-10-171-6/+0
| | | | | | | | | WINS server did not respond to name registration! this messages should only be produced when we are trying to register our own names, not when we are the one with the name database and we are doing a NAME_REGISTER_CHALLENGE on behalf of another host (for secured wins registration)
* fix the handling of negative name query responses and the handling ofAndrew Tridgell1997-10-171-20/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | packets with no answer section in general. The fix has 2 parts: 1) set ans_name to the name we queried if nmb->answers == NULL 2) check for nmb->answers == NULL in several other places where we currently check for nmb->answers->data While doing this, I noticed there are lots of places in our nmbd code where we make assumptions about the packets being well formed. Someone could easily implement a denial of service attack on nmbd by sending a packet that causes a null pointer dereference. Does anyone feel like going through the code and adding checks? Probably the best solution is to have a single function that "validates" a packet, making sure that all the required fields are there. This will be a bit tricky as what fields are required varies a lot between packets. A first pass would be a function that prints "SUSPECT PACKET" when it hits a packet that it suspects does not have a required field (or the field is badly formatted), then we could use this on a live system to find any cases we've missed. Any takers?
* added -a "append log" optionAndrew Tridgell1997-10-171-1/+7
|
* smb.h :Luke Leighton1997-10-162-20/+32
| | | | | | | | | | | id_info_1 has a pointer at the front of it. so does return credentials, and so does the client credentials. these are all from the sam logon. auth_level is 16 bytes not 32 and is actually called a switch_level. smbparse.c : smb_io_unihdr() - uni_max_len and uni_str_len are 16 bytes not 32. this may have a knock-on effect on smb_in_unihdr2() but we'll see...
* dealing with some stack overflow bug somewhere around the use ofLuke Leighton1997-10-161-10/+12
| | | | | | | deal_with_credentials() by moving important code to the beginning of the function :-) :-) :-). the new seed (old_cred + time + 1) was getting corrupted.
* inside the auth 2 response bits, i wasn't storing the received clientLuke Leighton1997-10-161-3/+3
| | | | | | | credentials for the calculation of the next credentials: i was storing the auth 2 calculated credentials. oops.
* add ERRDOS/67 ERRnosuchshare to the client.c list of error stringsAndrew Tridgell1997-10-161-0/+1
|
* Added Michael Johnsons' PAM modifications <johnsonm@redhat.com>John Terpstra1997-10-161-12/+12
| | | | This patch has been checked over. JHT
* fixed the problem that browsing breaks if you put quote marks aroundAndrew Tridgell1997-10-161-0/+2
| | | | | | | | | | | | | | | | | | | | the server string option. I fixed it by adding: trim_string(ret, "\"", "\"") to lp_string() which means that it removes leading and trailing quotes from _all_ strings in smb.conf. I think this is what we want as I can't actually think of any case where quoted strings are needed. I suspect that this fix will actually fix browsing at quite a few sites. It's not uncommon to see people putting "" marks around the workgroup name or other essential strings. The real reason it was causing browsing to fail is that the browse.dat file uses " to delimit fields, which means that it wasn't being parsed correctly. It would be nice to use a proper database format in browse.dat sometime. In fact, we really need a generic database type subsystem in Samba to replace the mish-mash we currrently use (browse.dat, wins.dat, smbpasswd etc)
* Moved the LGPL from the ubiqx directory into the samba root directoryChristopher R. Hertel1997-10-162-501/+0
| | | | | | and renamed it COPYING.LGPL. This is because the ubi_* files are under LGPL, not regular GPL. Removed the last few things from the ubiqx directory and deleted it.
* Don't need it any more.Christopher R. Hertel1997-10-161-37/+0
|
* 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 code manages a simple doubly-linked list.Christopher R. Hertel1997-10-162-0/+324
|
* I got fed up trying to put the tree and list stuff into a subdirectory,Christopher R. Hertel1997-10-1611-4206/+0
| | | | so I've started to move them into the main directory.
* ipc.c: Adding Andrews become_root code to the main branch.Jeremy Allison1997-10-158-52/+125
| | | | | | | | | | | 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)
* smb.h smbparse.c pipenetlog.c :Luke Leighton1997-10-157-21/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added ubi_sLinkList module which manages simple singly-linked lists.Christopher R. Hertel1997-10-153-1/+241
|
* added srvsvc basic pipe, straight from paul's code. does NETSHAREENUMLuke Leighton1997-10-154-0/+91
| | | | and NETSERVERGETINFO.
* the usual proto.h updateAndrew Tridgell1997-10-151-2/+4
|
* add the port number to a debug statementAndrew Tridgell1997-10-151-2/+2
|
* added loopback_ip. This is used to detect packets from ourselvesAndrew Tridgell1997-10-151-0/+2
|
* fixed the freeze on logout bug. The fix has several parts:Andrew Tridgell1997-10-1511-24/+40
| | | | | | | | | | | | | | | | | | 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
* fixed a stack overflow bug in api_lsa_req_chal()Andrew Tridgell1997-10-152-5/+5
| | | | | | | | | | changed the order of arguments to smbhash() in credentials.c. Luke, when you changed from E1() to smbhash() you didn't notice that the arguments are in a different order. This is why your new code was failing. NT logon still fails, but now gets to SAMLOGON. It shouldn't take much to get it working now.
* 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
* These are the ubiqx modules, as included with the Samba distribution.Christopher R. Hertel1997-10-152-16/+51
| | | | Updated the linked list module, which has new and changed macros.
* First draft of a README file to explain the origins of the "ubiqx" code.Christopher R. Hertel1997-10-151-0/+20
|
* Added a very small piece of documentation to describe the binary treeChristopher R. Hertel1997-10-141-0/+24
| | | | modules.
* pipentlsa.c :Luke Leighton1997-10-142-8/+16
| | | | | | | | lsa close odd bug. smbparse.c : smb_io_dom_sid() _does_ need 4-byte alignment before it.
* Added a copy of the LGPL to the samba/ubiqx/ directory.Christopher R. Hertel1997-10-141-0/+481
|
* byteorder.h:Luke Leighton1997-10-144-11/+20
| | | | | | | | | | | | | | | | | | | 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-148-78/+72
|
* changed *(uint32*)(clnt_cred) to SIVAL(clnt_cred, ....)Luke Leighton1997-10-141-1/+4
|
* Broke my own rule about checking in uncompiled source :-(.Jeremy Allison1997-10-141-1/+1
| | | | Jeremy.
* Added fixes for become_user braindamage.Jeremy Allison1997-10-141-4/+20
| | | | Jeremy (jallison@whistle.com)
* another alignment of client challenge: this one in lsa_io_q_auth_2().Luke Leighton1997-10-131-1/+2
| | | | there are going to be a few of these...
* lsa_io_r_req_chal() - challenge is not 4-byte aligned after the unicodeLuke Leighton1997-10-131-1/+3
| | | | strings.
* put a check around become_user(). doesn't authenticate the user, but doesn'tLuke Leighton1997-10-131-1/+5
| | | | quit the whole pipe, either...
* resolving some of the confusion over credentials.Luke Leighton1997-10-131-7/+10
|