summaryrefslogtreecommitdiffstats
path: root/source/include
Commit message (Collapse)AuthorAgeFilesLines
...
* security descriptors and registry.Luke Leighton1998-11-121-1/+1
|
* extracted the password change code from smbpasswd and used it in swatAndrew Tridgell1998-11-121-0/+11
| | | | instead of opening pipes and other horrible stuff.
* largely rewrote smbpasswd so that the code is understandable. ThisAndrew Tridgell1998-11-122-14/+14
| | | | | | | | | | | | | should allow us to call a function in swat rather than piping to smbpasswd. while doing this I also fixed quite a few "const char *" versus "char *" issues that cropped up while using const to track down bugs in the code. This led to changes in several generic functions. The smbpasswd changes should be correct but they have not been extensively tested. At least if I have introduced bugs then we should be able to fix them more easily than before.
* Moved some code (NTLMSSPcalc) out of smbdes and inline for paranioaJeremy Allison1998-11-121-1/+0
| | | | | resons and my own piece of mind... Jeremy.
* Added the security changes suggested by Andrew - become theJeremy Allison1998-11-121-0/+1
| | | | | user that authenticated to swat permanently (if not root). Jeremy.
* changed is_root() to am_root() to prevent clash with variable names.Andrew Tridgell1998-11-111-1/+1
|
* rpc_server/srv_netlog.c: Fixed crash bug with ACB_PWNOTREQ.Jeremy Allison1998-11-111-0/+2
| | | | | | script/makeyodldocs.sh: Added code to make text docs for non-man page YODL docs. web/cgi.c web/swat.c: SGI compiler warnings fixed. Jeremy.
* security descriptor info, provided by jean-francoisLuke Leighton1998-11-113-13/+64
|
* clearing up security descriptorLuke Leighton1998-11-113-15/+13
|
* changed syntax of registry commands so keys can start with HKLM or HKU.Luke Leighton1998-11-113-9/+12
| | | | sorted lookupsids command
* registry delete value command: "regdeleteval".Luke Leighton1998-11-112-1/+26
| | | | this is just so unbelievably simple to do...
* renamed unk_1b to flush_keyLuke Leighton1998-11-112-11/+11
|
* - renamed open_policy to open_hklm.Luke Leighton1998-11-112-22/+32
| | | | | | - renamed open_unk_4 to open_hku - fixed createkey issue spotted by phil cox
* rpcclient registry key delete command: "regdeletekey".Luke Leighton1998-11-102-0/+27
|
* registry modification requires a "sync" or "refresh" on the parent key.Luke Leighton1998-11-102-0/+20
| | | | opcode 0xb added to do this. a likely candidate name is "RegFlushKey".
* include/local.h:Jeremy Allison1998-11-104-24/+27
| | | | | | | | | | | | | include/smb.h: param/loadparm.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). printing/printing.c: Added J.F.'s latest fix. rpc_parse/parse_misc.c: parse_reg.c: rpcclient/cmd_reg.c: rpcclient/display.c: SGI compiler signed/unsigned issues. smbd/reply.c: Made GUEST_SESSSETUP run time selectable. Horror of horrors :-). utils/testparm.c: Added extra test. Jeremy.
* oops!Luke Leighton1998-11-101-0/+102
|
* rpcclient registry commands.Luke Leighton1998-11-109-41/+446
|
* util functions split into relevant modules, first pass.Luke Leighton1998-11-101-57/+93
|
* Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison1998-11-092-38/+11
| | | | | | | | | | | | | client/client.c: client/clitar.c: include/client.h: smbwrapper/smbw_dir.c: smbwrapper/smbw_stat.c: smbwrapper/smbw.c: lib/util.c: Converted all use of 'mode' to uint16. smbd/quotas.c: Fixed stupid comment bug I put in there :-(. printing/printing.c: Fix from J.F. to new code. Jeremy.
* I talked to Dave Miller and he thinks that we should have TCP_NODELAYAndrew Tridgell1998-11-091-0/+8
| | | | | on by default on OSes that support it, given the network IO pattern that Samba uses. He doesn't think it will cause problems.
* converted smbclient to use clientgen.c rather than clientutil.cAndrew Tridgell1998-11-091-18/+18
| | | | | | | | | | | | | | | | | | | | | | | I did this when I saw yet another bug report complaining about smbclient intermittently missing files. Rather than applying more patches to smbclient it was better to move to the more robust clientgen.c code. The conversion wasn't perfect, I probably lost some features of smbclient while doing it, but at least smbclient should be consistent now. It if fails it should _always_ fail rather than giving people the false impression of a reliable utility. the tar stuff seems to work, but hasn't had much testing as I never use it myself. I'm sure someone will find bugs in my conversion of smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It now uses clientgen.c exclusively. smbclient is still quite messy, but at least it doesn't build its own SMB packets. I haven't touched smbmount as I never use it. Mike, do you want to convert smbmount to use clientgen.c?
* lib/charcnv.c: Improved debug comment.Jeremy Allison1998-11-061-1/+1
| | | | | | | | | | | libsmb/namequery.c: Fix to remove 2 second wait is we are doing a unicast and got a reply. smbd/dfree.c: smbd/noquotas.c: smbd/quotas.c: Fixes from Dejan Ilic <svedja@lysator.liu.se> for the quota code. utils/smbpasswd.c: Fixes to allow smbpasswd to be called from swat. Jeremy.
* Makefile.in configure configure.in include/proto.h smbd/noquotas.c ↵Jeremy Allison1998-11-031-9/+4
| | | | | | | | | | | | smbd/quotas.c: Added quotas patch for autoconf from Dejan Ilic <svedja@lysator.liu.se>. printing/printing.c: Filenames with spaces patch from Allan Bjorklund <allan@umich.edu> utils/nmblookup.c: Fix usage() function. smbd/reply.c: Split out the security=server and security=domain checks into check_server_security() and check_domain_security() to aid the writing of the 'hack' appliance mode invented by John Schimmel. Jeremy.
* looks like someone forgot to commit these...Alexandre Oliva1998-10-292-1/+4
|
* Still moving things around. debugparse.h will be removed from the includeChristopher R. Hertel1998-10-283-85/+2
| | | | directory in the next batch. Chris -)-----
* Quick fixes to fix the broken tree. Needed for my morning compiles.Jeremy Allison1998-10-283-4/+9
| | | | | | Chris - feel free to fix these things differently if these fixes don't work for you. Jeremy.
* fixed problem with snprintf.c and mkprotoAndrew Tridgell1998-10-281-0/+9
|
* Here is the simple debug parser and the debug2html converter. Still to do:Christopher R. Hertel1998-10-261-0/+74
| | | | | | | | | | | * Debug message filtering. * I need to add all this to Makefile.in (If it looks at all strange I'll ask for help.) If you want to compile debug2html, you'll need to do it by hand until I make the changes to Makefile.in. Sorry. Chris -)-----
* volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell1998-10-243-12/+21
| | | | | | changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before.
* make sure that apps can't close one of the internal smbw fileAndrew Tridgell1998-10-241-0/+2
| | | | | descriptors by catching close attempts on those fds and returning EBADF.
* added domain and local group structures. names may have to be 256 charsLuke Leighton1998-10-232-16/+60
| | | | long not 128 (fstring) length.
* Reasonably large change to give us *exactly* correct NT delete on close ↵Jeremy Allison1998-10-232-6/+14
| | | | | | | | | | | | | | semantics. This was trickier than it looks :-). Check out the new DELETE_ON_CLOSE flag in the share modes and the new code that iterates through all open files on the same device and inode in files.c and trans2.c Also changed the code that modifies share mode entries to take generic function pointers rather than doing a specific thing so this sort of change should be easier in the future. Jeremy.
* don't enable smbsh/smbwrapper on systems where we can't work out howAndrew Tridgell1998-10-231-0/+1
| | | | to generate PIC code
* include/smb.h: Added #defines for lots of things - makes our code a *lot* ↵Jeremy Allison1998-10-232-4/+45
| | | | | | | | | | | | | easier to read. lib/util.c: Fixed Luke's set_first_token() function - should return void. smbd/close.c: Move delete_on_close into file_fd_struct structure. smbd/ipc.c: Changed local_machine back to fstring. smbd/nttrans.c: Use defines for mapping share modes. smbd/open.c: Move delete_on_close into file_fd_struct structure, added code for ALLOW_SHARE_DELETE. smbd/reply.c: Use defines for mapping share modes. smbd/trans2.c: Move delete_on_close into file_fd_struct structure. Jeremy.
* torture debug.Luke Leighton1998-10-221-1/+0
|
* rpctorture commandLuke Leighton1998-10-221-0/+1
|
* bug fix in lsa_trans_names.Luke Leighton1998-10-221-1/+2
| | | | | well-known aliases S-1-5-20 is actually S-1-5-0x20 but sid_to_string does decimal not hexadecimal oops.
* domain aliases added a bit better: does local aliases if you queryLuke Leighton1998-10-212-22/+24
| | | | | for sid S-1-5-20 and does (nothing at the moment) if you query for your own sid.
* the next dialog: user-groups. it's not very sensible what appears, but hey:Luke Leighton1998-10-213-8/+58
| | | | it appears!
* Fixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode.Jeremy Allison1998-10-211-6/+6
| | | | | | smbd/chgpasswd.c: Fixed (my) stupid bug where I was returning stack based variables. Doh ! smbd/trans2.c: Allows SETFILEINFO as well as QFILEINFO on directory handles. Jeremy.
* fixing smbd encrypted rpcs (data lens, alloc hints, sequence nums argh).Luke Leighton1998-10-211-1/+2
| | | | | | put unicode strings after SAMLOGON query regardless of whether it's an NT mailslot or a non-NT mailslot, after having observed this behaviour out of NT machines.
* at the interop Isaac (at least I _think_ it was Isaac) said that if aAndrew Tridgell1998-10-211-0/+4
| | | | | | | | | | | | | | | MS client doesn't respond to a oplock break request then we might try resending the request. This morning Sues Win95 machine had this problem (thus forcing me to do something about it!). When starting winword her box refused to answer an oplock break request. I have added code to resend the oplock break request up to 3 times at 10 second intervals before killing the socket. of course, as soon as I did this her box started to behave again so I haven't been able to tell if this fix actually works, but it can't be worse than dropping the socket immediately.
* Fixed bug found by John Blair where trim_string wasn'tJeremy Allison1998-10-201-0/+1
| | | | | correctly trimming trailing multibyte code page strings. Jeremy.
* some quite important bug-fixes i missed because i transferred the wrongLuke Leighton1998-10-202-1/+2
| | | | | | | | | | | | | | smb.tgz file from my portable. particularly the call to mem_data followed by a realloc of that data in cli_pipe.c's rpc_read() function. smbd responses now use p->rdata_i which is a faked-up pointer into p->rdata's response data. rdata can be very long; rdata_i is limited to point to no more than max_tsize - 0x18 in length. this will make it an almost trivial task to add the encrypted rpc headers after rdata_i, and mem_buf_copy will cope admirably with rhdr chained to rdata_i chained to auth_verifier etc etc...
* new prorotypesAndrew Tridgell1998-10-201-0/+1
|
* - dce/rpc codeLuke Leighton1998-10-192-8/+20
| | | | | | | | | | | | | | | | | | | - removed debug info in struni2 and unistr2 (security risk) - rpc_pipe function was getting pointer to data then calling realloc *dur* - password check function, the start of "credential checking", user, wks, domain, pass as the credentials (not just user,pass which is incorrect in a domain context) - cli_write needs to return ssize_t not size_t, because total can be -1 if the write fails. - fixed signed / unsigned warnings (how come i don't get those any more when i compile with gcc???) - nt password change added in smbd. yes, jeremy, i verified that the SMBtrans2 version still works.
* prototype new functionsAndrew Tridgell1998-10-191-0/+6
|
* redid proto.hAndrew Tridgell1998-10-181-1/+1
|
* dce/rpcLuke Leighton1998-10-163-1/+4
|