summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
...
* Given Jeremy's positive response, and a lack of one from tpot, I'll commitAndrew Bartlett2002-05-231-48/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this: More code cleanup - this lot a bit more dodgy than the last: The aim is to trim pwd_cache down to size. Its overly complex, and a pain to deal with. With a header comment like this: 'obfusticaion is planned' I think it deserved to die (at least partly). This was being done to allow 'cli_establish_connection' to die - its functionality has been replaced by cli_full_connection(), which does not duplicate code everywhere for creating names etc. This also removes the little 'init' fucntions for the various pipes, becouse they were only used in one place, and even then it was dodgy. (I've reworked smbcacls not to use anonymous connections any more, as this will (should) fail with a 'restrict anonymous' PDC). This allowed me to remove cli_pipe_util.c, which was calling cli_establish_connection. tpot: I'm not sure what direction you were going with the client stuff, and you may well have been wanting the init functions. If thats the case, give me a yell and I'll reimplement them against cli_full_connection. Andrew Bartlett
* Remove unused files.Andrew Bartlett2002-05-181-3/+6
| | | | | | The size of samba going down for once :-) Andrew Bartlett
* A few more trusted domains updates from mimir.Andrew Bartlett2002-05-171-14/+29
| | | | | | | I think we may still need to look at our server enumeration code, but other than that, its much better in the tree than out. Andrew Bartlett
* The cli_spoolss_setprinterdata() function interface changed slightly.Tim Potter2002-05-141-2/+4
|
* Added cmd_spoolss_enumjobs() function to rpcclient.Tim Potter2002-05-071-39/+156
| | | | | | The semantics of the src_len argument to rpcstr_pull() seem to have changed breaking most of the spoolss commands in rpcclient. Changed a bunch of 0's to -1's to fix it.
* Fixed more compiler warnings.Tim Potter2002-05-071-3/+3
|
* Fixed compile warning.Tim Potter2002-05-071-1/+2
|
* Fixed command line argument parsing.Tim Potter2002-04-171-70/+54
|
* merges from SAMBA_2_2Gerald Carter2002-04-161-44/+61
|
* The cli_lsa_lookup_{names,sids} functions were returning uselessTim Potter2002-04-141-10/+16
| | | | | | information when one or more of the names/sids being queried were not resolvable. We now return a list the same length as the parameters passed instead of an array of just the resolvable names/sids.
* Fixed comment.Tim Potter2002-04-141-1/+1
|
* Free popt context after argument parsing.Tim Potter2002-04-041-0/+2
|
* removing unused files....Gerald Carter2002-04-031-88/+0
|
* added "list <pipe>" command to display the available commandsGerald Carter2002-04-021-0/+45
| | | | one a single pipe
* some mergee from SAMBA_2_2. Does compile, but needs some more testing.Gerald Carter2002-04-021-13/+160
| | | | This is an intermediate check-in. More to come....
* Renamed get_nt_error_msg() to nt_errstr().Tim Potter2002-03-172-4/+4
|
* Swap order of close brace and done: tag to appease AIX compiler. Order ↵Jim McDonough2002-03-081-1/+1
| | | | shouldn't matter for logic...if anyone disagrees whack me over the head and explain why...
* One more fix to get popt to work for some compilers...this is the downside ↵Jim McDonough2002-03-081-15/+22
| | | | to popt. Every option has to be in fixed storage.
* Convert rpcclient to use popt instead of getopt. Includes changing of ↵Jim McDonough2002-03-071-32/+46
| | | | got_pass from BOOL to int. Also includes long option names...anyone want those different before I update the doc? Please try this out. I've tried to test all the flags, but the more times we kick the tires...
* Cosmetic fixup for enum_printersTim Potter2002-03-071-2/+5
|
* Fixed a bunch of crash bugs for enumprinters at various info levels.Tim Potter2002-03-072-30/+41
|
* argc == 0 is an impossible condition.Tim Potter2002-03-071-1/+2
|
* Allow Samba to trust NT4 Domains.Andrew Bartlett2002-03-021-1/+1
| | | | | | | | | | | | | | | | This commit builds on the auth subsystem to give Samba support for trusting NT4 domains. It is off by default, but is enabled by adding 'trustdomain' to the 'auth methods' smb.conf paramater. Tested against NT4 only - there are still some issues with the join code for Win2k servers (spnego stuff). The main work TODO involves enumerating the trusted domains (including the RPC calls to match), and getting winbind to run on the PDC correctly. Similarly, work remains on getting NT4 to trust Samba domains. Andrew Bartlett
* merge from 2.2 - fix parsing of optionsHerb Lewis2002-02-261-14/+16
|
* Implemented client side functions for SPOOLSS addform, getform, setform andTim Potter2002-02-251-13/+150
| | | | enumforms.
* Converted remaining spoolss rpcclient functions to werror/needed/offered.Tim Potter2002-02-201-52/+60
| | | | | | I couldn't test some of these because I didn't know the right magic arguments to pass to rpcclient (familiar anyone? (-:) so there may be some bugs lurking.
* Converted {cmd,cli}_spoolss_getprinter() to WERROR and offered/neede.Tim Potter2002-02-191-14/+23
|
* Converted cmd_spoolss_enumprinterdrivers() to use newTim Potter2002-02-191-13/+14
| | | | cli_spoolss_enumprinterdrivers() function.
* Added addform, setform and deleteform commands. The only one I could getTim Potter2002-01-311-4/+169
| | | | | | | | | to actually work was addform. )-: Removed a whole bunch of calls to werror_to_ntstatus() because there isn't a one-to-one mapping of NTSTATUS values to WERROR values. This function maps WERR_ACCESS_DENIED to NTSTATUS_INVALID_LOCK_SEQUENCE or something silly like that.
* Removed version number from file header.Tim Potter2002-01-3015-30/+15
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* 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
* 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 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
* fixes (asprintf) from 2.2Simo Sorce2002-01-191-3/+7
|
* Converted getprinterdriver to WERROR - it always returns dos error 6Tim Potter2002-01-071-11/+17
| | | | (invalid handle) though. )-:
* Converted enumprinters and enumports cmd functions to use WERRORTim Potter2002-01-061-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.
* spoolss rpc client cleanup:Tim Potter2002-01-061-35/+62
| | | | | - converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS - doc
* Display nicer message when server name could not be resolved.Tim Potter2002-01-061-3/+3
|
* Fixed crash bug in display_print_info_2()Tim Potter2002-01-031-65/+87
|
* Fixed crash bug in display_print_info_1()Tim Potter2002-01-031-3/+13
|
* Unicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>Tim Potter2001-12-301-1/+1
|
* Finish idra's cleanup of the RPC remote shutdown code.Andrew Bartlett2001-12-301-4/+2
|
* remove unneaded memory leaking code.Simo Sorce2001-12-301-16/+0
|
* close some handles. not really necessary but doesn't hurt.Jean-François Micouleau2001-12-211-0/+3
| | | | J.F.
* added all level to samr_query_disp_info rpcclient side.Jean-François Micouleau2001-12-211-21/+102
| | | | J.F.
* put back the -l option to rpcclient.Jean-François Micouleau2001-12-211-1/+8
| | | | | | | | that's the most useful option in this tool ! I love rpcclient ;-) J.F.
* Fix for null command description in rpcclient help. From Benjamin KuitTim Potter2001-12-211-1/+2
| | | | <bj@it.uts.edu.au>.
* lp_setup_logfile() doesn't exist any moreAndrew Tridgell2001-12-201-7/+1
|
* Removed global debugf. Replaced with lp_set_logfile(name).Jeremy Allison2001-12-202-5/+5
| | | | | Fixed winbindd to finally stop leaving log. file droppings :-). Jeremy.
* initialise stringsJean-François Micouleau2001-12-181-4/+4
|