summaryrefslogtreecommitdiffstats
path: root/source3/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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)
| * 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. (This used to be commit f32e3f2087c44f27bcfc8a8b1c76ee2b29f01dea)
| * Fixed more compiler warnings.Tim Potter2002-05-071-3/+3
| | | | | | | | (This used to be commit fa5c1ba12b4cae0c03f1adbc38e7ad5eeca0e895)
| * Fixed compile warning.Tim Potter2002-05-071-1/+2
| | | | | | | | (This used to be commit 671607a3eefc58673bdd4cb8fc8d3a3f65542f03)
| * Fixed command line argument parsing.Tim Potter2002-04-171-70/+54
| | | | | | | | (This used to be commit 28c1fae4d89399ec4d15bfb3ccd17d8b5b0495fc)
| * merges from SAMBA_2_2Gerald Carter2002-04-161-44/+61
| | | | | | | | (This used to be commit 91929afbb0cad422cc6d05f9a10ba5c3d797d779)
| * 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. (This used to be commit 245468dbabb7c849ce423cc3cb586fa913d0adfe)
| * Fixed comment.Tim Potter2002-04-141-1/+1
| | | | | | | | (This used to be commit 06df6c79ae91cb4b1427a2a230fee288cff50e10)
* | merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-0411-91/+99
| | | | | | | | | | from APP_HEAD (This used to be commit 1cfd2ee433305e91e87804dd55d10e025d30a69e)
* | sync'ing up for 3.0alpha20 releaseGerald Carter2002-09-255-102/+83
| | | | | | | | (This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
* | sync 3.0 branch with HEADJelmer Vernooij2002-08-177-174/+477
| | | | | | | | (This used to be commit 6497eb78e87a6ffa4c2c61aa4ef6ecd451821a27)
* | updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell2002-07-157-270/+519
| | | | | | | | (This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
* | Merge from HEAD:Tim Potter2002-05-071-39/+156
| | | | | | | | | | | | | | | | | | | | | | >Added cli_spoolss_enumjobs() function. >Added cmd_spoolss_enumjobs() function to rpcclient. > >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. (This used to be commit dce534d4373cc0f204d82e0876bb94db8dfeb628)
* | Merge of lsa lookup names/sids patch from HEAD.Tim Potter2002-04-151-10/+11
|/ | | | (This used to be commit e57c162897d4a7e66bb87091d179ac138f751c64)