summaryrefslogtreecommitdiffstats
path: root/source/rpc_client
Commit message (Collapse)AuthorAgeFilesLines
* SAMR lookupdomain rpc client patches from amber palekar <amber@nu3.net>Tim Potter2003-04-041-0/+46
|
* NTLM Authentication:Andrew Bartlett2003-03-231-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a 'privileged' mode to Winbindd. This is achieved by means of a directory under lockdir, that the admin can change the group access for. - This mode is now required to access with 'CRAP' authentication feature. - This *will* break the current SQUID helper, so I've fixed up our ntlm_auth replacement: - Update our NTLMSSP code to cope with 'datagram' mode, where we don't get a challenge. - Use this to make our ntlm_auth utility suitable for use in current Squid 2.5 servers. - Tested - works for Win2k clients, but not Win9X at present. NTLMSSP updates are needed. - Now uses fgets(), not x_fgets() to cope with Squid environment (I think somthing to do with non-blocking stdin). - Add much more robust connection code to wb_common.c - it will not connect to a server of a different protocol version, and it will automatically try and reconnect to the 'privileged' pipe if possible. - This could help with 'privileged' idmap operations etc in future. - Add a generic HEX encode routine to util_str.c, - fix a small line of dodgy C in StrnCpy_fn() - Correctly pull our 'session key' out of the info3 from th the DC. This is used in both the auth code, and in for export over the winbind pipe to ntlm_auth. - Given the user's challenge/response and access to the privileged pipe, allow external access to the 'session key'. To be used for MSCHAPv2 integration. Andrew Bartlett
* Ignore .po and .po32 files.Martin Pool2003-03-181-0/+3
|
* More const fixes and flow on fixes from yesterday's const-fest.Tim Potter2003-02-255-19/+24
|
* Merge:Tim Potter2003-02-241-7/+5
| | | | > Exit path cleanup for cli_samr_enum_dom_users()
* Exit path cleanup for cli_samr_enum_dom_users()Tim Potter2003-02-211-34/+18
|
* Return a WERROR instead of a NTSTATUS like the rest of the srvsvcTim Potter2003-02-171-11/+7
| | | | rpc calls.
* Ensure that only parse_prs.c access internal members of the prs_struct.Jeremy Allison2003-02-141-10/+10
| | | | | Needed to move to disk based i/o later. Jeremy.
* initial server side privileges implementation, using a tdb. This needs to be ↵Andrew Tridgell2003-02-121-1/+1
| | | | hooked into pdb, and we need some access control on changing privileges. That's next
* added the 'lsaenumacctwithright' command to rpcclient. This allows youAndrew Tridgell2003-02-101-0/+52
| | | | | to lookup what SIDs have a particular privilege (that is how privileges are stored).
* One more signed/unsigned fixAndrew Bartlett2003-02-011-1/+1
|
* Pass down max_size parameter to cli_samr_query_dispinfo() instead ofTim Potter2003-01-291-2/+35
| | | | | | | | | | using a hardcoded value later on. Added a helper function that returns the observed values for max_entries and max_size for each cli_samr_query_dispinfo() call. These values were obtained from watching the NT4 user manager application with ethereal and are the only ones that can enumerate a 60k user domain reliably under Windows 2000.
* added LsaRemoveAccountRightsAndrew Tridgell2003-01-281-0/+42
| | | | | this now gives us complete remove privileges control in the client libs, so we are in good shape for starting on the server side.
* cleaned up the lsa_enum_acct_rights function and added aAndrew Tridgell2003-01-281-0/+43
| | | | | | lsa_add_acct_rights function. This allows us to add privileges remotely to accounts using rpcclient.
* reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell2003-01-171-8/+8
|
* This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell2003-01-171-8/+8
| | | | | | | | | | | | | | calls to init_unistr2() in the code and every one of them got the 3rd argument incorrect, so I thought it best just to remove the argument. The incorrect usage was caused by callers using strlen() to determine the length of the string. The 3rd argument to init_unistr2() was supposed to be the character length, not the byte length of the string, so for non-english this could come out wrong. I also removed the bogus 'always allocate at least 256 bytes' hack. There may be some code that relies on this, but if there is then the code is broken and needs fixing.
* Let's clean up client side ntlmssp!Tim Potter2003-01-171-10/+0
| | | | Removed a dead function.
* added cli_lsa_enum_account_rights() call. Note that this is inAndrew Tridgell2003-01-151-0/+57
| | | | | | | | | | | principal similar to the existing cli_lsa_enum_privsaccount() call, except that cli_lsa_enum_account_rights() doesn't require a call to open_account first. There is also the minor matter that cli_lsa_enum_account_rights() works whereas cli_lsa_enum_privsaccount() doesn't! this call can be used to find what privileges an account or group has. This is a first step towards proper privileges support in Samba.
* Added comment about a SMB_ASSERT()Tim Potter2003-01-141-0/+3
|
* Make sure that those cleanups actually went in.Richard Sharpe2003-01-131-2/+2
|
* [merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter2003-01-111-0/+2
| | | | to send notify events; CR 1491
* BIG patch...Andrew Bartlett2003-01-022-9/+9
| | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett
* the shutdown call does not have a 16 bit flags, but 2 byte representing booleansSimo Sorce2002-12-301-2/+3
| | | | | | | | this commit change the structure and code to reflect this some test revelead I'm right. some other revelead currently the abort shutdown does not work against my test machine even if it returns successfully ... need investigation
* make querygroup in rpcclient working, same fix as per 2.2 treeSimo Sorce2002-12-081-3/+3
|
* fix cli_ds_getprimarydominfo(); merge from SAMBA_3_0Gerald Carter2002-11-271-1/+1
|
* Merge from appliance:Tim Potter2002-11-191-6/+16
| | | | >Fix memory leak in cli_ds_getprimarydominfo()
* A cool idea from mbp: create a big shared library of all Samba objectsTim Potter2002-11-151-4/+3
| | | | | | | | | which we can use to link against Samba unit test programs. Now we can compile and link unit tests without having to create 4MB executables for each program It's called libbigballofmud.so both to discourage casual usage and also to reflect what the dependencies within Samba have become.
* Removed global_myworkgroup, global_myname, global_myscope. Added liberalJeremy Allison2002-11-122-24/+17
| | | | | | dashes of const. This is a rather large check-in, some things may break. It does compile though :-). Jeremy.
* What is wrong with you, Jim? Check in the final version, not an interim one...Jim McDonough2002-11-071-139/+17
|
* Allow multiple fragment RPC's to be sent.Jim McDonough2002-11-071-18/+175
|
* Merge of scalable printing code fix... Needs testing.Jeremy Allison2002-11-071-2/+2
| | | | | | | Also tidied up some of Richard's code (I don't think he uses the compiler flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like I do :-) :-). Jeremy.
* Client side functions for enumprinterkey.Tim Potter2002-11-061-0/+100
|
* Display pipe name in rpc bind failure debug.Tim Potter2002-11-021-1/+2
|
* Tidyup of some DCERPC pipe connection debugs. The new LSA_DS stuffTim Potter2002-11-011-4/+3
| | | | | generates some errors we haven't seen before which are inappropriately logged at level 0.
* Fix a silly memset typo.Tim Potter2002-10-211-2/+2
| | | | Change a int* to a uint32* in the cli_spoolss_enum_ports() function.
* Zero tallocated memory in decode_printer_info, decode_driver_info,Tim Potter2002-10-211-0/+10
| | | | decode_port_info and decode_printerdriver functions.
* Do a SMB_ASSERT() in cli_nt_session_open() when the pipe index is outTim Potter2002-10-171-2/+3
| | | | of range instead of silently failing.
* merge from APP_HEADGerald Carter2002-10-081-0/+16
| | | | | | | | | * s/driverlocation/comment * detect native mode domain and enumerate local groups Also * Added sendfile stats from SAMBA_2_2
* merge native_mode flag in winbindd_domain struct from app-headGerald Carter2002-10-041-31/+11
|
* merge of working dsrolegetprimdominfo() client code from APP_HEADGerald Carter2002-10-042-1/+64
|
* merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter2002-10-042-30/+79
| | | | from APP_HEAD
* change notify merge from APP_HEADGerald Carter2002-09-101-0/+3
|
* Return WERR_UNKNOWN_LEVEL for unknown info levels.Tim Potter2002-09-091-3/+12
|
* Return WERR_UNKNOWN_LEVEL for getprinterdriver level 6 as we don'tTim Potter2002-09-091-0/+3
| | | | know how to decode a printer driver into a DRIVER_INFO_6 structure.
* cli_spoolss_enumprinterdrivers:Tim Potter2002-09-061-0/+4
| | | | Return WERR_UNKNOWN_LEVEL if we can't decode the returned buffer.
* Conver cli_spoolss routines to use REGISTRY_VALUE and REGVAL_CTR code. Nice ↵Tim Potter2002-09-031-67/+34
| | | | | | one jerry! (Hey I thought I checked this in already?)
* Change JOB_INFO_CTR to return a pointer to an array rather than array of ↵Tim Potter2002-09-031-4/+47
| | | | | | pointers. Implemented client function for deleteprinterdataex.
* Return data from enumprinterdataex by deep copying on passed in tdb context.Tim Potter2002-09-031-1/+17
|
* Implemented some more client side spoolss functions:Tim Potter2002-09-021-1/+162
| | | | | | - getprinterdataex(), setprinterdataex(), enumprinterdataex() Pass data type down to setprinterdata() fn instead of hardcoding REG_SZ
* added cli_net_auth_3 client code.Jean-François Micouleau2002-08-301-13/+96
| | | | | | | | | | 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.