summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* added two more sets of tests to the smbtorture test. The tests I addedAndrew Tridgell1997-11-081-0/+1
| | | | | | | | | | | | | | | | | are ones that I know Samba fails. They are: 1) correct support for retaining locks over a close (ie. the server must not use posix semantics) 2) support for lock timeouts 3) the server supports multiple locking contexts on the one SMB connection, distinguished by PID. 4) the server correctly fails overlapping locks made by the same PID (this goes against POSIX behaviour, which is why it is tricky to implement) 5) the server denies unlock requests by an incorrect client PID I've been discussing with Jeremy ways that we can re-implement the locking code to handle these correctly. This test code will be useful to see that we have got it right.
* local time discrepancies between the date on my computer and the date onLuke Leighton1997-11-071-2/+2
| | | | | | | | | | | | | | | | chris' computer (probably about four minutes) meant that chris' commits didn't get downloaded when i did a cvs update. therefore, i did a cvs update; make proto; cvs commit, and still got problems. so, five minutes later, i do a cvs update, and _then_ chris' server.c and mangle.c mods get downloaded, and i have to do another make proto. this particular problem has hit us *really* badly in the past, because i was taking files home (onto a portable that i hadn't reset the time on since i went to the states) and then recopying them back onto the computer here. if i do this, i do a touch *.c *.h; cvs -t update. *then* a cvs commit.
* ipc.c :Luke Leighton1997-11-072-40/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added a #define around the alignment thing: it's a way to stop NetMonitor from decoding your packets!!!! proto.h : usual. reply.c : added what i believe to be the correct error messages for getting correct domain joining. smb.h : some guesses at good names of the SAMR_XXXX functions. sorting out the SAMR_LOOKUP_RIDS function. this is *not* the same as the LSA_LOOKUP_RIDS function, unless paul accidentally put it on the ntlsa pipe by mistake, instead of the samr pipe :-) rpc_pipes/lsa_hnd.c rpc_pipes/pipe_hnd.c : moved creation and allocation of unique policy handles into this module. rpc_pipes/pipesamr.c rpc_pipes/samrparse.c rpc_pipes/smbparse.c : SAMR_LOOKUP_RIDS is beginning to look _suspiciously_ like the LSA_LOOKUP_RIDS function. but i know that there are subtle discrepancies.
* Modified Files:Christopher R. Hertel1997-11-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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!)
* following a cvs error, i am rewriting this monster-commit. with bad grace.Luke Leighton1997-11-062-65/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-061-1/+5
| | | | | | | | 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.
* no asm/signal.h for linux as this is not portableAndrew Tridgell1997-11-061-3/+0
| | | | | | add auto username from LOGNAME for smbtorture proto fix in ufc.c
* 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-031-4/+0
| | | | | | | | | | | | | | | | 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-031-1/+2
| | | | | | | 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-021-0/+4
| | | | | | | | | | | | '<' 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-021-1/+3
| | | | | | | | | | | | | | | | | | | | 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-021-2/+2
|
* convert the credentials code back to uchar[8] from uint32[2]Andrew Tridgell1997-11-022-14/+14
| | | | This should fix the byte order problems (maybe!)
* got rid of redundent rpc_pipes/rpc_proto.hAndrew Tridgell1997-11-021-1/+0
|
* preparing for release of 1.9.18alpha10Samba Release Account1997-11-011-1/+1
|
* client.c clientutil.c proto.hLuke Leighton1997-11-011-2/+3
| | | | | | | | | | | | | | | | | 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.
* a simple SMB torture tester. This will allow us to evaluate lockingAndrew Tridgell1997-11-011-2/+15
| | | | techniques more accurately.
* some locking code cleanupsAndrew Tridgell1997-11-011-3/+0
|
* define NO_SEMUN for svr4Andrew Tridgell1997-10-311-0/+1
|
* OSF1 doesn't define union semun either.Andrew Tridgell1997-10-311-8/+9
|
* - cleanup some warningsAndrew Tridgell1997-10-311-17/+209
| | | | - redo the prototypes
* storing pipe name state (from set named pipe handle state call) in theLuke Leighton1997-10-301-4/+1
| | | | pipes array.
* Makefile:Luke Leighton1997-10-301-0/+13
| | | | | | | | | | | | 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-302-211/+7
| | | | | | | 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-301-1/+1
| | | | | | | | 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-302-1/+4
| | | | | | | | 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-291-3/+3
| | | | | | | | have another go at reporting stuff the right way round (on SPARCs) srvparse.c : copyright messages
* typecast in calls to print_asc() wrongLuke Leighton1997-10-291-3/+3
|
* ipc.c ntclientpipe.c:Luke Leighton1997-10-292-0/+2
| | | | | | | | | | response to Bind Acknowledgment needs a lookup table for the PIPE string (secondary address in RPC_HDR_BA structure). smbparse.c util.c : interesting problem, i think caused by us typecasting a uint16* buffer to char*. found on a SPARC.
* preparing for release of 1.9.18alpha7Samba Release Account1997-10-291-1/+1
|
* split ntclient.c down into appropriate modules.Luke Leighton1997-10-292-1/+39
|
* clean up the hash entry code a bit. Got rid of lp_shmem_hash_size()Andrew Tridgell1997-10-292-12/+3
| | | | | | | | | | | | | | and made it private to the 2 shmem implementations. Added new shmops->hash_size() function. Added code to handle the IPC system limits by looping decreasing the size of the resources (semaphores and shared memory) that we request until we get under the system limits, which can be quite low on some systems! Added checks that the creator of the IPC objects is root. Otherwise we would be open to a security hole where someone pre-creates the shared memory segment and attaches.
* added frag field to make_rpc_hdr() functionLuke Leighton1997-10-291-1/+1
|
* byteorder.h :Luke Leighton1997-10-293-12/+11
| | | | | | | | | | | | | | | | | | | | added mode for printing debug array data as chars not uint8/16/32s. only really useful for (uint8) strings or (uint16) unicode strings lsaparse.c smbparse.c smb.h : rpc bind and rpc bind ack structures and parsing and creation functions. ipc.c pipes.c pipenetlog.c pipentlsa.c pipesrvsvc.c : using rpc bind / bind ack parsing routines instead of incorrect use of api_LsarpcTNP1 function. ntclient.c : creation of do_rpc_bind() function. THAT'S IT, FOLKS!
* Adding Windows 95 printer driver code donated by Jean-Francois.Micouleau@utc.fr.Jeremy Allison1997-10-281-0/+3
| | | | | | | | | New program, make_printerdef, plus two new parameters : [global] "printer driver file" [local] "printer driver location" Jeremy.
* smb.h smbparse.c pipeutil.c :Luke Leighton1997-10-282-3/+117
| | | | | | | | | added bind and bind ack structures and parsing functions. restructured rpc header stuff. ntclient.c pipenetlog.c pipentlsa.c pipesrvsvc.c : having to deal with restructuring above.
* enable sysv ipc and fast share modes on OSF1Andrew Tridgell1997-10-281-0/+1
|
* define semun for broken solaris sysvipcAndrew Tridgell1997-10-281-0/+8
|
* lower the default hash size if SEMMSL isn't definedAndrew Tridgell1997-10-281-4/+1
|
* define USE_SYSV_IPC on sunos4Andrew Tridgell1997-10-281-0/+1
|
* define USE_SYSV_IPC on a bunch more systems.Andrew Tridgell1997-10-281-9/+8
| | | | Needs some testing though.
* SYSV IPC implementation of fast share modes.Andrew Tridgell1997-10-283-13/+21
| | | | | | | | | | | | | It will try sysv IPC first, then if that fails it will try mmap(), then after that it will try share files. I have defined USE_SYSV_IPC for Linux, Solaris and HPUX at the moment. Probably a lot more could have it defined. In fact, the vast majority of systems support it. Need autoconf again :-) It should actually be faster than the mmap() version, and doesn't need any lock files. This means the problem of the share mem file being on a NFS drive will be gone.
* added LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h). implemented in smbclient.Luke Leighton1997-10-272-2/+23
| | | | | | | updated Query Info Policy to report domain name and domain sid for info levels 3 and 5. fixed bug in dom_sid_to_string (idauths decoded wrong). fixed bug in DOM_SID: subauths are 32 bit not 16.
* preparing for release of 1.9.18alpha6Samba Release Account1997-10-271-1/+1
|