summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_lsarpc.c
AgeCommit message (Collapse)AuthorFilesLines
2001-12-11Grr - people who put const everywhere should fix up all the warnings theyTim Potter1-1/+2
generate. (This used to be commit d1ebd259c8c06d467eb5ee305b21e9046f16e05b)
2001-12-11Doing some research into ACLs on the LSA and SAM policy objects.Tim Potter1-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)
2001-11-24added "net join" commandAndrew Tridgell1-2/+0
this completes the first stage of the smbd ADS support (This used to be commit 058a5aee901e6609969ef7e1d482a720a84a4a12)
2001-11-24added lsaenumprivsaccount and lsalookupprivvalue to rpcclientJean-François Micouleau1-7/+97
and more to come ... J.F. (This used to be commit 1748d5a2af1f2dcf718d6f162ed483b001542494)
2001-11-22added lsa_enum_sids to rpcclientJean-François Micouleau1-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)
2001-11-22add another command to rpcclient: getdispname. Show the full descriptionJean-François Micouleau1-0/+38
of a privilege. J.F. (This used to be commit 84035ae72f422edadd9fa7e493c3d8176bb6a53d)
2001-11-22add a command to rpcclient: enumprivsJean-François Micouleau1-0/+48
J.F. (This used to be commit fa63cb78e326040f68d858d593ba98e06c26c92e)
2001-10-12Some old stuff hanging around since the CIFS conference. Big cleanup ofTim Potter1-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)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-1/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-17move to SAFE_FREE()Simo Sorce1-4/+4
(This used to be commit 5ceecc7bef71b455ba7c4efd9928e2433dccc961)
2001-09-04the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell1-37/+41
the client code still needs some work (This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
2001-08-27converted another bunch of stuff to NTSTATUSAndrew Tridgell1-8/+8
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-10- avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)Simo Sorce1-0/+4
- ported two rpc back from TNG (WINREG: shutdown and abort shutdown) - some optimizations and changed some DEBUG statement in loadparm.c - changed rpcclient a bit moved from non reentrant next_token_nr to next_token - in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0 (This used to be commit fd54412ce9c3504a547e232602d6129e08dd9d4d)
2001-07-20Started adding some help/usage info for rpcclient commands.Tim Potter1-6/+9
(This used to be commit 37052a1bcc5cd049918c3d5ac4c41c3a669290af)
2001-05-11Memory leak fixes plus general cleanup.Tim Potter1-35/+20
(This used to be commit 48688c4592d03d6404631a7d57701f0af38cfb2d)
2001-04-28rpcclient merge from 2.2 (including Jeremy's non-void return fix)Gerald Carter1-14/+52
(This used to be commit 0a6ceed279cc8111008b21f75c6791efbd993f4b)
2001-03-23More unused variables.Jeremy Allison1-1/+3
Jeremy. (This used to be commit 38b19fad2851a65268b31c7e0240ed36a8407be4)
2001-03-15more updates. several spoolss commands added as placeholdersGerald Carter1-0/+1
to be filled in one at a time. (This used to be commit 6aaac3766324302b995b5a55876bf2ab74af1ff8)
2001-03-14set of changes in the beginning of bringing rpcclient changesGerald Carter1-62/+42
back to working order. The main change is that the cli_*() RPC functions from libsmb/*.c now should accept a struct cli_state*. The reason for this is that rpcclient should establish the connection to the server at startup so that it is not necessary to keep the clear test or password hash in memory for each command. enumports and enumprinters now works as well. lsa* functions have been tested. SAMR calls may or may not work (one of the core dumps I know), but it compiles :-) jerry (This used to be commit d98ac8852ae6b39b6fcff92c346ba56d9e63c518)
2001-01-15rpcclient functions for remaining samr and lsa functions. All functionsTim Potter1-1/+1
now pass through insure except for some of the dodgy spoolss prs weirdness. (This used to be commit 76f08426a08881793b0ef32ccc4e13c54f26417f)
2001-01-12Memory leak fixes spotted by insure.Tim Potter1-0/+8
(This used to be commit 8072ee62b082df5d06459667615bb3b78461ec0a)
2001-01-11Start of a rewrite of rpcclient based on the libsmb rpc client routines.Tim Potter1-154/+223
Currently there are a small selection of lsa, samr and spoolss functions implemented. More to follow... (This used to be commit 9a953514f2a2cfd3c43105dd6203bc3e36aff1b1)
2000-12-08Port of lsa_lookup_sids() and lsa_lookup_names() rpc client functions fromTim Potter1-145/+176
TNG branch. Re-instated lsa_lookup_sids and lsa_lookup_names functions in rpcclient. This requires most samba binaries to link in another handful of object files due to uncessary coupling between modules. )-: (This used to be commit 817819d0cc3ecf642be5a1656be3b71bed260ee4)
2000-04-25moved trans2.h and nterr.h into includes.h with all our other includesAndrew Tridgell1-1/+0
(This used to be commit d7cd7c88fdabb01d9e40ae8a657737907a21ac37)
1999-12-13first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1-216/+57
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1999-11-27remove use of client_info lsa_info_pol.Luke Leighton1-13/+17
(This used to be commit 2dad9d912dbc6c4a14af63715821a51c279584c6)
1999-11-24ok. *whew*. this is the first completed part of the restructure.Luke Leighton1-4/+4
verified that lsaquery, lsalookupsids work, and found some bugs in the parameters of these commands :-) soo... we now have an lsa_* api that has the same arguments as the nt Lsa* api! cool! the only significant coding difference is the introduction of a user_credentials structure, containing user, domain, pass and ntlmssp flags. (This used to be commit 57bff6fe82d777e599d535f076efb2328ba1188b)
1999-11-24first stages of removing struct cli_state* and uint16 fnum from allLuke Leighton1-57/+19
msrpc client code. the intent is to hide / abstract / associate connection info behind policy handles. this makes the msrpc functions look more and more like their nt equivalents. who-hou! (This used to be commit c01b18e632aede6fce7264ef6971d7ddba945cfb)
1999-11-23shuffling msrpc code around so that it can be used independently of rpcclientLuke Leighton1-39/+2
(This used to be commit e88e7d529b5bdf32ac3bc71fa8e18f6f2a98c695)
1999-11-22another two.Luke Leighton1-28/+30
(This used to be commit b0f8ef6168d04d55d53fc2d02df5f54176e4f893)
1999-11-22okay :) all cmd_() functions now take int argc, char **argv :) thatLuke Leighton1-5/+5
means that some commands need more work, as they still use next_token(), the use of which i wish to avoid. plus, i was getting fed up of the poor command-line processing in some of these commands. i'm starting to need getopt() in them, especially in samsetuser. WARNING: only cmd_samr has been modded to use getopt() so far! reg commands won't work, esp. (This used to be commit 9a1efa03c8bb86c9b7e73f102a9d48fb6a57a523)
1999-11-04adding experimental set user password command to rpcclient, it returnsLuke Leighton1-2/+2
error wrong password against nt. ???? (This used to be commit b3f16e6b5aa5ba1b6afa38ad698646c8e765ec90)
1999-11-02yet another attempt to get lsaquerysecret working.Luke Leighton1-2/+2
(This used to be commit fbeceec5016c634136cdbb14423e25992d9521e9)
1999-11-01added lsaenumdomains command.Luke Leighton1-3/+69
attempting to get blood out of a stone^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H querysecret to work, it keeps returning access denied. (This used to be commit 953fe6ba9454fa4b8e69426527eca37b011f76ac)
1999-10-30NetServerTransportEnum parsing, client-side and rpcclient "srvtransports" added.Luke Leighton1-2/+2
(This used to be commit 37f4aac06fec3fbb34ed40d1010829b2e1f28558)
1999-10-25- typecast malloc / Realloc issues.Luke Leighton1-2/+2
- signed / unsigned issues. (This used to be commit c8fd555179314baf1672a23db34dc8ad9f2d02bf)
1999-10-21the dynamic memory alloc blood-fest goes on...Luke Leighton1-1/+1
(This used to be commit 134b20e2a7b5ddfa4cc9bf100de5025c7b98f594)
1999-09-12- initialising mach_passwd_file locks to zero (prev. uninit.)Luke Leighton1-21/+19
- cleanup - #defined report to sprintf as it's #defined to another function in other uses of cmd_lsarpc.c (This used to be commit 8fb2ff247a2fe0ec5ce0c232d8a3da9774f7e6ae)
1999-03-19querysecret now shows the real, fairdinkum, decrypted secret :-)Matthew Chapman1-8/+10
(This used to be commit 5951e16a1134a559abefdd400e7a17627338f368)
1999-03-18double-checked the return results from new querysecret command, correctedLuke Leighton1-2/+2
my corrections :) (This used to be commit 082109369b981713f68c13053b6419686f69ef26)
1999-03-18matt,Luke Leighton1-1/+1
remember: only close handles that you've previously opened. if the lsa_open_secret() succeeds then and only then can you close it. if the lsa_open_policy2() succeeds then and only then can you close it. (This used to be commit 60da0a12555a2e12e27ff2af24e1068a515469c0)
1999-03-18Adding LSA_OPENSECRET (-> LsarOpenSecret) and LSA_QUERYSECRETMatthew Chapman1-0/+69
(-> LsarQuerySecret) on client side, including rpcclient command "querysecret" for others to play with. The major obstacle is working out the encryption algorithm used for the secret value. It definitely uses the NT hash as part of the key, and it seems the block size is 64 bits - probably DES based - but I can't work out what's done in between. Help required. (This used to be commit 365fa3b5fbf551670acc91f593138a7e91a5f7fa)
1999-02-11uninitialised pointer being freed if lookupnames failed. oops.Luke Leighton1-1/+1
(This used to be commit d77de868588b6291353fa7a426b6e5da4b5f2c49)
1998-12-14added sid_name_use array argument to lsa_lookup_names and lsa_lookup_sids.Luke Leighton1-2/+2
(This used to be commit 0b2095e092d747f741e78a3349f0b81a72811629)
1998-12-08adding srvsvc pipe.Luke Leighton1-2/+2
(This used to be commit d06d6369942828ec89e90f99bd0d0d3f91d61d13)
1998-12-07removed nt_pipe_fnum from struct cli_state. need to be able to callLuke Leighton1-16/+19
LsaLookupSids etc from within SamrQueryAliasMembers, for example. fnum is now a parameter to client functions. thanks to mike black for starting the ball rolling. (This used to be commit bee8f7fa6b0f7f995f71303f4e14a4aaed0c2437)
1998-12-04- renamed do_samr_xxx to samr_xxxLuke Leighton1-10/+10
- renamed do_lsa_xxx to lsa_xxx - added "enumgroups [-m]" command, enumerates groups, shows members. - added cmd_sam_add_groupmem(), need to call these in rpcclient.c - added cmd_sam_add_aliasmem(), need to call these in rpcclient.c - modified "enumaliases [-m]" command - improved "enumgroups" and "enumaliases" to display names not just RIDS/SIDs. - renamed "samr_unknown_12" to "samr_lookup_rids". - added the following client-side functions: get_samr_query_groupmem() get_samr_query_aliasmem() get_samr_query_groupinfo() samr_enum_dom_groups() samr_enum_dom_aliases() samr_add_aliasmem() samr_add_groupmem() - improved display output (display.c) (This used to be commit eacc5e581af2b4de24186b9be3238b352c54effe)
1998-11-29weekend work. user / group database API.Luke Leighton1-1/+1
- split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API... (This used to be commit 5d5d7e4de7d1514ab87b07ede629de8aa00519a1)
1998-11-25LsaLookupNames client call (first used as lookupnames command in rpcclient).Luke Leighton1-1/+91
(This used to be commit 68342a29a892e515cf2b22d759476d61944bcd59)
1998-11-11changed syntax of registry commands so keys can start with HKLM or HKU.Luke Leighton1-36/+54
sorted lookupsids command (This used to be commit 13a0ee851fe0ce9acddfe57f9aba19fc78085c39)