summaryrefslogtreecommitdiff
path: root/source3/rpcclient
AgeCommit message (Collapse)AuthorFilesLines
2002-08-27Pass the object name down to the enum_printers rpc. By default this is theTim Potter1-6/+9
server name and everything works as advertised. See the MSDN doco for details. (This used to be commit d6b10fe9691bfc96d5933c029990c60fd292bdc9)
2002-08-23Moved calculation of secure channel type into a new function.Tim Potter1-6/+3
(This used to be commit b8dba26978c281259e02b9d6ebacaa7cba4f7787)
2002-08-22Fix for change in cli_netlogon_sam_sync()Tim Potter1-1/+1
(This used to be commit 6ec267618a7ba2c4a7170b78ccfe95120c5430c4)
2002-08-22Added some new delta types discovered by Ronnie from ethereal"Tim Potter2-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)
2002-08-22added a 'net rpc samdump' command for dumping the whole sam viaAndrew Tridgell1-2/+2
samsync operations (as a BDC) (This used to be commit e4cb106d2e3e6a41529369545a7a6ce5fe6d8986)
2002-08-22A few fixes towards libsmbclient and rpcclient - get pointer types right andAndrew Bartlett1-7/+7
try to keep to functions inside libsmbclient. Andrew Bartlett (This used to be commit 340bc31fdb031d79fa87de27c2c46215dd8113a3)
2002-08-22Move commentAndrew Bartlett1-2/+3
(This used to be commit 009b331182b1338e07968388004f5d44b835e7f5)
2002-08-19make rpcclient use print_guid()Andrew Tridgell1-9/+2
(This used to be commit f2c48cadb22256564f2ddaa5169812c7c4383ec5)
2002-08-12Add lsaqueryinfo2, but keep under "lsaquery" command. It will autoselectJim McDonough1-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)
2002-08-12Use samr connect4, then fall back to samr connect if it fails. This isJim McDonough1-29/+46
what 2k does. (This used to be commit 99437db17aa7c2e3448f28f627e993e8ab762d31)
2002-08-08Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.Tim Potter1-0/+80
(This used to be commit fe43c2ac2d2e1dd3b3a25c807d4dd379c5ac4960)
2002-08-05This fixes a number of ADS problems, particularly with netbioslessAndrew Tridgell1-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)
2002-07-30Some crash fixes for netshareenum returning zero shares.Tim Potter1-1/+1
(This used to be commit a5a0ff8bd7ee4a3586647d14fd750ec6df73efa8)
2002-07-29Our include popt is starting to get a bit old - fixed some compileTim Potter1-3/+3
problems here. Also fixed some non-constant initialisers in samsync. (This used to be commit 33bd7214736dafd5927d63af5f8510646b81e7df)
2002-07-29We don't need this silly unix username stuff. NT username is basicly unused,Andrew Bartlett1-13/+3
and must == unix username for sane implementation in passdb. Andrew Bartlett (This used to be commit 412c791980de7f88a926b2f9ed361f0f882594c8)
2002-07-29Started to get samsync to insert account information in the passdb. It'sTim Potter1-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)
2002-07-29Use common popt definition for -d option.Tim Potter1-7/+1
(This used to be commit 8c17904848a6206ab35652625ff5f3afcf6bcb0d)
2002-07-21Tpot missed one...Andrew Bartlett1-1/+1
(This used to be commit 28373e5bc2acc09a9e4c9dab3f76c21d04850dde)
2002-07-21Renamed all the new_cli_netlogon_* functions to cli_netlogon_*Tim Potter1-3/+3
as they're no longer new! (This used to be commit 277f6bbb9a63541a473a80a7994e9bde5c6f22dc)
2002-07-20If we can't connect, make sure its a level 0 so we see it, and the reason.Andrew Bartlett1-1/+1
(This used to be commit 6129718bea458ceb7669ecabc8cf0c8f908c7074)
2002-07-14Apply patch from "Kai Krueger" <kai@kruegernetz.de> to make it easier toAndrew Bartlett1-51/+116
determine what access masks should be applied to various SAMR calls. Andrew Bartlett (This used to be commit dbf28f992bcd4859a9b7d78ac1d33e4063617f94)
2002-07-09Added -I option to rpcclient.Tim Potter1-12/+20
(This used to be commit 2674adf1b5c54da03e8a445ec1e12d382294d1c1)
2002-07-07Updates to the 'name -> sid' code:Andrew Bartlett1-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)
2002-07-01used findstatic.pl to make some variables static and remove some deadAndrew Tridgell1-1/+1
code (This used to be commit 91ad9041e9507d36eb3f40c23c5d4df61f139ef0)
2002-06-28Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison1-2/+2
Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
2002-06-26Qualify some of the hexidecimal responses with 0xAndrew Bartlett1-5/+5
(This used to be commit e77e21cdbe2cb2d594494dd6e5cac37b5b1bcab8)
2002-06-25Try to avoid infinite loops when reteriving users - even from broken servers.Andrew Bartlett1-1/+4
Andrew Bartlett (This used to be commit ebc8452a30b2a9bdd6698af8dad489f3f92ae7a6)
2002-06-25Update cli_full_connection() to take a 'flags' paramater, and try to get aAndrew Bartlett2-2/+2
few more places to use it. Andrew Bartlett (This used to be commit 23689b0746d5ab030d8693abf71dd2e80ec1d7c7)
2002-06-04Fixed compiler warning.Tim Potter1-1/+0
(This used to be commit 361afd241beeda033068c7f3a976f3f69fa2ac33)
2002-06-03Added getdompwinfo function.Tim Potter1-0/+26
(This used to be commit b3b3e45583718e5b034f6c67609523f35753c1a8)
2002-06-01Update for new interface to netfileenumJim McDonough1-1/+1
(This used to be commit c3921e36071a70ab9534fe92286b361aae2336b6)
2002-05-31Update netfileenum to new api.Jim McDonough1-1/+1
(This used to be commit 70f8adf297a3979230e425126cd5868972b1d17e)
2002-05-31Fixed crash bug in querydispinfo.Tim Potter1-70/+62
Some reformatting. (This used to be commit 612eae45ef7b0289e0c67b331d96a351fc567e5c)
2002-05-30Added netfileenum (sorry - no output though (-:) command.Tim Potter1-0/+33
(This used to be commit 099b750b4ed8f04a1fd8a018508d412691e37df6)
2002-05-29Added netremotetod to try and figure out which srvsvc commands are deniedTim Potter1-0/+23
when using restrictanonymous. (This used to be commit 0c65978ed07903af808da5f32cc29531aef23225)
2002-05-28Added netshareenum command at level 1 and 2.Tim Potter1-1/+74
(This used to be commit 99ac1b339c2b4ec5b85ecc3a87efa2ef508ecab1)
2002-05-28Some fixes for enumerating domain groups and aliases:Tim Potter1-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)
2002-05-24Remove the password length paramater from cli_full_connection - it reallyAndrew Bartlett2-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)
2002-05-23Given Jeremy's positive response, and a lack of one from tpot, I'll commitAndrew Bartlett1-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)
2002-05-18Remove unused files.Andrew Bartlett1-3/+6
The size of samba going down for once :-) Andrew Bartlett (This used to be commit 00ef4aad88f4ba9f2e242578c37933eac001c351)
2002-05-17A few more trusted domains updates from mimir.Andrew Bartlett1-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)
2002-05-14The cli_spoolss_setprinterdata() function interface changed slightly.Tim Potter1-2/+4
(This used to be commit 79d7bcf42e568b8fe75818c1d2344bff738afd70)
2002-05-07Added cmd_spoolss_enumjobs() function to rpcclient.Tim Potter1-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)
2002-05-07Fixed more compiler warnings.Tim Potter1-3/+3
(This used to be commit fa5c1ba12b4cae0c03f1adbc38e7ad5eeca0e895)
2002-05-07Fixed compile warning.Tim Potter1-1/+2
(This used to be commit 671607a3eefc58673bdd4cb8fc8d3a3f65542f03)
2002-04-17Fixed command line argument parsing.Tim Potter1-70/+54
(This used to be commit 28c1fae4d89399ec4d15bfb3ccd17d8b5b0495fc)
2002-04-16merges from SAMBA_2_2Gerald Carter1-44/+61
(This used to be commit 91929afbb0cad422cc6d05f9a10ba5c3d797d779)
2002-04-14The cli_lsa_lookup_{names,sids} functions were returning uselessTim Potter1-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)
2002-04-14Fixed comment.Tim Potter1-1/+1
(This used to be commit 06df6c79ae91cb4b1427a2a230fee288cff50e10)
2002-04-04Free popt context after argument parsing.Tim Potter1-0/+2
(This used to be commit f287f62962feca6dac8747d16676dc64723eb5b1)