summaryrefslogtreecommitdiffstats
path: root/source3/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
* Fix setprinterdata rpcclient command to use new cli_spoolss_setprinterdataTim Potter2002-09-031-6/+12
| | | | | | function. Also fixed crash bug - I don't think anyone uses this command anymore... (This used to be commit 82c9bf2a6f03c801e701636aff726090483cea25)
* Change JOB_INFO_CTR to return a pointer to an array rather than array of ↵Tim Potter2002-09-031-2/+2
| | | | | | pointers. (This used to be commit e9b71b354d923b2cd0f028dd197e7ca81339ec3a)
* allow rpcclient's samlogon command to use cli_net_3().Jean-François Micouleau2002-08-301-3/+11
| | | | | J.F. (This used to be commit 3cf419bdfbd3c56f31fb0794b206ab4bd2ac7120)
* added cli_net_auth_3 client code.Jean-François Micouleau2002-08-302-8/+10
| | | | | | | | | | | changed cli_nt_setup_creds() to call cli_net_auth_2 or cli_net_auth_3 based on a switch. pass also the negociation flags all the way. all the places calling cli_nt_setup_creds() are still using cli_net_aut2(), it's just for future use and for rpcclient. in the future we will be able to call auth_2 or auth_3 as we want. J.F. (This used to be commit 4d38caca40f98d0584fefb9d66424a3db5b5789e)
* Forgot to remove old usage() functionJelmer Vernooij2002-08-291-27/+5
| | | | (This used to be commit 4631e1fd1039c7eed58d3738bd7310219acc9000)
* Use popt for printing --help messageJelmer Vernooij2002-08-291-11/+9
| | | | (This used to be commit 355d28d9eae2fd4b94bb591c5c51cad2fab9d2fd)
* slprintf() takes a size argumentAndrew Tridgell2002-08-271-1/+1
| | | | (This used to be commit 4e142ba3749d2eb45687425ff87c153fb6147056)
* Don't try to convert enumprinters name to a unc name.Tim Potter2002-08-271-2/+6
| | | | (This used to be commit e09007dd5d17d5f84aea3c2fed16ce79ba7be1f2)
* Pass the object name down to the enum_printers rpc. By default this is theTim Potter2002-08-271-6/+9
| | | | | server name and everything works as advertised. See the MSDN doco for details. (This used to be commit d6b10fe9691bfc96d5933c029990c60fd292bdc9)
* Moved calculation of secure channel type into a new function.Tim Potter2002-08-231-6/+3
| | | | (This used to be commit b8dba26978c281259e02b9d6ebacaa7cba4f7787)
* Fix for change in cli_netlogon_sam_sync()Tim Potter2002-08-221-1/+1
| | | | (This used to be commit 6ec267618a7ba2c4a7170b78ccfe95120c5430c4)
* Added some new delta types discovered by Ronnie from ethereal"Tim Potter2002-08-222-6/+5
| | | | | | | | | | | - SAM_DELTA_RENAME{USER,GROUP,ALIAS} - SAM_DELTA_DELETE{USER,GROUP} Renamed some of the unknown delta types and their unmarshalling functions: - SAM_DELTA_TRUST_DOMS - SAM_DELTA_SECRET_INFO (This used to be commit 1f29276c2ff450c4ca3705c27fb0be71ddcda4ad)
* added a 'net rpc samdump' command for dumping the whole sam viaAndrew Tridgell2002-08-221-2/+2
| | | | | samsync operations (as a BDC) (This used to be commit e4cb106d2e3e6a41529369545a7a6ce5fe6d8986)
* A few fixes towards libsmbclient and rpcclient - get pointer types right andAndrew Bartlett2002-08-221-7/+7
| | | | | | | try to keep to functions inside libsmbclient. Andrew Bartlett (This used to be commit 340bc31fdb031d79fa87de27c2c46215dd8113a3)
* Move commentAndrew Bartlett2002-08-221-2/+3
| | | | (This used to be commit 009b331182b1338e07968388004f5d44b835e7f5)
* make rpcclient use print_guid()Andrew Tridgell2002-08-191-9/+2
| | | | (This used to be commit f2c48cadb22256564f2ddaa5169812c7c4383ec5)
* Add lsaqueryinfo2, but keep under "lsaquery" command. It will autoselectJim McDonough2002-08-121-9/+40
| | | | | | which lsaqueryinfo to do based in infoclass. Currently 12 is the only one that causes a queryinfo2. (This used to be commit f4ec2d52a7b093da701d68906cce6de197f182be)
* Use samr connect4, then fall back to samr connect if it fails. This isJim McDonough2002-08-121-29/+46
| | | | | what 2k does. (This used to be commit 99437db17aa7c2e3448f28f627e993e8ab762d31)
* Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.Tim Potter2002-08-081-0/+80
| | | | (This used to be commit fe43c2ac2d2e1dd3b3a25c807d4dd379c5ac4960)
* This fixes a number of ADS problems, particularly with netbioslessAndrew Tridgell2002-08-051-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setups. - split up the ads structure into logical pieces. This makes it much easier to keep things like the authentication realm and the server realm separate (they can be different). - allow ads callers to specify that no sasl bind should be performed (used by "net ads info" for example) - fix an error with handing ADS_ERROR_SYSTEM() when errno is 0 - completely rewrote the code for finding the LDAP server. Now try DNS methods first, and try all DNS servers returned from the SRV DNS query, sorted by closeness to our interfaces (using the same sort code as we use in replies from WINS servers). This allows us to cope with ADS DCs that are down, and ensures we don't pick one that is on the other side of the country unless absolutely necessary. - recognise dnsRecords as binary when displaying them - cope with the realm not being configured in smb.conf (work it out from the LDAP server) - look at the trustDirection when looking up trusted domains and don't include trusts that trust our domains but we don't trust theirs. - use LDAP to query the alternate (netbios) name for a realm, and make sure that both and long and short forms of the name are accepted by winbindd. Use the short form by default for listing users/groups. - rescan the list of trusted domains every 5 minutes in case new trust relationships are added while winbindd is running - include transient trust relationships (ie. C trusts B, B trusts A, so C trusts A) in winbindd. - don't do a gratuituous node status lookup when finding an ADS DC (we don't need it and it could fail) - remove unused sid_to_distinguished_name function - make sure we find the allternate name of our primary domain when operating with a netbiosless ADS DC (using LDAP to do the lookup) - fixed the rpc trusted domain enumeration to support up to approx 2000 trusted domains (the old limit was 3) - use the IP for the remote_machine (%m) macro when the client doesn't supply us with a name via a netbios session request (eg. port 445) - if the client uses SPNEGO then use the machine name from the SPNEGO auth packet for remote_machine (%m) macro - add new 'net ads workgroup' command to find the netbios workgroup name for a realm (This used to be commit e358d7b24c86a46d8c361b9e32a25d4f71a6dc00)
* Some crash fixes for netshareenum returning zero shares.Tim Potter2002-07-301-1/+1
| | | | (This used to be commit a5a0ff8bd7ee4a3586647d14fd750ec6df73efa8)
* Our include popt is starting to get a bit old - fixed some compileTim Potter2002-07-291-3/+3
| | | | | | | problems here. Also fixed some non-constant initialisers in samsync. (This used to be commit 33bd7214736dafd5927d63af5f8510646b81e7df)
* We don't need this silly unix username stuff. NT username is basicly unused,Andrew Bartlett2002-07-291-13/+3
| | | | | | | and must == unix username for sane implementation in passdb. Andrew Bartlett (This used to be commit 412c791980de7f88a926b2f9ed361f0f882594c8)
* Started to get samsync to insert account information in the passdb. It'sTim Potter2002-07-291-110/+309
| | | | | | | | | pretty half-arsed at the moment and doesn't work very well but Mr Bartlett was interested in it. Also started playing around with the more interesting bits of popt. The auto-generated usage information is pretty neat. (This used to be commit b3e51bfe6c13f1d20e599f675332f0489d8462e7)
* Use common popt definition for -d option.Tim Potter2002-07-291-7/+1
| | | | (This used to be commit 8c17904848a6206ab35652625ff5f3afcf6bcb0d)
* Tpot missed one...Andrew Bartlett2002-07-211-1/+1
| | | | (This used to be commit 28373e5bc2acc09a9e4c9dab3f76c21d04850dde)
* Renamed all the new_cli_netlogon_* functions to cli_netlogon_*Tim Potter2002-07-211-3/+3
| | | | | as they're no longer new! (This used to be commit 277f6bbb9a63541a473a80a7994e9bde5c6f22dc)
* If we can't connect, make sure its a level 0 so we see it, and the reason.Andrew Bartlett2002-07-201-1/+1
| | | | (This used to be commit 6129718bea458ceb7669ecabc8cf0c8f908c7074)
* Apply patch from "Kai Krueger" <kai@kruegernetz.de> to make it easier toAndrew Bartlett2002-07-141-51/+116
| | | | | | | determine what access masks should be applied to various SAMR calls. Andrew Bartlett (This used to be commit dbf28f992bcd4859a9b7d78ac1d33e4063617f94)
* Added -I option to rpcclient.Tim Potter2002-07-091-12/+20
| | | | (This used to be commit 2674adf1b5c54da03e8a445ec1e12d382294d1c1)
* Updates to the 'name -> sid' code:Andrew Bartlett2002-07-071-3/+2
| | | | | | | | | | | Correct the 'none mapped' behaviour, (so that it matches Win2k) and add a function to make the SID types appear as text strings in logs/rpcclient. Also, remove a silly case that would cause 'failure' to be 'success'. (Might look at this a bit more in future). Andrew Bartlett (This used to be commit c20d057f8821d13d3de61b319de44db23773516b)
* used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-1/+1
| | | | | code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
* Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison2002-06-281-2/+2
| | | | | | Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
* Qualify some of the hexidecimal responses with 0xAndrew Bartlett2002-06-261-5/+5
| | | | (This used to be commit e77e21cdbe2cb2d594494dd6e5cac37b5b1bcab8)
* Try to avoid infinite loops when reteriving users - even from broken servers.Andrew Bartlett2002-06-251-1/+4
| | | | | Andrew Bartlett (This used to be commit ebc8452a30b2a9bdd6698af8dad489f3f92ae7a6)
* Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett2002-06-252-2/+2
| | | | | | | few more places to use it. Andrew Bartlett (This used to be commit 23689b0746d5ab030d8693abf71dd2e80ec1d7c7)
* Fixed compiler warning.Tim Potter2002-06-041-1/+0
| | | | (This used to be commit 361afd241beeda033068c7f3a976f3f69fa2ac33)
* Added getdompwinfo function.Tim Potter2002-06-031-0/+26
| | | | (This used to be commit b3b3e45583718e5b034f6c67609523f35753c1a8)
* Update for new interface to netfileenumJim McDonough2002-06-011-1/+1
| | | | (This used to be commit c3921e36071a70ab9534fe92286b361aae2336b6)
* Update netfileenum to new api.Jim McDonough2002-05-311-1/+1
| | | | (This used to be commit 70f8adf297a3979230e425126cd5868972b1d17e)
* Fixed crash bug in querydispinfo.Tim Potter2002-05-311-70/+62
| | | | | Some reformatting. (This used to be commit 612eae45ef7b0289e0c67b331d96a351fc567e5c)
* Added netfileenum (sorry - no output though (-:) command.Tim Potter2002-05-301-0/+33
| | | | (This used to be commit 099b750b4ed8f04a1fd8a018508d412691e37df6)
* Added netremotetod to try and figure out which srvsvc commands are deniedTim Potter2002-05-291-0/+23
| | | | | when using restrictanonymous. (This used to be commit 0c65978ed07903af808da5f32cc29531aef23225)
* Added netshareenum command at level 1 and 2.Tim Potter2002-05-281-1/+74
| | | | (This used to be commit 99ac1b339c2b4ec5b85ecc3a87efa2ef508ecab1)
* Some fixes for enumerating domain groups and aliases:Tim Potter2002-05-281-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)
* Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett2002-05-242-2/+2
| | | | | | | | | didn't make any sense, and its was always just strlen(password) anyway. This fixes it to be strlen(password)+1 Andrew Bartlett (This used to be commit c205b18bd6b9b69200ff3db55f2c641631d4ab40)
* 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 (This used to be commit fa67e4626bed623333c571e76e06ccd52cba5cc5)
* Remove unused files.Andrew Bartlett2002-05-181-3/+6
| | | | | | | The size of samba going down for once :-) Andrew Bartlett (This used to be commit 00ef4aad88f4ba9f2e242578c37933eac001c351)
* 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 (This used to be commit d57a1b4629d12a0374cc6d74dfc6f5d4793fcef8)
* The cli_spoolss_setprinterdata() function interface changed slightly.Tim Potter2002-05-141-2/+4
| | | | (This used to be commit 79d7bcf42e568b8fe75818c1d2344bff738afd70)