summaryrefslogtreecommitdiffstats
path: root/source/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
* This is a merge of the NETLOGON schannel server code from SambaVolker Lendecke2003-04-043-33/+438
| | | | | | | | | | | | | | | | | | | | TNG. Actually, it exists in the main Samba cvs tree in APPLIANCE_TNG as I found out later :-) It adds a new parameter: server schannel = yes/auto/no defaulting to auto. What does this mean to the user: No requireSignOrSeal registry patch for XP anymore. Many thanks for this code to Luke Leighton, Elrond and anybody else I forgot to mention. My next thing will be to see if this applies cleanly to 3_0. Please test and comment! Volker
* THE Idmap patch :-)Simo Sorce2003-04-022-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.
* Subtle changes to message handling after ENUMJOBS.Jeremy Allison2003-04-021-8/+95
| | | | Jeremy.
* fix potential handle leak in _spoolss_open_printer_ex(); final fix for ↵Gerald Carter2003-04-011-1/+3
| | | | CR2102; reviewed by jra
* fix potential smbd crash when we fail to alloacte a policy handle for a ↵Gerald Carter2003-03-311-8/+9
| | | | printer open; CR 2102 (reviewed by jreilly)
* add a few error checks in EnumPrinterData()Gerald Carter2003-03-311-4/+5
|
* Fix two typosJelmer Vernooij2003-03-241-1/+1
|
* Give error message when module doesn't seem to containJelmer Vernooij2003-03-241-0/+5
| | | | pipe functions
* Give volker a hand, and let domain joins with existing user accounts workAndrew Bartlett2003-03-211-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
* lib/messages.c: Check return from chainlock before modifying message queue.Jeremy Allison2003-03-201-6/+0
| | | | | Apply the job returned limit across all requests for job queues. Jeremy.
* Put in the new modules system. It's now used by passdb and rpc. I willJelmer Vernooij2003-03-199-107/+2
| | | | put a doc about it in dev-doc later today.
* Ensure dev in make_connection is const.Jeremy Allison2003-03-181-1/+1
| | | | Jeremy.
* Make sure we mark the assumption of a fstring parameter for 'devicetype'Andrew Bartlett2003-03-161-2/+7
| | | | | | in the function prototype, and change callers to respect this. Andrew Bartlett
* Limit the number of SIDs that may be looked up, in line with existing codeAndrew Bartlett2003-03-071-0/+5
| | | | for name->sid.
* * always report ourselves as a Windows 2000 print server (evenGerald Carter2003-03-031-8/+29
| | | | | without ADS support) * add "MinorVersion" print server data key and comment on "OSVersion"
* * CR1868: only send a change notify message if we have somethingGerald Carter2003-03-031-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
* Added limit to number of jobs enumerated. Set to 0 (means no limit).Jeremy Allison2003-03-011-0/+6
| | | | | Yes I will add the docs.... Jeremy.
* additional fix for CR 601Gerald Carter2003-02-271-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.
* Progress on CR 601Gerald Carter2003-02-251-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.
* i patched the wrong branch! s/unistr2_to_dos/unistr2_to_ascii/Gerald Carter2003-02-211-1/+1
|
* couple of merges from APP_HEADGerald Carter2003-02-211-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
* Fixed compiler warning.Tim Potter2003-02-211-1/+1
|
* Make init_module() and thus smb_load_module() return an int.Jelmer Vernooij2003-02-201-4/+4
| | | | modules/developer.c: init_module() should return an int
* Use the new modules stuff to load dynrpc modules. Basically this means:Jelmer Vernooij2003-02-189-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.
* set the various DsSpooler keys that are linked to PRINTER_INFO_2 fields; CR 985Gerald Carter2003-02-181-10/+57
|
* This patch fixes one of my longest-standing pet hates with Samba :-).Andrew Bartlett2003-02-172-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
* * set PRINTER_ATTRIBUTE_RAW_ONLY; CR 1736Gerald Carter2003-02-151-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
* Ensure that only parse_prs.c access internal members of the prs_struct.Jeremy Allison2003-02-143-28/+18
| | | | | Needed to move to disk based i/o later. Jeremy.
* Removed unused variable.Jeremy Allison2003-02-131-1/+0
| | | | Jeremy.
* Merge JohnR's patch.Jeremy Allison2003-02-131-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.
* initial server side privileges implementation, using a tdb. This needs to be ↵Andrew Tridgell2003-02-121-5/+32
| | | | hooked into pdb, and we need some access control on changing privileges. That's next
* added server stubs for lsa_enum_acct_with_rightAndrew Tridgell2003-02-112-0/+61
|
* added the LSA privileges server backend stubs. Right now they just logAndrew Tridgell2003-02-062-1/+179
| | | | what was requested.
* Fixed type.Jeremy Allison2003-02-051-1/+1
| | | | Jeremy.
* Send the user's session key in the SAMLOGON reply, so that a member server canAndrew Bartlett2003-02-021-2/+11
| | | | | | use smb signing. Andrew Bartlett
* don't free() auto variables; fixes segfault when looking up ↵Gerald Carter2003-01-211-3/+5
| | | | RefusePasswordChange registry value
* strip any trailing \'s from reg key names in an openGerald Carter2003-01-191-2/+10
|
* Fix some debug levels (were set to 0 with RPC module patch), andJim McDonough2003-01-181-4/+4
| | | | change one fprintf(stderr,...) to DEBUG.
* removing extra debug statementGerald Carter2003-01-181-2/+0
|
* Enable dynamic loading of RPC modules. See docs/textdocs/RPC_PLUGGIN.txt ↵Jim McDonough2003-01-179-255/+422
| | | | for instructions.
* Fix reference count bug where smbd's would not terminate with noJeremy Allison2003-01-171-17/+0
| | | | | open resources. Jeremy.
* reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell2003-01-174-21/+24
|
* This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell2003-01-174-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.
* small merges from SAMBA_3_0; mostly typos, renames, etc...Gerald Carter2003-01-151-1/+1
|
* The last of the fstring/pstring mixups, and an extra 'static'.Andrew Bartlett2003-01-141-2/+2
|
* A couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring isAndrew Bartlett2003-01-141-3/+3
| | | | harmless, but breaks my automated check.
* typo from mergeGerald Carter2003-01-111-1/+1
|
* [merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter2003-01-111-11/+42
| | | | to send notify events; CR 1491
* a 0 length printer data value is not a memory allocation error; fix CR601Gerald Carter2003-01-091-2/+10
|
* We already have one function to move unistr2 -> multibyte-static, so weAndrew Bartlett2003-01-021-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