summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
AgeCommit message (Collapse)AuthorFilesLines
2002-07-03first cut at implementing support for browsing printer and driver driverGerald Carter1-17/+40
via regedt32.exe. The regsitry.tdb is only a framework. It is not intended to store values, only key/subkey structure. The data will be retrieved from nt*tdb (for printers) creating a virtual view of the data. You can currently connect to a Samba box using regedt32.exe (haven't tried regedit.exe). Some basic keys are created in registry.tdb for use. There are two problems.... * something is getting freed in the winreg code that causes heap corruption later on. As long as you don't play with the winreg server functionality, I don't think you'll be bitten by this. * no access controls are currently implemented * I can't browse HKLM because regedt32 greys out the SYSTEM subkey. ok so that was three.... (This used to be commit 542d3c93a998083c07b2afa91a7c927c376caf54)
2002-07-03Break up the passdb objects (to allow RPC clients to link without brining inAndrew Bartlett1-11/+80
*.o) and implment new enum_dom_users code in the SAMR RPC subsystem. Incresingly, we are using the pdb_get_{user,group}_sid() functions, in the eventual hope that we might one day support muliple domains off a single passdb. To extract the RID, we use sid_peek_check_rid(), and supply an 'expected' domain SID. The id21 -> SAM_ACCOUNT and id23 -> SAM_ACCOUNT code has been moved to srv_samr_util.c, to ease linking in passdb users. Compatiblity code that uses 'get_global_sam_sid()' for the 'expected' sid is in pdb_compat.c Andrew Bartlett (This used to be commit 5a2a6f1ba316489d118a8bdd9551b155226de94f)
2002-07-02fixed our winreg parsing to handle a diifferent form given to us byAndrew Tridgell1-6/+8
WinXP. This fixes setting security decsriptors from XP Professional. (This used to be commit 80c3c68de20a686ced38356fd68f80a53e6f1626)
2002-07-02Merge of constant renames from APPLIANCE_HEAD.Tim Potter1-8/+8
(This used to be commit daf4c6a013ffa474d768055e73a1cb31ee941e80)
2002-07-01used findstatic.pl to make some variables static and remove some deadAndrew Tridgell1-6/+6
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-06-28Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison1-37/+110
Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
2002-06-27a null grp_sid should have a 0 offset. Also removed a few more unnecessaryGerald Carter2-17/+6
prs_align() for sec_desc. (This used to be commit fc3770f281f6344a0589bfe614cd3e559b7259dd)
2002-06-26merge from APP_HEADGerald Carter2-16/+9
(This used to be commit d8cf54399d89b4023102ed8326d35147d91e4168)
2002-06-26Typo...Jeremy Allison1-1/+1
Jeremy. (This used to be commit 4ed134426dbf85a4f4e2f7fcef91cd8e8bf31519)
2002-06-26Added prs_align_uint16 for SD aligns.Jeremy Allison1-0/+11
Jeremy. (This used to be commit 374182a9ba4988cad407e6e6c45057069a3c5793)
2002-06-24sync with the sec_desc parsing fix from APP_HEAD. I will probably needGerald Carter1-16/+11
to revisit this some. (This used to be commit f471c880db8562231f2d6623124d3e9c31559f4c)
2002-06-24printing merge from SAMBA_2_2. Ther server code looks to be in sync now.Gerald Carter1-0/+2
Mostly formatting and s/free/SAFE_FREE/g changes with the two exceptions being * John driver init changes * Tim's printer enumeration bug fix (This used to be commit f7536762863811f96364e8acd3716bdb7d665bbf)
2002-06-18more debug classess activatedSimo Sorce12-0/+36
(This used to be commit 897e64d2e0c1d04ab93441ccaffe369bf43be46e)
2002-06-14Add a touch of const to this - helps with some yet-to-be-commited changesAndrew Bartlett1-3/+3
(This used to be commit a2c791c0bbce1d505e5ef2150384ad5d54ae7117)
2002-06-10Merge of Jerry's fix from 2.2.Jeremy Allison1-5/+8
Jeremy. (This used to be commit 64af68924b8fc36caac3f978dc0f9deccc41e059)
2002-06-03Add user name to netsessenum RPC to stop 1783 messages. Also fix where ↵Jim McDonough1-5/+13
username was sent as machine name. (This used to be commit 2b4a5b56664cf3c99682b64c0fc5e2ebebb749b7)
2002-06-03Fixed bogus alignment in unmarshalling of SAMR_GET_DOM_PWINFO reply.Tim Potter1-4/+0
(This used to be commit 2e25b5c3099e48869e83a1e03943d3cc2a875f24)
2002-06-01Add rpc for file close, expand file enum to take usernameJim McDonough1-4/+67
(This used to be commit 4b18a94590a25882f06f88c3c7dd1a08bf990044)
2002-05-31Add fns for netshareadd and netsharedel rpcsJim McDonough1-4/+46
(This used to be commit 4e317163858d8a7f65984a8a8507a459ac1515cc)
2002-05-31Update netfileenum on both client and server sides to do an arbitrary numberJim McDonough1-65/+43
of files. This was done to better enable net rpc file. Perhaps we can start giving back real info this way, too. (This used to be commit b3fea72ee9abd2441a49c35442c54819e4ba16ba)
2002-05-31netfileenum was missing the username filter.Jim McDonough1-1/+8
(This used to be commit 8fc3dba8bd99c55bef9ac137976dd35134a49342)
2002-05-29Added netremotetod to try and figure out which srvsvc commands are deniedTim Potter1-0/+11
when using restrictanonymous. (This used to be commit 0c65978ed07903af808da5f32cc29531aef23225)
2002-05-28When marshalling a netshareenum request the share ctr has to be initialisedTim Potter1-1/+3
to an empty value instead of a null pointer otherwise the server service crashes on NT. (This used to be commit c7214baa0540a0c7d23d3023b2c2ff4cde0f9f7f)
2002-05-24merge from SAMBA_2_2.Gerald Carter2-3/+45
Tim, please check the prs_align() removed from sec_io_desc() and make sure it doesn't break anything else. I know it is right for the printing needs and I have tested some other general things like viewing acls on directories, but I would feel more comfortable if you would have a look as well. jerry (This used to be commit 83f109c940f30d9b35176540d8bdccbb22ffa3a1)
2002-05-20OK that last commit was incorrect - this call is parsed properly. I onlyTim Potter1-4/+0
imagined it wasn't! (This used to be commit bbad6c6678c89a33fb233091f5965ccd1aa589f6)
2002-05-20There's probably a pointer to a buffer at the end of a enumprinterdrivers()Tim Potter1-0/+4
rpc call which we currently don't parse - just added a comment about it for the moment as not parsing it is harmless. (This used to be commit 2429c4cc796576aa2d816a14b10fdd932b672a02)
2002-05-20No need to pass a fstring in make_spoolss_q_enumprinters()Tim Potter1-1/+1
(This used to be commit 1fb8e2b3a07fdc0bb302f02a451ed32a275f0c10)
2002-05-18A few things in this commit:Andrew Bartlett1-3/+20
cleanup some of the code in net_rpc_join re const warnings and fstrings. Passdb: Make the %u and %U substituions in passdb work. This is done by declaring these paramters to be 'const' and doing the substitution manually. I'm told this is us going full circle, but I can't really see a better way. Finally these things actually seem to work properly... Make the lanman code use the pdb's recorded values for homedir etc rather than the values from lp_*() Add code to set the plaintext password in the passdb, where it can decide how to store/set it. For use with a future 'ldap password change' option, or somthing like that... Add pdb_unix, so as to remove the 'not in passdb' special cases from the local_lookup_*() code. Quite small, as it uses the new 'struct passwd -> SAM_ACCOUNT' code that is now in just one place. (also used by pdb_smbpasswd) Other: Fix up the adding of [homes] at session setup time to actually pass the right string, that is the unix homedir, not the UNC path. Fix up [homes] so that for winbind users is picks the correct name. (bad interactions with the default domain code previously) Change the rpc_server/srv_lsa_nt.c code to match NT when for the SATUS_NONE_MAPPED reply: This was only being triggered on no queries, now it is on the 'no mappings' (ie all mappings failed). Checked against Win2k. Policy Question: Should SID -> unix_user.234/unix_group.364 be considered a mapping or not? Currently it isn't. Andrew Bartlett (This used to be commit c28668068b5a3b3cf3c4317e5fb32ec9957f3e34)
2002-05-17Make non-static for some later work (pushing the info3 across the winbindAndrew Bartlett1-2/+3
pipe for smbd to decode), and fix up the debug. (At least I assume it is wrong, can an expert care to comment?) (This used to be commit e5b4331ffa99d769b062053d6afc4772355fa5b2)
2002-05-17Add a touch of constAndrew Bartlett1-1/+1
(This used to be commit 3e93b216ddba14592a0193664c5d6bcbef898f1a)
2002-05-17A few more trusted domains updates from mimir.Andrew Bartlett1-18/+7
I think we may still need to look at our server enumeration code, but other than that, its much better in the tree than out. Andrew Bartlett (This used to be commit d57a1b4629d12a0374cc6d74dfc6f5d4793fcef8)
2002-05-14Added deleteprinterdata client rpc.Tim Potter1-1/+13
(This used to be commit 217ae50acd8cf088e268e7d2a6a7c192aca9e2f1)
2002-05-14Added writeprinter rpc command.Tim Potter1-0/+14
(This used to be commit a1934a7a8eda592e283a01014280ddb373564927)
2002-05-14Change make_spoolss_q_{get,set}printerdata() take a char* and length ratherTim Potter1-11/+31
than a unistr2. Printer data isn't necessarily in unistr format. Tallocate memory to hold returned data when unmarshalling getprinterdata and enumprinterdata replies. (This used to be commit 89633a1d87d2a437dc1ceab9439f415ee1ec606d)
2002-05-13compile fix merge from SAMBA_2_2Gerald Carter1-11/+21
(This used to be commit 2676be4e419878fbf74b619949e1d84c6186691c)
2002-05-13Support for client side startdocprinter.Tim Potter1-3/+63
Set useless_ptr = 1 for marshalling smb_io_doc_info() so it actually works. (This used to be commit 8e09e9454685f4638375247fdb4a1e7c6de91704)
2002-05-10misc merge from SAMBA_2_2Gerald Carter1-0/+4
(This used to be commit 0420098c47555224d2425845137e4159698e02c2)
2002-05-10devmode parsing merge from SAMBA_2_2Gerald Carter1-29/+74
(This used to be commit 59e49a79b485f5ba26dedff8a7d7fe1c8c77f16a)
2002-05-08Added client side spoolss rpc commands for startpageprinter,Tim Potter1-0/+60
endpageprinter, setjob and getjob. (This used to be commit d091a9d300c70b708218067d355c8282a6f14ab6)
2002-05-07Grr - the removal of the nnecessary prs_align() from relative unicodeTim Potter1-2/+0
strings didn't make it across into HEAD. (This used to be commit 4d715cb6829795b0fc0fe035ccb70ce0d1920c31)
2002-04-29don't set the owner and group sid offset is there are no owner or groupJean-François Micouleau1-4/+5
owner. J.F. (This used to be commit 68e9211f5df0480cb88d7d21140c4954da47e7ae)
2002-04-22merge from SAMBA_2_2Gerald Carter1-42/+19
(This used to be commit 5e381abbbfaa15f3ebd89cba3cd9bb6de8e4ff4e)
2002-04-14Partly based on the work by mimir (Rafal SzczesniakAndrew Bartlett3-27/+96
<mimir@diament.ists.pwr.wroc.pl>) this patch allows samba to correctly enumerate its trusted domains - by exaimining the keys in the secrets.tdb file. This patch has been tested with both NT4 and rpcclient/wbinfo, and adds some extra functionality to talloc and rpc_parse to allow it to deal with already unicode strings. Finally, this cleans up some const warnings that were in net_rpc.c by pushing another dash of const into the rpc client code. Andrew Bartlett (This used to be commit 0bdd94cb992b40942aaf2e5e0efd2868b4686296)
2002-04-11HP2500C driver writes devmode with private data that endsJeremy Allison1-0/+9
on a 2 byte boundary. We then miss-parse the desired_access. Also added other fixes to ensure we align after private data (discussed with Gerry). Jeremy. (This used to be commit 4369a58765f382e118e5393c805336484671cbf9)
2002-04-11specversion merge from SAMBA_2_2Gerald Carter1-0/+27
(This used to be commit d87aa35d482824df7b5a2e87240ae43c113cc730)
2002-04-10Fixed missing alignment in spoolss_io_q_enumjobs() function.Tim Potter1-0/+3
(This used to be commit e878cdc9f59084f39c022f2faa140369f76e94ec)
2002-04-10Added Shirish's client side caching policy change.Jeremy Allison1-0/+114
Jeremy. (This used to be commit 16015c07eab2e57fa3771051e3e08fde21757cfa)
2002-04-09The useless_ptr must be non-zero for addform and setform client functionsTim Potter1-2/+5
to work. Note about setprinter level 1 not existing. (This used to be commit 6367bfc4781a678923f1fba4681c9b7fc6bb9710)
2002-04-04Fixed the handle leak in the connection management code (this code is crapJeremy Allison1-0/+6
and should be rewritten, just not now... :-). Jeremy. (This used to be commit 5de792e7e9c2ad1422ac146caba632baa3f4e5c5)
2002-03-26OpenPrinter() merge from 2.2Gerald Carter1-19/+76
(This used to be commit 619397cc90549d4602ecddc25ee50eb247c913ee)