summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* Modified Files:Christopher R. Hertel1997-11-073-244/+319
| | | | | | | | | | | | | | | | | | | | | | | | mangle.c server.c proto.h mangle.c I am planning to replace the mangled_stack array with a proper stack, but found many style inconsistencies (no, really). As you might expect, I have standardized on my own preferences. ;) I also found a potential problem in create_mangled_stack (which I've renamed as reset_mangled_stack). If the stack size were passed into the function as 0 or less, there was the possibility that the array would have been freed twice. I doubt that this ever happens, but I don't like to leave holes. Of course, the fix will be irrelevent once I replace the array with a linked-list-based stack. server.c Changed the call to create_mangled_stack() to a call to reset_mangled_stack(). proto.h Regenerated to match the above changes. (A real comment! How unusual!)
* ipc.c: Changing back arbitrary alignment change until I know *why*Jeremy Allison1997-11-062-2/+2
| | | | | | | | luke changed it. proto.h: The usual. uid.c: Fix crash bug when attaching with smbclient -mCORE. A vuid pointer was being used when it was null. Jeremy.
* following a cvs error, i am rewriting this monster-commit. with bad grace.Luke Leighton1997-11-0612-123/+755
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified Files: --------------- Makefile: adding extra files ipc.c : send_trans_reply() - alignment issue. this makes the alignment the same as that in NT. this should be looked at by people who understand the SMB stuff better than i. api_fd_commands[] - added samr and wkssvc pipes. loadparm.c : lp_domain_controller() changed to mean "samba is a domain controller". it's a "yes/no" parameter, now. no, it isn't used _anywhere_. namedbwork.c nameelect.c : if "domain controller = yes" then add SV_TYPE_DOMAIN_CTRL to the host _and_ workgroup announcements. yes, you must do both: nt does. namelogon.c : important NETLOGON bug in SAMLOGON request parsing, which may be the source of some people's problems with logging on to the Samba PDC. password.c : get_smbpwnam() renamed to get_smbpwd_entry(). pipes.c : added samr and wkssvc pipes. proto.h : usual. can we actually _remove_ proto.h from the cvs tree, and have it as one of the Makefile dependencies, or something? reply.c : get_smbpwnam() renamed to get_smbpwd_entry() - also changed response error code when logging in from a WORKSTATION$ account. yes, paul is right: we need to know when to return the right error code, and why. server.c : added call to reset_chain_pnum(). #ifdef NTDOMAIN added call to init_lsa_policy_hnd() #endif. jeremy, you'd be proud: i did a compile without NTDOMAIN, and caught a link error for this function. smb.h : defines and structures for samr and wkssvc pipes. smbpass.c : modified get_smbpwnam() to get_smbpwd_entry() and it now takes two arguments. one for the name; if this is null, it looks up by smb_userid instead. oh, by the way, smb_userids are actually domain relative ids (RIDs). concatenate a RID with the domain SID, and you have an internet globally unique way of identifying a user. we're using RIDs in the wrong way.... added mod_smbpwnam() function. this was based on code in smbpasswd.c rpc_pipes/lsaparse.c : added enum trusted domain parsing. this is incomplete: i need a packet trace to write it properly. rpc_pipes/pipe_hnd.c : added reset_chain_pnum() function. rpc_pipes/pipenetlog.c : get_smbpwnam() function renamed to get_smbpwd_entry(). arcfour() issues. removed capability of get_md4pw() function to automatically add workstation accounts. this should either be done using smbpasswd -add MACHINE$, or by using \PIPE\samr. rpc_pipes/pipe_util.c : create_pol_hnd() - creates a unique LSA Policy Handle. overkill function: uses a 64 bit sequence number; current unix time and the smbd pid. rpc_pipes/smbparse.c : arcfour() issues. smb_io_unistr2() should advance by uni_str_len not uni_max_len. smb_io_smb_hdr_rb() - request bind uses uint16 for the context id, and uint8 for the num_syntaxes. oops, i put these both as uint32s. Added Files: ------------ rpc_pipes/lsa_hnd.c : on the samr pipe, allocate and associate an LSA Policy Handle with a SID. you receive queries with the LSA Policy Handle, and have to turn this back into a SID in order to answer the query... rpc_pipes/pipesamr.c rpc_pipes/samrparse.c \PIPE\samr processing. samr i presume is the SAM Replication pipe. rpc_pipes/pipewkssvc.c rpc_pipes/wksparse.c \PIPE\wkssvc processing. the Workstation Service pipe? holy cow.
* local.h: Added OPLOCK_BREAK_TIMEOUT_FUDGEFACTOR.Jeremy Allison1997-11-062-35/+51
| | | | | | | | proto.h: The usual. server.c: Added timestring() messages to oplock logs. Added fix to allow file open processing to continue is an oplock break message times out. Jeremy.
* change from %D to %m/%d/%Y in timestring(). This doesn't really matterAndrew Tridgell1997-11-061-4/+4
| | | | | | as it is only for logging but it will prevent people from writing in to say that we are not y2k compliant after running auto-diagnostic tests.
* no asm/signal.h for linux as this is not portableAndrew Tridgell1997-11-063-4/+5
| | | | | | add auto username from LOGNAME for smbtorture proto fix in ufc.c
* Change to always register the WORKGROUP<1e> name as does Win95.Jeremy Allison1997-11-051-4/+2
| | | | Jeremy.
* add NO_SEMUN for HPAndrew Tridgell1997-11-051-0/+1
| | | | | | | | I really wish you could say #ifndef "struct foo_struct" in C :-)
* smb.h :Luke Leighton1997-11-041-1/+1
| | | | | | | | | | | LSA_OPENSECRET and three other unknown #defines are commented as not being the real defines for these!!! rpc_pipes/pipenetlog.c : USE_ARCFOUR for Server Password Set. and then ignore the password (agh!) this will *fail* to do logins, by the way. i need to add a routine to update the smb password (next job).
* Rolling back the filesJeremy Allison1997-11-035-174/+52
| | | | | | | | | | | | | | | | loadparm.c : to equivalent to version 1.67 reply.c : to equivalent to version 1.69 server.c : to equivalent to version 1.122 util.c : to equivalent to version 1.98 to remove the incorrect changes. proto.h: The usual. rpc_pipes/smbparse.c : Backeting stuff that SHOULD NOT BE IN THE none-NTDOMAIN build ! Jeremy.
* added code that _uses_ arcfour. arcfour itself, or anything remotelyLuke Leighton1997-11-033-5/+26
| | | | | | | like it, has *not* been added. this is the client and server side of the SAM Logon NT and LM OWF password obfuscation (rc4 with the long-term session key).
* preparing for release of 1.9.18alpha11Samba Release Account1997-11-021-1/+1
|
* Christian Lademann's contribution: new capabilities in smb.conf.Luke Leighton1997-11-025-52/+174
| | | | | | | | | | | | '<' and '|' characters indicate read file and execute command respectively, and feed the output into the parameter (!!!). '<$' and '|$' means run standard_sub_basic() on them. this is going to be fun to document in smb.conf.5.... also, Christian created a new "online" service parameter. services can be taken "off-line"....
* loadparm.c :Luke Leighton1997-11-023-5/+233
| | | | | | | | | | | | | | | | | | | | added "domain hosts allow" and "domain hosts deny". these are to be used to specify which workstations can log in to a samba PDC from. it is also used to check whether to add an initial machine password into the smbpasswd database or not smbpass.c : added capability to add a machine password to the smbpasswd database. ***** the default uid is zero ***** rpc_pipes/pipenetlog.c : use of "domain hosts allow/deny" parameters to allow login access. proto.h : usual.
* fix some uchar/char conflictsAndrew Tridgell1997-11-022-4/+4
|
* convert the credentials code back to uchar[8] from uint32[2]Andrew Tridgell1997-11-025-63/+61
| | | | This should fix the byte order problems (maybe!)
* got rid of redundent rpc_pipes/rpc_proto.hAndrew Tridgell1997-11-021-1/+0
|
* fix commentsAndrew Tridgell1997-11-021-9/+2
|
* to avoid any possibility of the pipe getting full and blocking we nowAndrew Tridgell1997-11-021-27/+58
| | | | | only allow one query in the async dns pipe at a time. The others are queued in the parent.
* don't print the progress so often - it slows down the client too muchAndrew Tridgell1997-11-011-1/+3
|
* minor async DNS cleanupsAndrew Tridgell1997-11-012-7/+6
| | | | | | - start it earlier - set DEBUGLEVEL to -1 to prevent any debug calls in child - exit with _exit() to prevent logfile corruption
* preparing for release of 1.9.18alpha10Samba Release Account1997-11-011-1/+1
|
* client.c clientutil.c proto.hLuke Leighton1997-11-014-28/+32
| | | | | | | | | | | | | | | | | rpc_pipes/ntclientlsa.c rpc_pipes/ntclientnet.c rpc_pipes/ntclientpipe.c : added extra argument to cli_call_api() to allow specifying the length of the \PIPE\ name. it appears that, like when the name of the pipe is NULL and OS-2 requires two extra bytes _after_ the NULL name, that NT requires two bytes after the NULL-terminated name "\PIPE\". these two bytes vary, but values seen so far are: 0x72 0x70; 0x63 0x65; 0x44 0x65; 0x4E 0x00. there appears not to be much logic to this. purpose unknown. ntclient.c: put Set Named Pipe Handle State call directly after SMBopenX call.
* set O_CREAT on lock fileAndrew Tridgell1997-11-011-1/+2
|
* a simple SMB torture tester. This will allow us to evaluate lockingAndrew Tridgell1997-11-018-168/+847
| | | | techniques more accurately.
* change a debug levelAndrew Tridgell1997-11-011-3/+3
|
* don't use SEM_UNDO because of ridiculously small undo limits on someAndrew Tridgell1997-11-011-1/+25
| | | | OSes. Instead add explicit checks for dead locks at startup.
* some locking code cleanupsAndrew Tridgell1997-11-014-241/+222
|
* re-initialise the timezone on each new connection. This means youAndrew Tridgell1997-11-011-0/+3
| | | | don't need to restart smbd after a DST change.
* change from * to ^ in hashing of device/inode. Using * meant that ifAndrew Tridgell1997-10-311-1/+1
| | | | | | the device number happened to divide the number of hash buckets we would only use a small fraction of the hash buckets, which would slow things down.
* define NO_SEMUN for svr4Andrew Tridgell1997-10-311-0/+1
|
* OSF1 doesn't define union semun either.Andrew Tridgell1997-10-311-8/+9
|
* pm_process() never closed the file (a memory and file descriptor leak)Andrew Tridgell1997-10-311-0/+3
|
* no Makefile needed here eitherAndrew Tridgell1997-10-311-26/+0
|
* removing the files that are now in rpc_pipesAndrew Tridgell1997-10-3110-10/+0
| | | | | | | | For future reference, if you want to move files about then don't do it this way. The history info is lost. Instead contact me first and tell me what you want moved and why. Then I'll decide if we can do it while retaining the history info.
* - cleanup some warningsAndrew Tridgell1997-10-313-20/+210
| | | | - redo the prototypes
* blanked out these files, so that if someone does make proto, they don'tLuke Leighton1997-10-3010-4906/+0
| | | | | | | interfere with the files in the rpc_pipes/ directory. andrew doesn't want to lose any cvs history by moving files around, so he's going to look into that tomorrow.
* added a client-side "set named pipe handle state" function. not knownLuke Leighton1997-10-301-4/+18
| | | | | exactly when you call this (before or after a bind). can sort that out later.
* storing pipe name state (from set named pipe handle state call) in theLuke Leighton1997-10-303-23/+21
| | | | pipes array.
* Modified Files:Christopher R. Hertel1997-10-3013-9/+4180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ubiqx/Makefile ubiqx/README.UBI Added new modules to the Makefile. Changed the text of the README to reflect the directory change. Added Files: ubiqx/ubi_AVLtree.c ubiqx/ubi_AVLtree.h ubiqx/ubi_BinTree.c ubiqx/ubi_BinTree.h ubiqx/ubi_SplayTree.c ubiqx/ubi_SplayTree.h ubiqx/ubi_StackQueue.c ubiqx/ubi_StackQueue.h ubiqx/ubi_sLinkList.c ubiqx/ubi_sLinkList.h This is the remainder of the toolkit. A quick rundown: sLinkList = A simple singly-linked list. StackQueue = Implements both a stack and a queue. dLinkList = (Not added 'cause it's already there.) A doubly-linked list. BinTree = Base level binary tree module. (No height balancing, just the basics.) AVLtree = Descendant type of BinTree. Implements a height-balanced (AVL) binary tree. SplayTree = Descendant type of BinTree. Implements a splay-balanced binary tree. Renamed Files: ubiqx/COPYING.LGPL ==> ubiqx/COPYING.LIB This matches the naming that GNU suggests.
* Makefile:Luke Leighton1997-10-304-78/+20
| | | | | | | | | | | | simply adding pipes.o to SMBDOBJ3. rpc_pipes/pipe_hnd.c : created pipe handles module. pipes.c server.c : use of pipe_hnd functions in SMBopenX and SMBclose, on the IPC$ pipe.
* Makefiles for libraries. the dependencies aren't quite right, and iLuke Leighton1997-10-304-211/+58
| | | | | | | don't know how to sort them. make proto in each library directory. over-ride the make proto for ubiqx, so that it doesn't happen, but throws up a warning instead.
* Chris will be pleased to know that mkproto.awk no longer runs on theAndrew Tridgell1997-10-301-3/+0
| | | | ubiqx files :-)
* moved ubi_ modules back into the ubiqx directory.Andrew Tridgell1997-10-305-2/+498
| | | | | | | | I've added a very simple (and portable) method for having separate source directories. This should also help when we add directories for the various ports. A unix directory would make sense.
* preparing for release of 1.9.18alpha9Samba Release Account1997-10-301-1/+1
|
* removed mechanism that created actual files NETLOGON, lsarpc and the like,Luke Leighton1997-10-308-83/+122
| | | | | | | | which are pipes on the IPC$ connection. created mechanism to record pipe names in a separate pipes_struct. it is planned to expand this, to return sensible things like interface structures, and policy handles (RPC_IFACE and LSA_POL_HND). and the like.
* preparing for release of 1.9.18alpha8Samba Release Account1997-10-291-1/+1
|
* byteorder.h :Luke Leighton1997-10-292-4/+6
| | | | | | | | have another go at reporting stuff the right way round (on SPARCs) srvparse.c : copyright messages
* zero data parameter being passed to smb_io_rpc_hdr(), which couldn't cope.Luke Leighton1997-10-291-1/+1
|
* typecast in calls to print_asc() wrongLuke Leighton1997-10-291-3/+3
|