summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
Commit message (Collapse)AuthorAgeFilesLines
...
* merge of working dsrolegetprimdominfo() client code from APP_HEADGerald Carter2002-10-043-8/+61
|
* merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-0411-91/+99
| | | | from APP_HEAD
* The new popt_common_debug code obviates the need to muck around withTim Potter2002-09-051-10/+2
| | | | AllowDebugChange, saving the debuglevel across lp_load() calls etc.
* remove inet_aton()Gerald Carter2002-09-041-1/+1
|
* 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...
* Change JOB_INFO_CTR to return a pointer to an array rather than array of ↵Tim Potter2002-09-031-2/+2
| | | | pointers.
* allow rpcclient's samlogon command to use cli_net_3().Jean-François Micouleau2002-08-301-3/+11
| | | | J.F.
* 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.
* Forgot to remove old usage() functionJelmer Vernooij2002-08-291-27/+5
|
* Use popt for printing --help messageJelmer Vernooij2002-08-291-11/+9
|
* slprintf() takes a size argumentAndrew Tridgell2002-08-271-1/+1
|
* Don't try to convert enumprinters name to a unc name.Tim Potter2002-08-271-2/+6
|
* 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.
* Moved calculation of secure channel type into a new function.Tim Potter2002-08-231-6/+3
|
* Fix for change in cli_netlogon_sam_sync()Tim Potter2002-08-221-1/+1
|
* 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
* added a 'net rpc samdump' command for dumping the whole sam viaAndrew Tridgell2002-08-221-2/+2
| | | | samsync operations (as a BDC)
* 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
* Move commentAndrew Bartlett2002-08-221-2/+3
|
* make rpcclient use print_guid()Andrew Tridgell2002-08-191-9/+2
|
* 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.
* Use samr connect4, then fall back to samr connect if it fails. This isJim McDonough2002-08-121-29/+46
| | | | what 2k does.
* Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.Tim Potter2002-08-081-0/+80
|
* 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
* Some crash fixes for netshareenum returning zero shares.Tim Potter2002-07-301-1/+1
|
* 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.
* 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
* 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.
* Use common popt definition for -d option.Tim Potter2002-07-291-7/+1
|
* Tpot missed one...Andrew Bartlett2002-07-211-1/+1
|
* Renamed all the new_cli_netlogon_* functions to cli_netlogon_*Tim Potter2002-07-211-3/+3
| | | | as they're no longer new!
* If we can't connect, make sure its a level 0 so we see it, and the reason.Andrew Bartlett2002-07-201-1/+1
|
* 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
* Added -I option to rpcclient.Tim Potter2002-07-091-12/+20
|
* 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
* used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-1/+1
| | | | code
* 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.
* Qualify some of the hexidecimal responses with 0xAndrew Bartlett2002-06-261-5/+5
|
* Try to avoid infinite loops when reteriving users - even from broken servers.Andrew Bartlett2002-06-251-1/+4
| | | | Andrew Bartlett
* 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
* Fixed compiler warning.Tim Potter2002-06-041-1/+0
|
* Added getdompwinfo function.Tim Potter2002-06-031-0/+26
|
* Update for new interface to netfileenumJim McDonough2002-06-011-1/+1
|
* Update netfileenum to new api.Jim McDonough2002-05-311-1/+1
|
* Fixed crash bug in querydispinfo.Tim Potter2002-05-311-70/+62
| | | | Some reformatting.
* Added netfileenum (sorry - no output though (-:) command.Tim Potter2002-05-301-0/+33
|
* Added netremotetod to try and figure out which srvsvc commands are deniedTim Potter2002-05-291-0/+23
| | | | when using restrictanonymous.
* Added netshareenum command at level 1 and 2.Tim Potter2002-05-281-1/+74
|
* 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
* 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