summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* Fixed some more client SPOOLSS functions. The followingGerald Carter2000-07-183-76/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | functions work now: - spoolenum - spoolopen - spoolgetprinter - spoolgetprinterdriver Items todo: - track down memory bug with spoolenumdata - fix spoolgetprinterdriverdir - fix spoolgetdata - fix display_job_info_ctr in spooljobs All part of the rpcclient work. Jeremy, this check includes emthods for associating POLICY_HNDs and client states. See the RpcHndList_...() function calls (implemented in lib/util_list.c) --jerry (This used to be commit 84349394a988213724ca138e9692b3bc44fa0cb8)
* Fixed some more SPOOLSS functions. The followingGerald Carter2000-07-181-5/+4
| | | | | | | | | | | | | | | | | | | | functions work now: - spoolenum - spoolopen - spoolgetprinter - spoolgetprinterdriver Items todo: - track down memory bug with spoolenumdata - fix spoolgetprinterdriverdir - fix spoolgetdata - fix display_job_info_ctr in spooljobs --jerry (This used to be commit 15b35912713557119aba5d0cd59605997d6b5ee9)
* Missing var.Tim Potter2000-07-171-1/+1
| | | | (This used to be commit 5c1c5622269c54dca89eb178ca25981ab7928e75)
* Reverted changes from rpcclient merge - contains memory leak!Tim Potter2000-07-171-2/+9
| | | | (This used to be commit dea06ad7a554089a7394cdcb6bf5a766e8e8a6c3)
* Free security descriptor after access check in update_printer_sec()Tim Potter2000-07-171-3/+7
| | | | (This used to be commit bc5f9c00be5b8c2f6d258f0c95ed3b4fc0201b87)
* Initialise current time to time(NULL) in add_a_printer_2()Tim Potter2000-07-171-1/+4
| | | | | | Added get and free security old descriptor in nt_printing_setsec() after access checking was moved up to rpc level. (This used to be commit a5b7cafc87e14ca3f28dcfc1ed6bcc6f47e79639)
* make protoTim Potter2000-07-171-84/+0
| | | | (This used to be commit df0ef98d7ed41899ce97d20163ab49081347ae83)
* make protoTim Potter2000-07-171-339/+338
| | | | (This used to be commit 4443a8b6e698a6572152e575c41dfb760b9888a9)
* Allow job owner to delete own print job.Tim Potter2000-07-171-13/+28
| | | | (This used to be commit 90b1857c81627e587a7395ee2bdb51b26ea46512)
* Moved access check for nt_printing_setsec() up into rpc function.Tim Potter2000-07-171-36/+59
| | | | | | | | | | | | Use sid + rid instead of lp_workgroup()/Administrator for printer owner sid as per JF's advice. Default printer owner is either the administrator of the pdc workgroup or Everyone depending on whether winbindd is running. Still the subject of some debate... Renamed se_access_check() parameters. (This used to be commit e92e161a813ac0793897ffe3d33b01054912d4c7)
* Renamed arguments to se_access_check()Tim Potter2000-07-171-4/+28
| | | | (This used to be commit 714b50b47dab46f5cdde49d7c200b353c2e0398a)
* Renamed a parameter in init_request() function.Tim Potter2000-07-171-10/+19
| | | | | Initialise response structure correctly. (This used to be commit 587c8e58fdd79dce47fb59ce702596ea58c8b4a6)
* Added some debugs.Tim Potter2000-07-171-13/+27
| | | | | | Changed interface to se_access_check to take a user struct instead of each bit as a separate parameter. (This used to be commit ff7938310d0636b165b03a2b0a15e51494b2459f)
* I committed this change to the cliffs archive a while back and have heardChristopher R. Hertel2000-07-151-5/+20
| | | | | | | | | | | no complaints. ;) Basically, instead of ignoring single-line C-style comments in IDL source files this change allows token.awk to ignore both single- and multi-line C-style comments. Chris -)----- (This used to be commit 34f69f09f840b8990b718e8585785e2a6ad7c314)
* Lots of changes but no real progress in functionality.Gerald Carter2000-07-153-146/+92
| | | | | | | | | | | | | | more changes to remove the ncarpc_l_* stuff. Fixed some cut and paste errors from TNG There are very subtle bugs in this code. I'll work on simplifying them in round two or three. --jerry (This used to be commit f8509356178deb7e78836d1f5aceb96677ac738b)
* reverted a some previous additions.Gerald Carter2000-07-151-15/+4
| | | | | | | | Removed msrpc_local struct --jerry (This used to be commit b2317babb557f5bce390c7162c9936f5d46f4da3)
* a few changes to Makefile.in to clean up dependencies for rpcclientGerald Carter2000-07-141-7/+5
| | | | | --jerry (This used to be commit 9206d593603af959700794d252da8d07082012ef)
* More functions merged from TNG for rpcclient. They don't all workGerald Carter2000-07-144-310/+410
| | | | | | | | | | currently as I have to do something about the policy handle caching issues. --jerry (This used to be commit 233b074f490b3b01f3a462284aa8117536df0082)
* cleaned up access to prs_struct variables. Replaced all callsGerald Carter2000-07-141-10/+553
| | | | | | | | | prs_free_data() => prs_mem_free prs_realloc_data => prs_grow --jerry (This used to be commit 3d00e969df1800dadbb91fd8c410e9ce87188551)
* removed references to loopback RPC connections.Gerald Carter2000-07-141-45/+80
| | | | | | | | | added a few more kfunctions from TNG for rpcclient --jerry (This used to be commit 549d1d262115aeb2cd4d3f0122a5771be17752bb)
* removed prs_data(), prs_free_data(), and prs_realloc_data()Gerald Carter2000-07-142-105/+60
| | | | | | | | | as these were unneeded and replaced by the real functions already in HEAD. Added a few more functions to parse_spoolss.c to help with the rpcclient merge from TNG. (This used to be commit 3bc9af4c1dbdb664970541f6091982ffccc87b31)
* Fixed a bug in cmd_interp.c where if user%pass was entered onGerald Carter2000-07-142-206/+3
| | | | | | | | | | | | | the command line, the password would still be cached in memory in plain text for the lifetime of the rpcclient command line session. removed loopback connection functions from msrpc-client.c since we don't support that in the server code now anyways. simplify, simplify, ... --jerry (This used to be commit 8599e1bc394b1caee2483ec72d439a34d3f30629)
* make protoGerald Carter2000-07-143-352/+454
| | | | | | | | and a few changes to ntdomain for rpcclient printing functions --jerry (This used to be commit eb3f545f54eabb8b2b9a735808ebf49808ea85eb)
* adding more spoolss command into rpcclient. They don't all workGerald Carter2000-07-142-2/+368
| | | | | | | | currently. More to come later. --jerry (This used to be commit 0faf21662db5b24b7fd57736ea53772e3baca5df)
* Don't return winbind groups or users when responding to samr_enum_dom_usersTim Potter2000-07-131-0/+21
| | | | | | | and samr_enum_dom_aliases commands. Unfortunately the algorithm for determining winbind groups from normal groups is simply to check for the presence of the lp_winbind_separator() character. )-: (This used to be commit 363a9c45bf0a7d3266ccdf4eeb0b9f5e3d38389f)
* Uninitialised variables.Tim Potter2000-07-131-0/+2
| | | | (This used to be commit a895868912a24589de3a904ca537cf3367a645bf)
* we are now sure the printer_info_2 timestamp is updated everytimeJean-François Micouleau2000-07-122-5/+5
| | | | | | | required. J.F. (This used to be commit 08b41bab177affac088c981d7c620728e8e6e9b0)
* - The printers are indexed by the sharename in both get_a_printer() andJean-François Micouleau2000-07-123-21/+41
| | | | | | | | | | | | | | | | add_a_printer() now. - correctly unpack the private part of a devmode and remove a memleak - correctly retrieve the pair(value,data) for getprinterdata - handle null devicemode in printer_info_2 I still have some bugs but I'm not crashing anymore NT4SP6 d/c build :-) J.F. (This used to be commit 493f7d11acf753ba24c88e6cbb73d86a8595a66a)
* An improved version of the Negative Query Response fix. The earlier fixChristopher R. Hertel2000-07-121-10/+37
| | | | | | | | | only did a short-cut on an rcode of 3, which is 'name not found'. This does a short-cut on any non-zero rcode. It also puts out a DEBUG message (if DEBUGLEVEL is >= 3) detailing the error. Chris -)----- (This used to be commit d8656304d51844335e72babe852673f2dececfdc)
* Typo. It said "DEGUG" in the comments. I dunno how to degug, or gug forChristopher R. Hertel2000-07-121-1/+1
| | | | | that matter. crh (This used to be commit 6ee63ecfa5f9c984f51c15597a50e085ab722e87)
* #ifndef RPCCLIENT_TESTGerald Carter2000-07-111-35/+16
| | | | | | | | | | | | use old prs_unistr() #else use new prs_unistr() which handles UNMARSHALL #endif /* RPCCLIENT_TEST */ jerry (This used to be commit fb0e1fb9e31db135eeb8e949a7ad0826906ba1ff)
* Allow name lookup to fail and fall back to using the "Everyone" SIDJeremy Allison2000-07-111-3/+5
| | | | | | | as SD owner. Allows smbd to work without winbindd running. Check for security implications ! Jeremy. (This used to be commit 9bd64da1e26a1b4a2df2b0537feb604a40762bb1)
* Add local fallback for name lookup if no winbindd running...Jeremy Allison2000-07-111-9/+20
| | | | | Jeremy. (This used to be commit d85deb9e4e9c9784006292d3cb5a6b7b408ff972)
* Ensure correct driver paths are returned in INFO_2 struct.Jeremy Allison2000-07-101-6/+6
| | | | | Jeremy. (This used to be commit 7a95c289cd0b4615d2a5aa8a148c767b57460ffa)
* make protoGerald Carter2000-07-101-0/+1
| | | | (This used to be commit ae85cc43fec26be6184e863569a94cab0afc425a)
* spoolenum commend (when compiled with the new prs_unistr())Gerald Carter2000-07-101-7/+9
| | | | | | | | | | now works. :-) jerry (This used to be commit 588aadb29fbb7cc0e81ac19f95e97101a64dbd8e)
* Fixed a bug in parsing the command line.Gerald Carter2000-07-101-1/+1
| | | | | jerry (This used to be commit ebcb7473c6b62266c30e276d02186d8e50a5629a)
* included a a new prs_unistr(). Is currently #if'd out (denotedGerald Carter2000-07-101-0/+92
| | | | | | | | | | | | | by RPCCLIENT_TEST) in order to not break anything in the smbd code (and to give time to review it). Originally written by JF. In effect, this checkin makes no changes to parse_prs.c at all. jerry (This used to be commit 4f431ea1f5d1d3b868d0bb56a299070e608c2512)
* Added wbinfo and .libsTim Potter2000-07-101-0/+2
| | | | (This used to be commit da67a5099ebfb68172c1c419103665f571e82157)
* Fixes for various compile warnings on Solaris 8.Tim Potter2000-07-106-19/+23
| | | | (This used to be commit 898a483cdab1ed7d8ff902c0dc0e0620440ae4cd)
* Moved winbind client functions from various odd locations toTim Potter2000-07-108-168/+240
| | | | | | | nsswitch/wb_client.c Merge of nsswitch/common.c rename to nsswitch/wb_common.c from TNG. (This used to be commit f866c18f6be65db67d9d2a6c0b42e1af3b421e6c)
* make protoTim Potter2000-07-102-335/+336
| | | | (This used to be commit 5f355a24430dcb260de52e8a0ca21e80cae53089)
* Re-instated lanman printing security checks (oops).Tim Potter2000-07-105-53/+177
| | | | | | | | | | | | | | | | | | A user can now pause, resume or delete their own job even if they don't have the Manage Documents privilege. Added call to se_access_check() for changing printer properties. The Full Access privilege is required for the user to perform this. Several uninitialised variables and memory leaks plugged. Modified default ACL created on new printers to be Everyone / Print instead of Everyone / Full Access. This required some random stuffing around with the value of the revision field to correspond with the ACL that NT produces when setting the same permission on the printer. Fixed dodgy function call in printing/printfsp.c (This used to be commit 2abce4dcfa351051df6e5f789b34fa99c9b81c22)
* Spelling fixes.Tim Potter2000-07-101-3/+3
| | | | (This used to be commit c1d242f1dd5b6addbe5d2df22e4759f6682fd9ef)
* Fix for passing NULL pointer as an array parameter inTim Potter2000-07-102-4/+4
| | | | | domain_client_validate() (This used to be commit 3ee111bff78826a5ee419554d4ef2b2b2d3ae7aa)
* Added some useful debugging stuff.Tim Potter2000-07-101-10/+66
| | | | | Fixes for se_access_check() when you are the owner of the object. (This used to be commit 1478198b709b26d0007a8ff0586c34fc6f37a9d2)
* Quick change to short-circuit WINS queries if the WINS server returns aChristopher R. Hertel2000-07-091-6/+20
| | | | | | Negative Name Query Response. We should't wait through the timeouts and retry twice if we've been told "No Such Entry". (This used to be commit 2bbd16903db02aacb729d1ad140056b180e2a776)
* Just a few changes due to bringing some partial files backGerald Carter2000-07-071-3/+10
| | | | | | | | | from TNG to HEAD. --jerry (This used to be commit ddef41c13484f488657ea36a510b52cefc7c8643)
* More rpcclient merge issues:Gerald Carter2000-07-0716-14/+1471
| | | | | | | | | | | | | * fixes some readline bugs from the merge * first attempt at commands (spoolenum almost works) * no changes to existing functions in HEAD; only additions of new functions. I'll weed out what I can as I go. --jerry (This used to be commit 61d2aad5dc2b212b11c981f1eca47efa627e9fc8)
* More rpcclient merge issues:Gerald Carter2000-07-075-1/+1222
| | | | | | | | | | | | | * fixes some readline bugs from the merge * first attempt at commands (spoolenum almost works) * no changes to existing functions in HEAD; only additions of new functions. I'll weed out what I can as I go. --jerry (This used to be commit 12e2a21e1bc4c6fa02606d21cea4cb5a8b4d41a9)