summaryrefslogtreecommitdiffstats
path: root/source3/rpcclient/cmd_lsarpc.c
Commit message (Collapse)AuthorAgeFilesLines
* r18188: merge 3.0-libndr branchJelmer Vernooij2007-10-101-2/+2
| | | | (This used to be commit 1115745caed3093c25d6be01ffee21819fb0a675)
* r16644: Fix bug #3887 reported by jason@ncac.gwu.eduJeremy Allison2007-10-101-3/+3
| | | | | | | by converting the lookup_XX functions to correctly return SID_NAME_TYPE enums. Jeremy. (This used to be commit ee2b2d96b60c668e37592c79e86c2fd851e15f69)
* r15553: minor rpcclient cleanup: length is already set in data_blob.Günther Deschner2007-10-101-3/+0
| | | | | Guenther (This used to be commit a80f3660573872e7a1c9e4d37262c830d68415e1)
* r15041: Adding rpc client calls to manipulate auditing policies on remote CIFSGünther Deschner2007-10-101-41/+115
| | | | | | | | | | servers. Also add a new "net rpc audit" tool. The lsa query infolevels were taken from samb4 IDL, the lsa policy flags and categories are partly documented on msdn. I need to cleanup the double lsa_query_info_policy{2}{_new} calls next. Guenther (This used to be commit 0fed66926f4b72444abfc8ffb8c46cca8d0600aa)
* r14144: allow to set sec_info in rpcclients lsa_query_secobj.Günther Deschner2007-10-101-3/+6
| | | | | Guenther (This used to be commit 18ee669c604b344910308fef81c2544e208ef62c)
* r13316: Let the carnage begin....Gerald Carter2007-10-101-2/+2
| | | | | Sync with trunk as off r13315 (This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
* r12131: Fix it really, this time :)Günther Deschner2007-10-101-2/+2
| | | | | Guenther (This used to be commit 4a506dbc3c63b965044aa16374f46531375cc920)
* r12130: display domain GUID.Günther Deschner2007-10-101-1/+1
| | | | | Guenther (This used to be commit 8e63da03665651ab0315d76d27a4ea4375b2acd0)
* r11858: Fill in the clientside TRUSTED_DOMAIN_INFO_EX query.Günther Deschner2007-10-101-1/+15
| | | | | Guenther (This used to be commit 02f13dee6d0bbca71a991682bfe214ed8363e818)
* r11857: Fix the build.Günther Deschner2007-10-101-1/+1
| | | | | Guenther (This used to be commit 6508cb1c805dee291c87a57998f0f1f53b9a6013)
* r11286: Fix a potential segfaultVolker Lendecke2007-10-101-7/+10
| | | | (This used to be commit f4c310d55624ab726e3cdc49dcc69f9162c797aa)
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-81/+96
| | | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
* r7537: Print passwords in display charset.Günther Deschner2007-10-101-2/+2
| | | | | Guenther (This used to be commit f3bdc20ba3de77ceacfd328ff85322666bd81ca8)
* r7391: - Added client-support for various lsa_query_trust_dom_info-calls and aGünther Deschner2007-10-101-0/+188
| | | | | | | | | | | | | | | | | | | | | | | rpcclient-tester for some info-levels. Jerry, I tried to adopt to prs_pointer() where possible and to not interfere with your work for usrmgr. - Add "net rpc trustdom vampire"-tool. This allows to retrieve Interdomain Trust(ed)-Relationships from NT4-Servers including cleartext-passwords (still stored in the local secrets.tdb). The net-hook was done in cooperation with Lars Mueller <lmuelle@suse.de>. To vampire trusted domains simply call: net rpc trustdom vampire -S nt4dc -Uadmin%pass Guenther (This used to be commit 512585293963a1737f831af697ea1dc092d63cb0)
* r5726: merge LsaLookupPrivValue() code from trunkGerald Carter2007-10-101-4/+8
| | | | (This used to be commit 277203b5356af58ce62eb4eec0db2eccadeeffd6)
* r5592: Oops, accidentally committed test version of rpcclient. Reverting ↵Jim McDonough2007-10-101-6/+5
| | | | | | changes. (This used to be commit a5fe34ca7d57c18f510b9cc68e75c4db370fe052)
* r5591: Implement "net rpc trustdom del", including client side ofJim McDonough2007-10-101-5/+6
| | | | | samr_remove_sid_from_foreign_domain. (This used to be commit 8360695fc02dfb09aff92a434bf9d411e65c478c)
* r4933: List not only the first 10 trusts with rpcclient -c enumtrust.Volker Lendecke2007-10-101-16/+22
| | | | | Volker (This used to be commit 9ca6cfcf1e4a905d47429a6dc18e2bd7ad5fe1e3)
* r4821: finish off 'net rpc rights [list|grant|revoke]'Gerald Carter2007-10-101-1/+1
| | | | | | | one small todo item is to add a 'accounts' sub option to 'net rpc list' so enumerate all privileged SIDs and their associated rights. (This used to be commit bf4385c79a0ce2e4983ffa11d39367dbf1d4dcfd)
* r4742: add server support for lsa_add/remove_account_rights() and fix some ↵Gerald Carter2007-10-101-1/+6
| | | | | | parsing bugs related to that code (This used to be commit 7bf1312287cc1ec6b97917ba25fc60d6db09f26c)
* r4736: small set of merges from rtunk to minimize the diffsGerald Carter2007-10-101-0/+43
| | | | (This used to be commit 4b351f2fcc365a7b7f8c22b5139c299aa54c9458)
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-1/+1
| | | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
* r196: merging struct uuid from trunkGerald Carter2007-10-101-2/+2
| | | | (This used to be commit 911a28361b9d8dd50597627f245ebfb57c6294fb)
* This merges in my 'always use ADS' patch. Tested on a mix of NT and ADSAndrew Bartlett2004-01-081-11/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | domains, this patch ensures that we always use the ADS backend when security=ADS, and the remote server is capable. The routines used for this behaviour have been upgraded to modern Samba codeing standards. This is a change in behaviour for mixed mode domains, and if the trusted domain cannot be reached with our current krb5.conf file, we will show that domain as disconnected. This is in line with existing behaviour for native mode domains, and for our primary domain. As a consequence of testing this patch, I found that our kerberos error handling was well below par - we would often throw away useful error values. These changes move more routines to ADS_STATUS to return kerberos errors. Also found when valgrinding the setup, fix a few memory leaks. While sniffing the resultant connections, I noticed we would query our list of trusted domains twice - so I have reworked some of the code to avoid that. Andrew Bartlett (This used to be commit 7c34de8096b86d2869e7177420fe129bd0c7541d)
* Merge of waider's rpcclient return type patch.Tim Potter2003-03-181-13/+13
| | | | (This used to be commit fb91bfa7a28f548dcc549f7e09805e4485c83538)
* Merge: const fixes.Tim Potter2003-02-251-14/+14
| | | | (This used to be commit a20aba09996e470425a151271237f2d48a8302af)
* Check return code of string_to_sid. (Merge from HEAD)Martin Pool2003-02-181-2/+5
| | | | (This used to be commit 5d09aea6f78aa247dbd77617c93c2a1dd2e2702f)
* Merge tridge's client priv code from HEAD.Jeremy Allison2003-01-291-11/+56
| | | | | Jeremy (This used to be commit 49739be1e2f047fa2cc2fd42eadb190a82114485)
* Merging tridge's privillage client changes from HEAD.Jeremy Allison2003-01-281-0/+74
| | | | | Jeremy. (This used to be commit 30a33920b4d834edc877cc0080291fbda983083a)
* *lots of small merges form HEADGerald Carter2003-01-151-1/+1
| | | | | | | *sync up configure.in *don't build torture tools in make all *make sure to remove torture tools as part of make clean (This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
* merging some rpcclient and net functionality from HEADGerald Carter2003-01-151-0/+48
| | | | (This used to be commit 7a4c87484237308cb3ad0d671687da7e0f6e733b)
* [merge]Gerald Carter2003-01-151-3/+2
| | | | | | | * removed unused variable from rpcclient code * added container option to net command (patch from SuSE) * Makefile patch for examples/VFS from SuSE (This used to be commit 25a9681ddda47a41fac8fdc97ca50b7f4c579eaf)
* merge of working dsrolegetprimdominfo() client code from APP_HEADGerald Carter2002-10-041-8/+0
| | | | (This used to be commit 028477e35208e76fedbc7c743426fd9be94b7cf0)
* merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-041-10/+19
| | | | | from APP_HEAD (This used to be commit 1cfd2ee433305e91e87804dd55d10e025d30a69e)
* sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-251-9/+2
| | | | (This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
* sync 3.0 branch with HEADJelmer Vernooij2002-08-171-22/+45
| | | | (This used to be commit 6497eb78e87a6ffa4c2c61aa4ef6ecd451821a27)
* updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-151-23/+42
| | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* Merge of lsa lookup names/sids patch from HEAD.Tim Potter2002-04-151-10/+11
| | | | (This used to be commit e57c162897d4a7e66bb87091d179ac138f751c64)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* Back out some of the less well thought out ideas from last weeks work onAndrew Bartlett2002-01-261-10/+1
| | | | | | | | | | | winbind default domains, particulary now I understand whats going on a lot better. This ensures that the RPC client code does as little 'magic' as possible - this is up to the application/user. (Where - for to name->sid code - it was all along). This leaves the change that allows the sid->name code to return domains and usernames in seperate paramaters. Andrew Bartlett (This used to be commit 5dfba2cf536f761b0aee314ed9e30dc53900b691)
* Make a talloc'ed copy of this strings so we can pass the right kind of pointerAndrew Bartlett2002-01-261-1/+5
| | | | | | | | to the function. This fixes a nice little segfault the brute-force-casting created. :-) Andrew Bartlett (This used to be commit c84fa7f5fd62940e397d3353fb688f283349393e)
* This patch makes the 'winbind use default domain' code interact better withAndrew Bartlett2002-01-201-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | smbd, and also makes it much cleaner inside winbindd. It is mostly my code, with a few changes and testing performed by Alexander Bokovoy <a.bokovoy@sam-solutions.net>. ab has tested it in security=domain and security=ads, but more testing is always appricatiated. The idea is that we no longer cart around a 'domain\user' string, we keep them seperate until the last moment - when we push that string into a pwent on onto the socket. This removes the need to be constantly parsing that string - the domain prefix is almost always already provided, (only a couple of functions actually changed arguments in all this). Some consequential changes to the RPC client code, to stop it concatonating the two strings (it now passes them both back as params). I havn't changed the cache code, however the usernames will no longer have a double domain prefix in the key string. The actual structures are unchanged - but the meaning of 'username' in the 'rid' will have changed. (The cache is invalidated at startup, so on-disk formats are not an issue here). Andrew Bartlett (This used to be commit e870f0e727952aeb8599cf93ad2650ae56eca033)
* Grr - people who put const everywhere should fix up all the warnings theyTim Potter2001-12-111-1/+2
| | | | | generate. (This used to be commit d1ebd259c8c06d467eb5ee305b21e9046f16e05b)
* Doing some research into ACLs on the LSA and SAM policy objects.Tim Potter2001-12-111-0/+37
| | | | | | | | - added lsaquerysecobj to rpcclient - renamed querysecobj to samquerysecobj - removed duplicated display_sec_acl() code from cmd_spoolss.c and cmd_samr.c and moved it into display_sec.c (This used to be commit 59b2e3f408a5ff22f2d81a927d010a7df5f19f7f)
* added "net join" commandAndrew Tridgell2001-11-241-2/+0
| | | | | this completes the first stage of the smbd ADS support (This used to be commit 058a5aee901e6609969ef7e1d482a720a84a4a12)
* added lsaenumprivsaccount and lsalookupprivvalue to rpcclientJean-François Micouleau2001-11-241-7/+97
| | | | | | | and more to come ... J.F. (This used to be commit 1748d5a2af1f2dcf718d6f162ed483b001542494)
* added lsa_enum_sids to rpcclientJean-François Micouleau2001-11-221-3/+64
| | | | | | | | fixed lsa_enum_rpivs server code. This time it works as W2K. fixed smbgroupedit to compile and work. J.F. (This used to be commit 646651018a2736833e49e76f6ca735a4647d9746)
* add another command to rpcclient: getdispname. Show the full descriptionJean-François Micouleau2001-11-221-0/+38
| | | | | | | of a privilege. J.F. (This used to be commit 84035ae72f422edadd9fa7e493c3d8176bb6a53d)
* add a command to rpcclient: enumprivsJean-François Micouleau2001-11-221-0/+48
| | | | | J.F. (This used to be commit fa63cb78e326040f68d858d593ba98e06c26c92e)
* Some old stuff hanging around since the CIFS conference. Big cleanup ofTim Potter2001-10-121-143/+39
| | | | | | | rpcclient code. Refactored cmd_* functions to move common mem_ctx and pipe opening stuff up one level. Moved rpcclient.h into rpcclient directory and out of includes/smb.h (This used to be commit a40facba9651f9fb1dcc9e143f92ca298a324312)