summaryrefslogtreecommitdiff
path: root/source3/rpcclient
AgeCommit message (Collapse)AuthorFilesLines
2002-01-20This patch makes the 'winbind use default domain' code interact better withAndrew Bartlett1-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)
2002-01-19fixes (asprintf) from 2.2Simo Sorce1-3/+7
(This used to be commit 6b123adda901ff05b0271eeda060297448f64eec)
2002-01-07Converted getprinterdriver to WERROR - it always returns dos error 6Tim Potter1-11/+17
(invalid handle) though. )-: (This used to be commit 7bfd1f35e4e194f8a2f07046e4a6c005c256c05b)
2002-01-06Converted enumprinters and enumports cmd functions to use WERRORTim Potter1-32/+39
values returned from cli functions. They are converted to NTSTATUS codes using the error map functions. Do buffer size loop checks by setting offered = 0 and using the return value of needed in the next call. (This used to be commit 4efbdda3fcfd1fad2f2b8909d250735382497836)
2002-01-06spoolss rpc client cleanup:Tim Potter1-35/+62
- converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS - doc (This used to be commit 248d114f856f1adb76c903b683e0927530771443)
2002-01-06Display nicer message when server name could not be resolved.Tim Potter1-3/+3
(This used to be commit 950d8e365626ecbd82e9ee965dc1724dc50c64a4)
2002-01-03Fixed crash bug in display_print_info_2()Tim Potter1-65/+87
(This used to be commit b70f870cd98e30d0ce74d322391cc79d65c5f838)
2002-01-03Fixed crash bug in display_print_info_1()Tim Potter1-3/+13
(This used to be commit d1564fbf1f4950c12516470d4566efeca3ad79e5)
2001-12-30Unicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>Tim Potter1-1/+1
(This used to be commit 6b7e9d03cf6093f1108642deddb0f8cc42e59067)
2001-12-30Finish idra's cleanup of the RPC remote shutdown code.Andrew Bartlett1-4/+2
(This used to be commit 79031b68ce6bdf882d9c9bd4f3310f597e0c1fda)
2001-12-30remove unneaded memory leaking code.Simo Sorce1-16/+0
(This used to be commit d2c663185e13974f953a60adf1b191b56bfa08f4)
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-21put back the -l option to rpcclient.Jean-François Micouleau1-1/+8
that's the most useful option in this tool ! I love rpcclient ;-) J.F. (This used to be commit 18dc4cd57a53480684ea9e2bc6a6442535f89119)
2001-12-21Fix for null command description in rpcclient help. From Benjamin KuitTim Potter1-1/+2
<bj@it.uts.edu.au>. (This used to be commit 60d1d0bfa93bfb8264b117147b651b521dbf28ce)
2001-12-20lp_setup_logfile() doesn't exist any moreAndrew Tridgell1-7/+1
(This used to be commit aa52ae7354ae5ab803da4686f344cfc4ca134c46)
2001-12-20Removed global debugf. Replaced with lp_set_logfile(name).Jeremy Allison2-5/+5
Fixed winbindd to finally stop leaving log. file droppings :-). Jeremy. (This used to be commit 0bea6cf79a44f79fa3a4f2c8381e898e79c66509)
2001-12-18initialise stringsJean-François Micouleau1-4/+4
(This used to be commit cb61606b8e2852779a03dab3f99a8886edd7a97f)
2001-12-13update the ldap support code. it compiles.Jean-François Micouleau2-5/+12
Ignacio you can update your howto ;-) samsync: a small patch to try chaning challenges. J.F. (This used to be commit c99bc305599698f2291efbfe20024355cb2bcde0)
2001-12-13Fix some compiler warnings.Tim Potter1-2/+1
(This used to be commit 216dff438095781934b57fd097ed118daf5fffa0)
2001-12-12added a -V[erbose] option to samsync. Decode a lot of informationJean-François Micouleau2-18/+275
I'm looking at chaining the credentials J.F. (This used to be commit d49c8e4d3d64b48e243d0f517b9e7f037103af13)
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-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-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 Potter4-350/+117
- 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-11Compile fix.Tim Potter1-2/+2
(This used to be commit 83caa883d79c2d954749d21fced808bda970ec56)
2001-12-10added enum alias groups to rpcclientJean-François Micouleau1-2/+62
(This used to be commit d4bc8f02f7dc856ffb29e95a81ffcc3a9d4b1695)
2001-12-10Added client and server code for the GetPrintProcessorDirectory SPOOLSSTim Potter1-0/+32
rpc. This was supposed to fix a printer driver download bug but it didn't but it seemed a shame to trash all this code so I'm commiting it #ifdef'ed out in case someone needs it one day. (This used to be commit bef43656471741c6c10b12e7516c15de9ae76394)
2001-12-03This change reworkes the connection code for both rpcclient and net newAndrew Bartlett1-86/+36
'net' untility. This should make it easier to port rpcclient code across to net. It also allows SPNEGO (the NTLMSSP subsystem in particular) to work, becouse it kills off the early destruction of the clear-text password. Andrew Bartlett (This used to be commit eee925861a3af3aa16efa3b1700a980c9510c14e)
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-30Renamed sid field in SEC_ACE to trustee to be more in line with MS'sTim Potter1-1/+1
definitions. (This used to be commit 9712d3f15a47155f558d0034ef71fd06afb11301)
2001-11-26dyn_CONFIGFILE fixups.Tim Potter1-4/+3
(This used to be commit 7d10fa208248e201946876168743025866e011fc)
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-23Removed TimeInit() call from every client program (except for one placeTim Potter2-4/+0
in smbd/process.c where the timezone is reinitialised. Was replaced with check for a static is_initialised boolean. (This used to be commit 8fc772c9e5770cd3a8857670214dcff033ebae32)
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-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-11-19Store some path names in global variables initialized to configureMartin Pool2-7/+6
default, rather than in preprocessor macros. (This used to be commit 79ec88f0da40faebe1e587f1b3e87b5f2b184f58)
2001-11-15FALSE -> FalseTim Potter1-1/+1
(This used to be commit 7c6529c081abe051055be5fbf3016fbea2474752)
2001-11-05Fixed some compiler warnings.Tim Potter1-8/+8
(This used to be commit 7c3090fb2017eb08b8785f0b6e4eb98ab9246bbc)
2001-10-30Allow the logon level to be passed to cli_netlogon_sam_logon() rather thanTim Potter1-4/+4
the validation level. (This used to be commit c79e94ea27aab31423b1bdc34e9cff25688dbe5f)
2001-10-30Display some errors if the initial connection to the server could not beTim Potter1-0/+2
made. (This used to be commit c3f5df8d6743bb7b48118b378f23268008e74145)
2001-10-30Added samlogon command to test against win2k native mode server. I thinkTim Potter1-0/+58
there's a bug in the marshalling of net_sam_logon. (This used to be commit 7c5ac46b8ad0be681d102e7ef3478d64d7a2b8e6)
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 Micouleau2-46/+24
J.F. (This used to be commit 0157fdc8a291ba9872757fb6cf5e16e98058a034)
2001-10-14the next step in the intl changeover. This should get us compiling agian,Andrew Tridgell1-6/+0
and also completes the switch to lang_tdb.c. SWAT should now work with a po file in the lib/ directory also removed useless SYSLOG defines in many files (This used to be commit 5296b20ad85d7519c870768455cb4d8df048c55a)