summaryrefslogtreecommitdiff
path: root/source3/rpc_server
AgeCommit message (Collapse)AuthorFilesLines
2003-04-02THE Idmap patch :-)Simo Sorce2-2/+2
includes a --with-idmap=no switch to disable idmap usage if you find problems. cosmetic fixes and param aliases to separate winbind from idamp roles. A temporarily remote idmap winbind compatibility backend. As I have time I will further change code to not call directly winbind (partly done but not tested) and a specilized module will be built in place for the current glue hack. The patch has been tested locally in my limited time, the patch is simple and clear and should not reserve problems, if any just disable it. As usual, comments and fisex are welcome :-) Simo. (This used to be commit 02781320476ed1b7ee5d943fa36f9a66ab67f208)
2003-04-02Subtle changes to message handling after ENUMJOBS.Jeremy Allison1-8/+95
Jeremy. (This used to be commit 48f3bf0ea51b9fd09dfb017870e32ca4a8cc4b8c)
2003-04-01fix potential handle leak in _spoolss_open_printer_ex(); final fix for ↵Gerald Carter1-1/+3
CR2102; reviewed by jra (This used to be commit 3d37e1ece913707f346c3c2459c3c42192a3a1a7)
2003-03-31fix potential smbd crash when we fail to alloacte a policy handle for a ↵Gerald Carter1-8/+9
printer open; CR 2102 (reviewed by jreilly) (This used to be commit a179c2cefb15b1b8869a83fe5f14a85d1eb96114)
2003-03-31add a few error checks in EnumPrinterData()Gerald Carter1-4/+5
(This used to be commit 453813ec6e2c25a3f6a664212aedcad15cfd6000)
2003-03-24Fix two typosJelmer Vernooij1-1/+1
(This used to be commit 898a246c1650326cbd9b8ca49fb93963e589ea1f)
2003-03-24Give error message when module doesn't seem to containJelmer Vernooij1-0/+5
pipe functions (This used to be commit 4dd16790436d18f5ac5868538309128e3f8ad1cc)
2003-03-21Give volker a hand, and let domain joins with existing user accounts workAndrew Bartlett1-12/+38
a bit better. This just sets the minimum possible attributes - if we are 'upgrading' an LDAP based user account, the attributes will be there anyway. This matches NT pretty well to. This also fixes some use of unitialised values in the desired_access checking. (found by valgrind). Andrew Bartlett (This used to be commit 929213ff2a5829ba8435ba1be0de317bca1e0da0)
2003-03-20lib/messages.c: Check return from chainlock before modifying message queue.Jeremy Allison1-6/+0
Apply the job returned limit across all requests for job queues. Jeremy. (This used to be commit dee1326a1d8a0bf8977df22a0fe014dd5d8dc769)
2003-03-19Put in the new modules system. It's now used by passdb and rpc. I willJelmer Vernooij9-107/+2
put a doc about it in dev-doc later today. (This used to be commit af7bfee0c6902c07fdb8d3abccf4c8d6bab00b5a)
2003-03-18Ensure dev in make_connection is const.Jeremy Allison1-1/+1
Jeremy. (This used to be commit e8155fade61e9dc308a82f442453803160c36806)
2003-03-16Make sure we mark the assumption of a fstring parameter for 'devicetype'Andrew Bartlett1-2/+7
in the function prototype, and change callers to respect this. Andrew Bartlett (This used to be commit 9f3d3c380120f16d76d68f346799282d61eec892)
2003-03-07Limit the number of SIDs that may be looked up, in line with existing codeAndrew Bartlett1-0/+5
for name->sid. (This used to be commit 0ebccc0dbeecc10d423529909a2563fbc3bf9857)
2003-03-03* always report ourselves as a Windows 2000 print server (evenGerald Carter1-8/+29
without ADS support) * add "MinorVersion" print server data key and comment on "OSVersion" (This used to be commit 342734e3de71c7dc8e3d24fd66dae58cf647a569)
2003-03-03* CR1868: only send a change notify message if we have somethingGerald Carter1-1/+13
that changed that the client is monitoring. * couple of comments abnout how we need to validate driver names on SetPrinter() and AddPrinter() * up the debug level on some overly verbose dev mode parsing messages (This used to be commit 7377d671e8a95ac2ab0452f564b18b2a098699cb)
2003-03-01Added limit to number of jobs enumerated. Set to 0 (means no limit).Jeremy Allison1-0/+6
Yes I will add the docs.... Jeremy. (This used to be commit 4a739d914bb87a3c8d071dfd0f275a9aab1cf90a)
2003-02-27additional fix for CR 601Gerald Carter1-0/+6
* distinguish WinXP from Win2k * add a 1/3 of a second delay in OpenPrinter in order to trigger a LAN/WAN optimization in 2k clients. (This used to be commit 96570699d1b715f47c35aa211da6ec18f6fc4109)
2003-02-25Progress on CR 601Gerald Carter1-155/+122
cache the printer_info_2 with the open printer handle. cache is invalidated on a mod_a_printer() call **on that smbd**. Yes, this means that the window for admins to step on each other from different clients just got larger, but since handles a generally short lived this is probably ok. (This used to be commit 33c7b7522504fb15989f32add8e9a087c8d9d0fa)
2003-02-21i patched the wrong branch! s/unistr2_to_dos/unistr2_to_ascii/Gerald Carter1-1/+1
(This used to be commit 513fb2ddd85a74de7684a6cb09d57011af69161f)
2003-02-21couple of merges from APP_HEADGerald Carter1-3/+24
* performance optimization in enumprinterdataex() when keyname is empty * fix a few typos in comments * reload services after addprinter_command() dump registry data in ascii when the key is REG_SZ or REG_MULTI_SZ (This used to be commit fde6ef7cc62c58d512dc8053b214f0a3c59a78ab)
2003-02-21Fixed compiler warning.Tim Potter1-1/+1
(This used to be commit b3f9cf8c1c293e905a536dfa5bb6a827627b7024)
2003-02-20Make init_module() and thus smb_load_module() return an int.Jelmer Vernooij1-4/+4
modules/developer.c: init_module() should return an int (This used to be commit 7f59703550378ff2333e3c851bf1a77037510abd)
2003-02-18Use the new modules stuff to load dynrpc modules. Basically this means:Jelmer Vernooij9-33/+14
- calling the initialization function in the module init_module() instead of rpc_pipe_init() - calling smb_load_module() to do the dlopen(), dlsym() and init_module() calls I'll merge this to 3.0, together with the smb_load_module() function. Discussed with Anthony. (This used to be commit 3757ed8df06ca2b306bef336bdb9c7671f5e6a65)
2003-02-18set the various DsSpooler keys that are linked to PRINTER_INFO_2 fields; CR 985Gerald Carter1-10/+57
(This used to be commit 9a4b7a86fdaab04328b5017c1dd42480753a9a10)
2003-02-17This patch fixes one of my longest-standing pet hates with Samba :-).Andrew Bartlett2-12/+12
When we look see if a user is in a list, and we try to 'expand' an @group, we should lookup the user's own list of groups, rather than looking for all the members of a group. I'm sure this will fix some nasty performance issues, particularly on large domains etc. In particular, this avoids contacting winbind at all, if the group is not a winbind group. (This caused a deadlock on my winbind-on-PDC setup). The groups list always includes the user's primary group, as per the getgrouplist manpage, and my recent changes to our implementation. Andrew Bartlett (This used to be commit 9be21976f7662ebe6eb92fff7cecbdb352eca334)
2003-02-15* set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736Gerald Carter1-1/+1
* never save a pointer to an automatic variable (they go away) implement a deep copy for SPOOLSS_NOTIFY_MSG to correct messages being sent that have junk for strings; fix in response to changes for CR 1504 (This used to be commit 043b9dff22e909fc290c34d879cad8b4c980fc13)
2003-02-14Ensure that only parse_prs.c access internal members of the prs_struct.Jeremy Allison3-28/+18
Needed to move to disk based i/o later. Jeremy. (This used to be commit 4c3ee228fcdb089eaeead95e79532a9cf6cb0de6)
2003-02-13Removed unused variable.Jeremy Allison1-1/+0
Jeremy. (This used to be commit c9654c8ec71903c59ff5f66c3fd6ea1baa599133)
2003-02-13Merge JohnR's patch.Jeremy Allison1-3/+1
Removed extra copy of server name in the printername field (it was mangling the the name to be \\server\\\server\printer ... yes, there were 3 backslashes) reported by get & enum jobs level 2. Jeremy. (This used to be commit d079edf7327acba7f00b5868e7e6ce91ddc1eb14)
2003-02-12initial server side privileges implementation, using a tdb. This needs to be ↵Andrew Tridgell1-5/+32
hooked into pdb, and we need some access control on changing privileges. That's next (This used to be commit f4f1f84a6bf1d356ccc83f0ecb135bef4a39619e)
2003-02-11added server stubs for lsa_enum_acct_with_rightAndrew Tridgell2-0/+61
(This used to be commit aa2abacaf48924797b6803786c14c9f303185e4a)
2003-02-06added the LSA privileges server backend stubs. Right now they just logAndrew Tridgell2-1/+179
what was requested. (This used to be commit 64ac6c2bcb729c4658de48e929cc792681903ecc)
2003-02-05Fixed type.Jeremy Allison1-1/+1
Jeremy. (This used to be commit ae635bb6ec05ded8a36d7876be8f3e1b8475e35b)
2003-02-02Send the user's session key in the SAMLOGON reply, so that a member server canAndrew Bartlett1-2/+11
use smb signing. Andrew Bartlett (This used to be commit 574e8a8ab7c94ecd9113df42e395e83632980675)
2003-01-21don't free() auto variables; fixes segfault when looking up ↵Gerald Carter1-3/+5
RefusePasswordChange registry value (This used to be commit d89b0bff44fe31244b1835aee0c96c4900d90dc6)
2003-01-19strip any trailing \'s from reg key names in an openGerald Carter1-2/+10
(This used to be commit 03807cd56429e167ca8f3c003a4468461ecb854b)
2003-01-18Fix some debug levels (were set to 0 with RPC module patch), andJim McDonough1-4/+4
change one fprintf(stderr,...) to DEBUG. (This used to be commit 77f8913977343023f8ce123c305dcffc7463357b)
2003-01-18removing extra debug statementGerald Carter1-2/+0
(This used to be commit 657f8c25a585a02b86f4021e38641ee896f098d2)
2003-01-17Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt ↵Jim McDonough9-255/+422
for instructions. (This used to be commit d51e12df78ff8fc721d693fedbd1c633f39edd49)
2003-01-17Fix reference count bug where smbd's would not terminate with noJeremy Allison1-17/+0
open resources. Jeremy. (This used to be commit 0173d6fe164568a73247fa542895443fad6c20c3)
2003-01-17reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell4-21/+24
(This used to be commit e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c)
2003-01-17This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell4-24/+21
calls to init_unistr2() in the code and every one of them got the 3rd argument incorrect, so I thought it best just to remove the argument. The incorrect usage was caused by callers using strlen() to determine the length of the string. The 3rd argument to init_unistr2() was supposed to be the character length, not the byte length of the string, so for non-english this could come out wrong. I also removed the bogus 'always allocate at least 256 bytes' hack. There may be some code that relies on this, but if there is then the code is broken and needs fixing. (This used to be commit b9eff31b1433c81fbff733e194914a40f25e3bda)
2003-01-15small merges from SAMBA_3_0; mostly typos, renames, etc...Gerald Carter1-1/+1
(This used to be commit 9ac196dad4893b0ceef13281a140be5d85391e6c)
2003-01-14The last of the fstring/pstring mixups, and an extra 'static'.Andrew Bartlett1-2/+2
(This used to be commit b328b67fd8fd605636ed58ffd33cf5be3d480672)
2003-01-14A couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring isAndrew Bartlett1-3/+3
harmless, but breaks my automated check. (This used to be commit e5d2b1f6c3c0883054f4e0eab2cac958706a790d)
2003-01-11typo from mergeGerald Carter1-1/+1
(This used to be commit 1f33b4acb32c5461b9249d3786ea5fc6898e5f18)
2003-01-11[merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter1-11/+42
to send notify events; CR 1491 (This used to be commit 142c5029c701e7a82074e301278846c02843f46f)
2003-01-09a 0 length printer data value is not a memory allocation error; fix CR601Gerald Carter1-2/+10
(This used to be commit 3442c270f1bc67890f4e2de3386fcfdec610170d)
2003-01-02We already have one function to move unistr2 -> multibyte-static, so weAndrew Bartlett1-20/+20
don't need a second just for pdb. Also, remove magic 'is lp_guest_account' test - the magic RID should be up to the passdb backend to set. Andrew Bartlett (This used to be commit f71c8338d35a2e8c73c3d8006ea6858cb522c715)
2003-01-02BIG patch...Andrew Bartlett7-29/+29
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)