summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Found the sec_ctx_stack overflow - a become_root() should have been anJeremy Allison2000-08-081-1/+1
| | | | | unbecome_root() - typo. Jeremy.
* Added SID "Everyone" S-1-1-0 as always matching if present in an ACE.Jeremy Allison2000-08-081-4/+17
| | | | Jeremy.
* Changed the sec desc access checks to match the spec. Needs testing.Jeremy Allison2000-08-082-223/+149
| | | | Jeremy.
* make protoGerald Carter2000-08-081-2/+14
|
* cleanup in init_unistr2_from_unistr()Gerald Carter2000-08-081-27/+19
| | | | --jerry
* All changes related to rpcclient...Gerald Carter2000-08-087-11/+487
| | | | | | | | | | | | | - cleaned up some code - Fixed a few memory leaks of my own making - Add AddPrinterDriver(); I'm missing some of the semantics here as the call is done correctly, but I'm not getting all the information right in the DRIVER_INFO_3 struct I think. Will work on it tomorrow some more... --jerry
* it is not my day it seems. :-(Gerald Carter2000-08-051-1/+1
| | | | | | | Fixed missing ) j-
* removed the for() loop to copy the buffer in init_unistr2_from_unistr()Gerald Carter2000-08-051-3/+2
| | | | | | | | | | | Replaced with a memcpy() Forgot to commit this a few moments ago j-
* Fixed bug in init_unistr2_from_unistr() found by Elrond.Gerald Carter2000-08-051-1/+1
| | | | | | | | | | Thanks :-) j-
* Adding build file.John Terpstra2000-08-041-0/+14
|
* Adding build system files for Caldera OpenLinux.John Terpstra2000-08-042-0/+311
|
* make protoGerald Carter2000-08-041-1/+1
|
* spoolss_addprinterex() was adding the printer and returning theGerald Carter2000-08-042-26/+28
| | | | | | | | | correct handle, but was deleting the connection to the server. Doh!! --jerry
* Fixed up se_access_check() to use the token list from the user structJeremy Allison2000-08-041-82/+32
| | | | | as the SID list. Now to go through and tidy up the algorithm. Jeremy.
* Added my course notes. Had asked Jeremy some weeks ago.Volker Lendecke2000-08-043-0/+2804
| | | | | | It's german language, feel free to remove it again. Volker
* make protoGerald Carter2000-08-041-3/+10
|
* clunky support for calling AddPrinterEx(). The code currently reportsGerald Carter2000-08-043-27/+178
| | | | | | | | | | | that the call failed, but the printer shows up on the remote NT client. (note this is the client side call). I've botched the return value somewhere and will fix that today. jerry
* After talking with Jeremy and JF (and staring at packet traces betweenGerald Carter2000-08-042-3/+55
| | | | | | | | | | NT <-> NT), I've come to realize that UNISTR2 strings should be NULL terminated. jerry
* In cli_error() return ENOENT when an ERROR_INVALID_NAME is received insteadTim Potter2000-08-041-0/+1
| | | | of the generic EINVAL.
* Fixed up the user/group contexts when using authenticated pipes.Jeremy Allison2000-08-046-7/+25
| | | | | | | | Added a become_root()/unbecome_root() (push/pop security context) around the initgroups() call to ensure it would succeed. Hmmm - I wonder if this call being done as non-root might explain any "group access" bugs we've had in the past.... Jeremy.
* Added an NT_USER_TOKEN structure that is copied/passed around associatedJeremy Allison2000-08-039-103/+246
| | | | | | | with the current user. This will allow se_access_check() to quickly do a SD check without having to translate uid/gid's to SIDs. Still needs work on pipe calls. Jeremy.
* Much though I hate to admit it - JF was completely correct. I cannotJeremy Allison2000-08-021-2/+2
| | | | | | | now reproduce the bug I had with adding a printer driver, and PrintMig.exe crashes if I use my SD code but works with his. I stand completely corrected :-). - So I'm reverting to his code as it works :-). Jeremy.
* Started to canonicalize our handling of uid -> sid code in order toJeremy Allison2000-08-0213-218/+251
| | | | | | | | | | | | | | | | | | | | | | | | | get ready and fix se_access_check(). Added cannonical lookup_name(), lookup_sid(), uid_to_sid(), gid_to_sid() functions that look via winbind first the fall back on local lookup. All Samba should use these rather than trying to call winbindd code directly. Added NT_USER_TOKEN struct in user_struct, contains list of NT sids associated with this user. se_access_check() should use this (cached) value rather than attempting to do the same thing itself when given a uid/gid pair. More work needs to be done to preserve these things accross security context changes (especially with the tricky pipe problem) but I'm beginning to see how this will be done..... probably by registering a new vuid for an authenticated RPC pipe and not treating the pipe calls specially. More thoughts needed - but we're almost there... Jeremy.
* Tidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need ↵Jeremy Allison2000-08-0121-139/+97
| | | | | | | | NT_STATUS_XXX). Removed IS_BITS_xxx macros as they were just reproducing "C" syntax in a more obscure way. Jeremy.
* Added print job substitutions for %{printername}, %{sharename} and %{portname}Jeremy Allison2000-08-016-37/+93
| | | | | | from the NT printer tdb. Also added checks for time restrictions before allowing a job to print. Jeremy.
* Save & restore the port name correctly.Jeremy Allison2000-07-311-16/+1
| | | | Jeremy.
* Added John Reilly's enumports/addprinter/delprinter scripting code plus theJeremy Allison2000-07-3110-151/+359
| | | | | | | | | | fix for the Win9x printer drivers. Changed command names to add "command" string on the end for some consistancy with the other scripting commands. Added '%P' option to tdbpack/unpack to store long comment string. Made port name be "Samba Printer Port" if no enum port script given. Fixed prs_uint32_pre code to cope with null args. Jeremy.
* make protoGerald Carter2000-07-311-10/+13
|
* More work on rpcclient...Gerald Carter2000-07-311-7/+27
| | | | | | | | | | | | * Fixed to work with Jeremy's recent changes re: dunamic memory allocation when unmarshalling unistr[2] * included EnumPorts level 1 * more work on AddPrinterEx --jerry
* More work on rpcclient...Gerald Carter2000-07-316-116/+373
| | | | | | | | | | | | * Fixed to work with Jeremy's recent changes re: dunamic memory allocation when unmarshalling unistr[2] * included EnumPorts level 1 * more work on AddPrinterEx --jerry
* Adding pages oopsed.John Terpstra2000-07-302-0/+221
|
* Adding Using_Samba book back to Samba-pre3.John Terpstra2000-07-30158-0/+27479
|
* Adding missing man pages.John Terpstra2000-07-302-0/+185
|
* Adding missing smbsh.1 man page source.John Terpstra2000-07-301-0/+87
|
* Updating for Samba-3.John Terpstra2000-07-301-68/+108
|
* Adding files provided by Klaus Singvogel of CalderaJohn Terpstra2000-07-3012-0/+804
|
* Fixed read overrun in init_string2()Tim Potter2000-07-281-2/+4
|
* remove warningsJean-François Micouleau2000-07-271-2/+2
| | | | J.F.
* fix the devmode.orientation being set to 0.Jean-François Micouleau2000-07-271-2/+8
| | | | | | that bug was *subtle* :-( J.F.
* Ok - this is a *BIG* change - but it fixes the problems with static stringsJeremy Allison2000-07-2726-412/+513
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in the RPC code. This change was prompted by trying to save a long (>256) character comment in the printer properties page. The new system associates a TALLOC_CTX with the pipe struct, and frees the pool on return of a complete PDU. A global TALLOC_CTX is used for the odd buffer allocated in the BUFFERxx code, and is freed in the main loop. This code works with insure, and seems to be free of memory leaks and crashes (so far) but there are probably the occasional problem with code that uses UNISTRxx structs on the stack and expects them to contain storage without doing a init_unistrXX(). This means that rpcclient will probably be horribly broken. A TALLOC_CTX also needed associating with the struct cli_state also, to make the prs_xx code there work. The main interface change is the addition of a TALLOC_CTX to the prs_init calls - used for dynamic allocation in the prs_XXX calls. Now this is in place it should make dynamic allocation of all RPC memory on unmarshall *much* easier to fix. Jeremy.
* if no comment in TDB, use comment from print share.Jean-François Micouleau2000-07-261-4/+15
| | | | J.F.
* Found out that we are crashing spoolss in enumprinterdata.Jean-François Micouleau2000-07-264-14/+32
| | | | | | | | | So fixed enumprinterdatas in rpcclient to debug the server code, and found that the parsing code was missing 2 prs_align(). We are not crashing NT anymore. :-) J.F.
* Fixed memory leaks in root and non-root password changing.Tim Potter2000-07-261-7/+20
|
* Fixed memory leaks in _spoolss_addprinterdriver()Tim Potter2000-07-261-5/+9
|
* Fixed memory leak in modify_trust_password()Tim Potter2000-07-261-0/+4
|
* Fixed up error checking and move printer file code. Fixed a memory leak.Jeremy Allison2000-07-253-12/+38
| | | | Jeremy.
* make protoGerald Carter2000-07-251-0/+5
| | | | --jerry
* some initial code for AddPrinterEx() project. Most is ifdef'd outGerald Carter2000-07-253-3/+149
| | | | | | | 'cause it's not all written. -jerry
* if the sids are not the same pointer and either of the sids are NULLAndrew Tridgell2000-07-251-0/+3
| | | | then the two sids are not equal
* Added some error checking and returns to the new 'move' code.Jeremy Allison2000-07-254-16/+53
| | | | Jeremy.