summaryrefslogtreecommitdiff
path: root/source/rpc_client/cli_reg.c
Commit message (Collapse)AuthorAgeFilesLines
* removed some unnecessary files from 2.2 These will stay in HEAD untilGerald Carter2001-04-091-1078/+0
| | | | they are completely moved over to the new interface.
* Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison2001-03-091-32/+32
| | | | | | | | | We were reading the endainness in the RPC header and then never propagating it to the internal parse_structs used to parse the data. Also removed the "align" argument to prs_init as it was *always* set to 4, and if needed can be set differently on a case by case basis. Now ready for AS/U testing when Herb gets it set up :-). Jeremy.
* Correctly marshall "POLICY_HND" structs accross all uses.Jeremy Allison2001-03-071-8/+6
| | | | Jeremy.
* But Doctor, I had to kill the patient in order to save him....Jeremy Allison2001-02-211-7/+2
| | | | | | | | | | | | | | | | | | | This will probably break 2.2 for a while. Do *NOT* checkout unless you like core dumps. This is the first merge of the TNG SAMR code into 2.2. It will eventually give us a wonderful PDC, but maybe painful in the short term. It had to be done however, and this touches almost every file (mostly just removing the OLD_NT_DOMAIN) stuff. I removed some SAMR functionality from rpcclient that would no longer compile. Also changed fstring to 256 bytes to better match an NT pathname. Jeremy.
* Syncup of smbcacls from HEAD. Removal of C++ comments.Jeremy Allison2000-12-041-1/+1
| | | | Jeremy.
* Ok - this is a *BIG* change - but it fixes the problems with static stringsJeremy Allison2000-07-271-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in the RPC code. This change was prompted by trying to save a long (>256) character comment in the printer properties page. The new system associates a TALLOC_CTX with the pipe struct, and frees the pool on return of a complete PDU. A global TALLOC_CTX is used for the odd buffer allocated in the BUFFERxx code, and is freed in the main loop. This code works with insure, and seems to be free of memory leaks and crashes (so far) but there are probably the occasional problem with code that uses UNISTRxx structs on the stack and expects them to contain storage without doing a init_unistrXX(). This means that rpcclient will probably be horribly broken. A TALLOC_CTX also needed associating with the struct cli_state also, to make the prs_xx code there work. The main interface change is the addition of a TALLOC_CTX to the prs_init calls - used for dynamic allocation in the prs_XXX calls. Now this is in place it should make dynamic allocation of all RPC memory on unmarshall *much* easier to fix. Jeremy.
* Added the NETDFS pipe to allow remote administration of the msdfs symlinksShirish Kalele2000-05-181-2/+3
| | | | on the samba server.
* Cutover from 2.2.x - missed in merge.Jeremy Allison2000-05-171-4/+2
| | | | Jeremy.
* acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.Jeremy Allison2000-03-221-25/+0
| | | | | | | | | | | | | | include/byteorder.h: Added alignment macros. include/nameserv.h: Added defines for msg_type field options - from rfc1002. lib/time.c: Typo fix. lib/util_unistr.c: Updates from UNICODE branch. printing/nt_printing.c: bzero -> memset. smbd/connection.c: Added check for UT_SYSLEN for utmp code. Other fixes : Rollback of unapproved commit from Luke. Please *ask* next time before doing large changes to HEAD. Jeremy.
* added the following message to all dce/rpc client/server code, exceptLuke Leighton2000-03-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the spoolss code (it's cut from TNG) and the smb-dce/rpc interface code that jeremy has been working up to TNG-functionality. i also want this message to go into SAMBA_2_0 and SAMBA_2_0_RELEASE, because it is intolerable that potentially good modifications be made to code that is going to be thrown away, and people waste their time fixing bugs and adding enhancements that have already been carried out already, up to two years ago in the TNG branch. /* * THIS CODE IS OUT-OF-DATE BY TWO YEARS, IS LEGACY DESIGN AND VERY, VERY, * INCOMPLETE. PLEASE DO NOT MAKE ANY FURTHER ENHANCEMENTS TO THIS CODE * UNLESS THEY ARE ALSO CARRIED OUT IN THE SAMBA_TNG BRANCH. * * PLEASE DO NOT TREAT THIS CODE AS AUTHORITATIVE IN *ANY* WAY. * * REPEAT, PLEASE DO NOT MAKE ANY MODIFICATIONS TO THIS CODE WITHOUT * FIRST CHECKING THE EQUIVALENT MODULE IN SAMBA_TNG, UPDATING THAT * FIRST, *THEN* CONSIDER MAKING THE SAME MODIFICATION IN THIS BRANCH * * YOU WILL, ALMOST GUARANTEED, FIND THAT THE BUG-FIX OR ENHANCEMENT THAT * YOU THINK IS NECESSARY, HAS ALREADY BEEN IMPLEMENTED IN SAMBA_TNG. * IF IT HAS NOT, YOUR BUG-FIX OR ENHANCEMENT *MUST* GO INTO SAMBA_TNG * AS THE SAMBA_TNG CODE WILL REPLACE THIS MODULE WITHOUT REFERENCE TO * ANYTHING IN IT, WITH THE POSSIBLE RISK THAT THE BUG-FIX OR ENHANCEMENT * MAY BE LOST. * * PLEASE OBSERVE AND RESPECT THIS SIMPLE REQUEST. * * THANK YOU. * * lkcl@samba.org */
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-678/+555
|
* further abstraction involving client states. main client-side codeLuke Leighton1999-11-271-23/+20
| | | | | is pretty much independent of SMB client states, which will make it easier to add other transports.
* cool! completed a samr* API that _would_ look like an msdn samr* api...Luke Leighton1999-11-251-129/+24
| | | | | | if microsoft bothered to publish it. actually, there are good reasons for not publishing it: people might write programs for it, and then those programs wouldn't work on nt5, for example...
* registry API moved over to new format. reg_connect() is the top-levelLuke Leighton1999-11-241-27/+175
| | | | | | function, which takes \\server_name. tested a _few_ functions. found that regcreatekey receives a Fault PDU.
* rewrote policy handle code to be generic (it's needed for client-side too)Luke Leighton1999-11-241-2/+4
| | | | attempted to fix regsetsec command
* updating reg_value_info() parsing code to take BUFFER2 instead of justLuke Leighton1999-11-181-3/+4
| | | | a char*. now copes with multiple types.
* added regqueryval command (experimental) to get reg_io_q_info() andLuke Leighton1999-11-181-4/+3
| | | | | | | | reg_io_r_info() working properly. previously they weren't well understood (well, they were the first of the registry functions i did, back in december 97, ok??? :-) set ntversion to 0x1 in SAMQUERY, so that we reply same as NT4 srv.
* rpcclient regenum key client code rewritten to use higher order functions.Luke Leighton1999-10-291-1/+3
|
* added HKEY_CLASSES_ROOT MSRPC open call. reg_open_hkcr etc. supportedLuke Leighton1999-10-291-0/+65
| | | | in rpcclient, regenum HKEY_CLASSES_ROOT or regenum HKCR to test.
* - typecast malloc / Realloc issues.Luke Leighton1999-10-251-2/+2
| | | | - signed / unsigned issues.
* renamed "class" local variable to avoid global clashLuke Leighton1999-10-151-2/+2
|
* reverted jeremy's c++-like security descriptor modifications as theLuke Leighton1999-08-031-27/+16
| | | | | | | | | simplest method to get rpcclient's reggetsec command working. the buffers passed as arguments in do_reg_get_key_sec() do need to be locally allocated not dynamically allocated, as two calls to reg_get_key_sec() are needed. on the first, the server fills in the size of the security descriptor buffer needed. on the second, the server fills in the security descriptor buffer.
* Mainly BDC-related changes.Matthew Chapman1999-04-081-1/+1
| | | | | | | | | | | | | | | | | | * Added SEC_CHAN_BDC * Propagate sec_chan into the various functions which change trust account passwords, so they can be used for domain control and inter-domain trusts. * Fix for endianness problem reported by Edan Idzerda <edan@mtu.edu>. A BUFFER2 is really a "unibuf" in my terminology and we should treat it as such. * Added some more common NT structures (BIGINT, BUFHDR2, BUFFER4). * Added NET_SAM_SYNC (-> NetDatabaseSync2) RPC for account replication. Still experimental and incomplete, with a few too many NULL security descriptors lying around (must go look at Jeremy's SD code). Haven't worked out password encryption yet either. However, the XXX_INFO structures I've added to rpc_netlogon.h are quite nice as they give some insight into how these objects are stored in the SAM.
* added jeremy's new c++-like code for parsing of security descriptors.Luke Leighton1999-02-231-16/+28
|
* rpcclient shutdown commandLuke Leighton1999-02-161-0/+55
|
* Always null-terminate strings.Matthew Chapman1999-02-151-4/+4
| | | | Also some string length and sizeof(pointer) corrections.
* UNICODE cleanup (see lib/util_unistr.c).Matthew Chapman1999-02-121-4/+6
| | | | | | No more ugly static library buffers and all functions take a destination string length (especially unistrcpy was rather dangerous; we were only saved by the fact that datagrams are limited in size).
* removed nt_pipe_fnum from struct cli_state. need to be able to callLuke Leighton1998-12-071-35/+35
| | | | | | LsaLookupSids etc from within SamrQueryAliasMembers, for example. fnum is now a parameter to client functions. thanks to mike black for starting the ball rolling.
* security descriptorsLuke Leighton1998-11-131-1/+16
|
* security descriptors.Luke Leighton1998-11-121-2/+2
| | | | kanji const char* warnings.
* cleaning up conflicts between group code not yet committed andLuke Leighton1998-11-121-3/+51
| | | | | | | changes from yesterday by me, jeremy and andrew. jeremy, your ACB_PWNOTREQ mod would have caused a crash if the user didn't exist (first check should be for smb_pass != NULL)
* clearing up security descriptorLuke Leighton1998-11-111-0/+4
|
* changed syntax of registry commands so keys can start with HKLM or HKU.Luke Leighton1998-11-111-38/+33
| | | | sorted lookupsids command
* Makefile.in: Added target for makeyodldocs - not used by default.Jeremy Allison1998-11-111-5/+5
| | | | | | | rpc_client/cli_reg.c: The perils of cut-n-paste coding include using variables before they are initialised :-). script/makeyodldocs.sh: Remove the intermediate files. Jeremy.
* registry delete value command: "regdeleteval".Luke Leighton1998-11-111-0/+54
| | | | this is just so unbelievably simple to do...
* renamed unk_1b to flush_keyLuke Leighton1998-11-111-9/+9
|
* - renamed open_policy to open_hklm.Luke Leighton1998-11-111-21/+78
| | | | | | - renamed open_unk_4 to open_hku - fixed createkey issue spotted by phil cox
* rpcclient registry key delete command: "regdeletekey".Luke Leighton1998-11-101-0/+54
|
* registry modification requires a "sync" or "refresh" on the parent key.Luke Leighton1998-11-101-0/+56
| | | | opcode 0xb added to do this. a likely candidate name is "RegFlushKey".
* rpcclient registry commands.Luke Leighton1998-11-101-19/+133
|
* split socket util functions into util_sock.c. util.c NOT committedLuke Leighton1998-11-091-0/+645
and util_sock.c NOT included in Makefile.in. registry commands added to rpcclient. waiting for 2_0_0 split before committing modified files. these files are new modules, and are not referenced in the Makefile.in