summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_samr.c
AgeCommit message (Collapse)AuthorFilesLines
2002-10-04merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter1-17/+17
from APP_HEAD (This used to be commit 38c9e4299845fd77cc8629945ce2d259489f7437)
2002-08-12Use samr connect4, then fall back to samr connect if it fails. This isJim McDonough1-29/+46
what 2k does. (This used to be commit 99437db17aa7c2e3448f28f627e993e8ab762d31)
2002-07-14Apply patch from "Kai Krueger" <kai@kruegernetz.de> to make it easier toAndrew Bartlett1-51/+116
determine what access masks should be applied to various SAMR calls. Andrew Bartlett (This used to be commit dbf28f992bcd4859a9b7d78ac1d33e4063617f94)
2002-06-26Qualify some of the hexidecimal responses with 0xAndrew Bartlett1-5/+5
(This used to be commit e77e21cdbe2cb2d594494dd6e5cac37b5b1bcab8)
2002-06-25Try to avoid infinite loops when reteriving users - even from broken servers.Andrew Bartlett1-1/+4
Andrew Bartlett (This used to be commit ebc8452a30b2a9bdd6698af8dad489f3f92ae7a6)
2002-06-04Fixed compiler warning.Tim Potter1-1/+0
(This used to be commit 361afd241beeda033068c7f3a976f3f69fa2ac33)
2002-06-03Added getdompwinfo function.Tim Potter1-0/+26
(This used to be commit b3b3e45583718e5b034f6c67609523f35753c1a8)
2002-05-31Fixed crash bug in querydispinfo.Tim Potter1-70/+62
Some reformatting. (This used to be commit 612eae45ef7b0289e0c67b331d96a351fc567e5c)
2002-05-28Some fixes for enumerating domain groups and aliases:Tim Potter1-25/+63
- close down connect and domain policy handles when exiting - allow enumeration of > 65535 groups or aliases - error handling for non-zero return value from enumeration functions (This used to be commit a48f362ca7ff6477d3064bc2c5c888eeb095d2ce)
2002-05-07Fixed more compiler warnings.Tim Potter1-3/+3
(This used to be commit fa5c1ba12b4cae0c03f1adbc38e7ad5eeca0e895)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2001-12-21close some handles. not really necessary but doesn't hurt.Jean-François Micouleau1-0/+3
J.F. (This used to be commit 55b9cd7af611e5f76896e1849529629e5e7caaf8)
2001-12-21added all level to samr_query_disp_info rpcclient side.Jean-François Micouleau1-21/+102
J.F. (This used to be commit d5f2e645e43224b966c17c593fff33b64d6c0a8b)
2001-12-11SAMR query sec obj returns different results depending on which sam handleTim Potter1-12/+34
it is passed. Not sure what these different contexts are called or what they are used for. - if a rid is specified to samquerysecobj then use the sam user policy handle for that rid - if -d is specified then use the sam domain policy handle - otherwise just use the sam connect policy handle JF, any ideas about this? (This used to be commit 4ef50ef9f76219ea8acc29a1d740b31a1d7a1e04)
2001-12-11Removed unused variable.Tim Potter1-3/+1
(This used to be commit 1dc0e9096db11bf9c8fa7ba0424ab1e96bb177dc)
2001-12-11Doing some research into ACLs on the LSA and SAM policy objects.Tim Potter1-123/+1
- 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-12-10added enum alias groups to rpcclientJean-François Micouleau1-2/+62
(This used to be commit d4bc8f02f7dc856ffb29e95a81ffcc3a9d4b1695)
2001-12-02added queryuseraliases to rpcclientJean-François Micouleau1-0/+68
and some comments to the samr server code, to explain what we should return here. J.F. (This used to be commit 06cb20a46d9d9f8abf0d92ba4cfa4d23187ad715)
2001-12-02added samr_query_sec_obj. and put back some code to display a securityJean-François Micouleau1-8/+201
descriptor. added to samr_lookup_name the choice to select the either the builtin (s-1-5-32) domain or our current domain (s-1-5-21-x-y-z) J.F. (This used to be commit d9d1486165591d9f7dad04f197fa692654a17a59)
2001-11-21samr_querydom_info level 1: found the meaning of the unknow fields. AndJean-François Micouleau1-0/+51
discovered that our reply is short by 4 bytes since day 1 of this code. Added a decode function to rpcclient too. splitted the STRING2 fields filling while trying to understand the win9x userlist bug. (didn't fix the bug, but the reply looks closer to NT). J.F. (This used to be commit bfbe7f377e5fcb09e87bfc866196dfc51a8fe64d)
2001-10-29Converted a bunch of functions to use sscanf %i instead of atoi toTim Potter1-11/+14
allow hex or decimal rids to be specified. (This used to be commit d93488b953337890a17de124f88cf2066f733c40)
2001-10-22samr querydispinfo can change level, start index and max entries.Jean-François Micouleau1-10/+33
added level 4 decoding. J.F. (This used to be commit 0573caa91bdff361e3e864d3fd39d450e3738580)
2001-10-22allow the samr commands to work back and the help too ;-)Jean-François Micouleau1-37/+13
J.F. (This used to be commit 0157fdc8a291ba9872757fb6cf5e16e98058a034)
2001-10-12Some old stuff hanging around since the CIFS conference. Big cleanup ofTim Potter1-362/+66
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-09-04it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell1-187/+189
the build farm (This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)
2001-09-04the next stage in the NTSTATUS/WERROR change. smbd and nmbd now compile, but ↵Andrew Tridgell1-2/+2
the client code still needs some work (This used to be commit dcd6e735f709a9231860ceb9682db40ff26c9a66)
2001-08-27converted another bunch of stuff to NTSTATUSAndrew Tridgell1-41/+41
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-10- avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)Simo Sorce1-1/+13
- 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-16/+18
(This used to be commit 37052a1bcc5cd049918c3d5ac4c41c3a669290af)
2001-06-20Added delete domain user rpcclient command.Tim Potter1-1/+84
(This used to be commit aa9024c95996dec67d76c5ed108cfba733dcdbfe)
2001-06-06Fixups for new args to cli_samr_connect()Tim Potter1-35/+175
Added samlookupnames and samlookuprids rpcclient commands. (This used to be commit 2ca5ea16bda131c6314444be5c671165d09c8422)
2001-06-04Added add domain user to rpcclient.Tim Potter1-0/+88
Added cli_ functions for set userinfo and userinfo2. (This used to be commit 6c9796286c489a79c96d28b081ecf151803dbf7c)
2001-05-15Fixed up SAM_USERINFO_CTR dynamic stuff in cmd_samr_query_user()Tim Potter1-8/+4
(This used to be commit 22b760e246f8fcf79daf24542cc35bdf41d1fea7)
2001-05-14Added arg to querygroupinfo.Tim Potter1-8/+9
(This used to be commit ab58fdf77a12d101f5ac6b6702cd8ed9dc2c7d55)
2001-05-08Fixed querydispinfo command.Tim Potter1-12/+36
(This used to be commit 727d2929bc4025ab418e933356d8ba4f31420423)
2001-05-07iAdded querydispinfo and querydominfo functions.Tim Potter1-3/+205
Allow rid to be specified in lookupuser. (This used to be commit 1ea5aa4a80f9da56b071b403fb8f1cfa0ff79b8d)
2001-05-04Added queryaliasmem function.Tim Potter1-4/+104
Moved fetch_domain_sid() calls out of harms way so they didn't spam out queries on SAMR pipe. (This used to be commit 982195c89d2ea0e66c24f6426f50c7d2f35800e0)
2001-05-04Added cmd_samr_enum_dom_groups() function.Tim Potter1-2/+86
(This used to be commit 23427a57da8b18506bbd970e5d7491c0917f6d06)
2001-04-28rpcclient merge from 2.2 (including Jeremy's non-void return fix)Gerald Carter1-28/+62
(This used to be commit 0a6ceed279cc8111008b21f75c6791efbd993f4b)
2001-04-08Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison1-4/+4
Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
2001-03-28Changed usage message for query_groupmem and query_usergroups as they don'tTim Potter1-2/+2
convert names to rids yet. (This used to be commit cea13dff759dfb7efb5d2a248dd77905e16b1605)
2001-03-15addprinter and adddriver are working now :-)Gerald Carter1-9/+28
(This used to be commit 0cb7639cef4a1ba0d56d7e58bd7e03343cbf229d)
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-90/+76
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-03-11Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison1-3/+0
RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
2001-01-15rpcclient functions for remaining samr and lsa functions. All functionsTim Potter1-24/+393
now pass through insure except for some of the dodgy spoolss prs weirdness. (This used to be commit 76f08426a08881793b0ef32ccc4e13c54f26417f)
2001-01-11Start of a rewrite of rpcclient based on the libsmb rpc client routines.Tim Potter1-643/+47
Currently there are a small selection of lsa, samr and spoolss functions implemented. More to follow... (This used to be commit 9a953514f2a2cfd3c43105dd6203bc3e36aff1b1)
2000-06-23just enough to get rpcclient to compile. Look for #if 0Gerald Carter1-0/+6
blocks around a few unimplemented functions. Also had to add cli_reg.c to Makefile.in --jerry (This used to be commit 426c43fb5167b042682c22e67871e5ebadb4b769)
2000-05-09the beginnings of a new scheme I've working on to allow an easierAndrew Tridgell1-3/+3
head/tng merge. It goes something like this: - headers from tng get copied over one at a time - the old headers get renamed to *_old.h - server side code that used the old headers gets a #define OLD_NTDOMAIN 1 #undef OLD_NTDOMAIN at the start and end of the code - mkproto.awk recognises these special defines and does magic stuff so that each .c file sees the right headers - we start moving the rpc client libraries from tng to head. if this goes OK then, in theory, we should be able to move the client side rpc code from tng to head without disturbing the existing head server side code. Then when that works we can consider merging the server side. it remains to be seen if this scheme will work. So far I've moved rpc_samr.h and don't seem to have broken anything. Note this this is still a very delicate operation, as at every step of the way I want to keep head fully functional. Please don't take part unless you discuss it with me first. (This used to be commit f76c037255a6a79d11bec65e863e009a41a4f0fd)
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)