summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_samr.c
AgeCommit message (Collapse)AuthorFilesLines
2004-02-12More sync between passdb on 3.0 and HEAD.Jim McDonough1-1/+1
Replace unknown_3 with fields_present. Also causes rpc_samr structure field changes. (This used to be commit 1976843345efb6ca4f9cebd964a61acd8ae11d41)
2003-09-18The "unknown_5" 32 bit field in the user structs is actually 2 16-bitJeremy Allison1-1/+2
fields, bad_password_count and logon_count. Ensure this is stored/fetched in the various SAMs. As it replaces the unknown_5 field this fits exactly into the tdb SAM without any binary problems. It also is added to the LDAP SAM as two extra attributes. It breaks compatibility with the experimental SAMs xml and mysql. The maintainers of these SAMs must fix them so upgrades like this can be done transparently. I will insist on the "experimental" status until this is solved. Jeremy. (This used to be commit cd7bd8c2daff3293d48f3376a7c5a708a140fd94)
2003-07-23convert snprintf() calls using pstrings & fstringsGerald Carter1-1/+1
to pstr_sprintf() and fstr_sprintf() to try to standardize. lots of snprintf() calls were using len-1; some were using len. At least this helps to be consistent. (This used to be commit 9f835b85dd38cbe655eb19021ff763f31886ac00)
2003-07-03Removed strupper/strlower macros that automatically map to ↵Jeremy Allison1-12/+12
strupper_m/strlower_m. I really want people to think about when they're using multibyte strings. Jeremy. (This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
2003-04-14Merge of samr lookup domain rpc client call from HEAD.Tim Potter1-0/+44
(This used to be commit 5b1807dddf0e4fb9fcaedcfe6f67dfd78fe117bb)
2003-03-18Merge of waider's rpcclient return type patch.Tim Potter1-20/+20
(This used to be commit fb91bfa7a28f548dcc549f7e09805e4485c83538)
2003-03-18Merge of enumdomusers rpcclient command.Tim Potter1-0/+75
(This used to be commit 8cabdd635df2455d9b25604f2ea0fb85efa067e2)
2003-03-11Patch from Ronan Waide:Martin Pool1-1/+1
> when doing "enumdomusers", rpcclient prints each one preceded by the > word "group" instead of "user" (This used to be commit 0e9a2f41df932585bbff2a1a53d3dadc9a3dac62)
2003-02-25Merge: const fixes.Tim Potter1-18/+18
(This used to be commit a20aba09996e470425a151271237f2d48a8302af)
2003-01-29Merge tpot's changes to request the correct sizes for user dispinfoJeremy Allison1-6/+22
from HEAD. I had to do this for him as he was *so* tired, the poor chap, plus he has this bad leg, plus the dog ate his homework etc. etc. Jeremy. (This used to be commit 1e752b48a12cdcf2cb6343705be83f304e5ee2b6)
2003-01-03Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett1-1/+1
warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2002-12-20Forward port the change to talloc_init() to make all talloc contextsJeremy Allison1-1/+1
named. Ensure we can query them. Jeremy. (This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
2002-12-20Merge from HEAD:Tim Potter1-2/+0
>fix rpcclient querygroup command (from 2.2 and head) (This used to be commit 77b403434f85d54fa573d9344024966d32f415ef)
2002-12-08fix rpcclient querygroup command (from 2.2 and head)Simo Sorce1-2/+2
(This used to be commit ea2154b2692f76a3f0d597ddc154ecbbef72de60)
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 1cfd2ee433305e91e87804dd55d10e025d30a69e)
2002-08-17sync 3.0 branch with HEADJelmer Vernooij1-29/+46
(This used to be commit 6497eb78e87a6ffa4c2c61aa4ef6ecd451821a27)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-153/+276
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
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)