summaryrefslogtreecommitdiff
path: root/source3/rpc_server
AgeCommit message (Collapse)AuthorFilesLines
2002-03-31Removed unused variable.Tim Potter1-1/+0
(This used to be commit 3e58e9dbabc4e4a1289ff6a43ddbb5de37b02515)
2002-03-30Hack to share pipe handles between lsa and samr pipes as NT4.x usrmgrJeremy Allison1-1/+12
insists on re-using an lsa handle opened on a pipe then closed - this keeps them around so long as a samr pipe is also open. Jeremy. (This used to be commit f029bd348c8c16a8774c3fb4f7f1d76470c7688f)
2002-03-29Don't core dump listing thousands of users in usrmgr.Jeremy Allison2-11/+22
Jeremy. (This used to be commit c6566fa5fadf37a2b133e7be1f13c0de93efab34)
2002-03-29Ensure we return a parseable value if invalid handle given.Jeremy Allison1-17/+17
Jeremy. (This used to be commit f169f3f4df81537426f708d68da44e0fc40ad15e)
2002-03-28merge from SAMBA_2_2Gerald Carter1-1/+6
(This used to be commit 606450f3cbe028a526ec6db9cea59d65324c3314)
2002-03-27merge from SAMBA_2_2Gerald Carter1-6/+6
(This used to be commit fe099006bbd1103edb5804d70743b211bbc584fb)
2002-03-26OpenPrinter() merge from 2.2Gerald Carter2-7/+156
(This used to be commit 619397cc90549d4602ecddc25ee50eb247c913ee)
2002-03-23Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison1-2/+2
cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy. (This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)
2002-03-22Stomped on some header file version numbers that have crept back in.Tim Potter2-3/+2
(This used to be commit e66bdf1229ba84f64c19e817e2c4081dbbf0bee8)
2002-03-21Make sure to initaliase SAM_ACCOUNT pointers to NULL, otherwise pdb_init_sam()Andrew Bartlett1-3/+3
fails. Andrew Bartlett (This used to be commit 56009ffbaa00259d15f286248a7ab73c55371819)
2002-03-20merge from APPLIANCE_HEADGerald Carter1-12/+1
(This used to be commit 9282aa02d44ae7a7688e8399b397aae35f73ddd1)
2002-03-20resetprinter merge from SAMBA_2_2Gerald Carter1-0/+22
(This used to be commit 88d8897e21749f177952b264031aa386bbbeaaeb)
2002-03-20Merge from app-head:Tim Potter1-2/+2
> Don't put two copies of the server name in construct_printer_info_1() (This used to be commit 47b1003bc5a069e84cb20df507022e5ff3e93832)
2002-03-19second step to gain free uid<->rid mappingSimo Sorce1-10/+82
we still need to free gid<->rid mapping and few other stuff (This used to be commit aa4b6f8181f34196a28951264dd8b631a5deef7f)
2002-03-19Merge in JohnR's page count fixes.Jeremy Allison1-4/+31
Jeremy. (This used to be commit 2e3133fbe5531b9bbc9bf46a04b27fa58e555f5a)
2002-03-18more verbose checking in talloc and util_pwSimo Sorce1-2/+42
fixed tdbsam memory corruption (and segfault) reducing calls to pdb_uid_to_user_rid and countrary to 0 to move to a non alghoritmic rid allocation with some passdb modules. (This used to be commit 9836af7cd623357feaec07bc49cfb78f0aa01fc3)
2002-03-17Added dos_errstr() function. Not all errors in list yet.Tim Potter1-7/+7
(This used to be commit ddb5753e36b8c5efb48ce5c82c16d970fb8e76b6)
2002-03-17Renamed get_nt_error_msg() to nt_errstr().Tim Potter2-2/+2
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-15syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter2-149/+317
in the reverse). * add in new printer change notify code from SAMBA_2_2 * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex() * sync up the _print_queue_struct in smb.h (why did someone change the user/file names in fs_user/fs_file (or vice-versa) ? ) * sync up some cli_spoolss_XXX functions (This used to be commit 5760315c1de4033fdc22684c940f18010010924f)
2002-03-14Backed out enumprinters stuff - leave it for another day.Tim Potter1-24/+10
(This used to be commit d7efc5dd3dd712e7138b5c79eea9756125757175)
2002-03-12Merge of enumprinters vs getprinter naming patch from 2.2Tim Potter1-14/+30
(This used to be commit dfd51bc8d0714473880bf50369f7994304c1d83f)
2002-03-10return the correct SID and domain name for the samr enum_domain andAndrew Tridgell1-8/+30
lookup_domain calls. We were incorrectly returning the PDCs domain nameand SID when we are a domain member. We should only do that when we are the DC (This used to be commit f56d689497eaa670cbfb214486ba88d5972129db)
2002-03-08merge from 2.2Gerald Carter1-3/+3
(This used to be commit 66eb969ade0dfde355df3e308dccbc9522087eef)
2002-03-08merge from 2.2Gerald Carter1-2/+2
(This used to be commit 4960692e958c986ca7f71e091333300310b0e0b2)
2002-03-08Turns out an Admin user shouldn't always have access on a handle.Jeremy Allison1-7/+0
Jeremy. (This used to be commit d31d2dcd22e1be2c26ea315e1b0e8442822a9a0f)
2002-03-07Merge in the change to do per-handle access checks on setdata/setform etc.Jeremy Allison1-70/+138
Should allow the buggy spoolss code on NT to work against us. Jeremy. (This used to be commit 2b3609a7dd55d96f5aafe137fff1ac2da0434867)
2002-03-05Fix the NTSTATUS -> WERROR for srvsvc pipe.Jeremy Allison1-137/+128
Jeremy. (This used to be commit 2b85d3570c2b149049482c3878c50cf8f5bfca61)
2002-03-05Spelling fixes.Tim Potter1-3/+3
(This used to be commit a7fa0733badad66ae610eac5e01569cf264976f3)
2002-03-03Some more fixes to enusre we execute the same code pathes as before thisAndrew Bartlett1-8/+8
change, just in different packets. (This used to be commit ffa6c61f0bb0c413d4bcc46da3bc879c40a40569)
2002-03-03This patch allows NT4 domains to trust Samba.Andrew Bartlett1-84/+81
Simply add an account (smbpasswd -a -i REMOTEDOM) and join with 'user manager' on the remote domain. The only issue (at the auth level at least) that prevented NT4 domains from trusting Samba was that our netlogon code was based on what appear to be invalid assumptions. The netlogon code appears to assume that the 'client name' specified corrosponds to an account of the same form. This doesn't apply in trusted domains, becouse the account is in the form domain$ Now that we use the supplied account name, and no longer make our access control checks at the challange stage (where this info is unavailable) we match the Win2k behaviour for invalid machine logins, and don't need to know the names of PDCs/BDCs in trusting domains. We also kill off the 'you logged on with a machine account, use your user account' error message, becouse the previous NT_STATUS return was compleatly bogus. (The ACCESS_DENIED we now return matches Win2k, and gives snane error messages on the client). TNG doesn't use this and has to do magic password syncs between the various accounts for domain/pdc/bdc. This patch feels like the much more natural way of doing things, and has been mildly tested. Andrew Bartlett (This used to be commit 542673fcd6654a1d0966dddadde177a4c4ce135d)
2002-03-01SECURITY FIXES:Andrew Bartlett1-1/+7
Remove a stray 'unbecome_root()' in the ntdomain an auth failure case. Only allow trust accounts to request a challange in srv_netlogon_nt.c. Currently any user can be the 'machine' for the domain logon. MERGE for 2.2. Andrew Bartlett (This used to be commit 0242d0e17827b05d8cd270f675d2595fa67fd5b9)
2002-02-26Fixup the sending of printer change messages from job changes.Jeremy Allison1-9/+16
Jeremy. (This used to be commit 28d4e7a3e2bd8f15ef807b821e4300a72bbc6904)
2002-02-25Merge of printing performance fixes from appliance.Tim Potter1-40/+61
(This used to be commit c8dc59dfe877f63bea6976b7d7fd448e0c8722ba)
2002-02-21merge from 2.2Gerald Carter1-1/+1
(This used to be commit 505119f0a7c6f10fd7e580edfe1bd0fb6ec36428)
2002-02-21merge from 2.2Gerald Carter1-0/+5
(This used to be commit 63ab947fd9dd17a4c370402e74b389458bbd3a60)
2002-02-20merge from 2.2Gerald Carter1-5/+8
(This used to be commit 25fb4a8d110bcdcbe7822a833cab9cfdec8a1fb2)
2002-02-15merge from APPLIANCE_HEADGerald Carter1-75/+18
(This used to be commit 696d439515016e4c2bc5ad085e443abe43c95136)
2002-02-12merge from 2.2Gerald Carter1-15/+7
(This used to be commit e18a7c26476e05f95850ac2bbeb42c2588115741)
2002-02-12merge from 2.2Gerald Carter1-4/+18
(This used to be commit 09fc979172327d6396642e824f6d482c6f986850)
2002-02-09Bring printing in HEAD inline with 2.2.x and app-head.Jeremy Allison1-171/+320
Jeremy. (This used to be commit 771ef92fc6e43725b7cc351079998a8acb74abef)
2002-02-08merge from APPLIANCE_HEADGerald Carter1-1/+1
(This used to be commit e734c1971d2841b2cfe37414fe4893f4a66b22a9)
2002-01-31Added administrator access check for server side add, delete and setformTim Potter1-10/+34
rpcs. The only one I have been able to verify is addform - can't get the client side routines working properly yet. )-: (This used to be commit 3cd97d65dea428382104ebde63eaf660aa3942fb)
2002-01-31this fixes the problem of not being able to add a SD to a file on aAndrew Tridgell1-2/+1
non-domain Samba server from a NT4 client. Note that this exactly reverses a change by Jeremy on the 18th of December 2001, reverting the code back to what JF originally wrote. I have looked carefully with a sniffer and JFs original NULL sid is correct (ie. it matches what NT4 does) and also fixes the problem. Sending a blank sid (which is what jeremy's patch did) causes NT4 to give a classic "parameter is incorrect error" and prevents the addition of new ACLs. (This used to be commit 9930cf97330dd93985c5558cec6b24406e90c228)
2002-01-30Removed version number from file header.Tim Potter20-40/+20
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-26merge from APPLIANCE_HEADGerald Carter1-3/+3
(This used to be commit e3b87ffc8c26f9fd4c3e8181897b8812b7dc4ab6)
2002-01-26Add the become_root()/unbecome_root() wrapper around the lookup_name() call,Andrew Bartlett1-1/+9
and its new args. (This used to be commit e7b3d64f6055b5d3b036f525f0ece3c9479d4f7a)
2002-01-26Move the lsa code across to the changed args for lookup_name, and surround itAndrew Bartlett1-2/+11
in become_root()/unbecome_root(). Also only allocate the memory the client reqests - and don't allow the client to trigger an SMB_ASSERT if they ask for 'more'. Up the maximum number of sids allowed, and note that this is an arbiary guess, and can be raised without consequence. Andrew Bartlett (This used to be commit 6e7667125d142670db7393ed7a48386f3821d896)
2002-01-26Try to move towards slightly sane linking for Samba by removing some pdb_...()Andrew Bartlett1-12/+30
calls from rpc_parse/parse_net.c - instead these values are passed as a paramater. Unfortunetly some there is still some samr work to be done before this is actually useful. Andrew Bartlett (This used to be commit 4fc9e16ad7a77cf2e37b27640c0dec2052e9cda0)
2002-01-26Fixed ADDPRINTEREX to take a devmode and a security descriptor...Jeremy Allison1-6/+4
Jeremy. (This used to be commit 27f65b3aad13ecd33bbb84048d70e3dde212f278)
2002-01-25Make systemtime work for spooling on bigendian systems. Fix fromJeremy Allison1-3/+20
Benjamin (Bj) Kuit bj@it.uts.edu.au. Jeremy. (This used to be commit 5f4de275a3a63a95e76d077ffc94321a078833bf)