summaryrefslogtreecommitdiffstats
path: root/source/utils/ntlm_auth.c
Commit message (Collapse)AuthorAgeFilesLines
* Print out the 'freindly' error message from winbind. Also print usefulAndrew Bartlett2003-04-021-4/+6
| | | | | | | | information into it re the privilaged pipe. Also clean up some bugs in winbindd_pam.c Andrew Bartlett
* error_string, not error_message...Andrew Bartlett2003-04-021-1/+1
|
* Clean up ntlm_auth a bit, and add a --diagnositics swtich, to check thatAndrew Bartlett2003-04-021-111/+417
| | | | | | | the returned session key is the one that we expect to get for that each of login. Andrew Bartlett
* Remove useless popt optionsJelmer Vernooij2003-03-311-2/+0
|
* Revoke some of the popt patch from metze I applied earlier today. It addedJelmer Vernooij2003-03-241-1/+2
| | | | some double options and broke some parameters.
* Patch from metze to generalise POPT_COMMON_SAMBA, with some minor changesJelmer Vernooij2003-03-241-6/+4
|
* NTLM Authentication:Andrew Bartlett2003-03-231-82/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* Add -V option (to print out version) to utilities where possibleJelmer Vernooij2003-02-181-0/+1
| | | | (pdbedit already has a -V option..)
* the 'static' keyword here is useless as we are not declaring aAndrew Tridgell2003-01-171-1/+1
| | | | variable or function
* Updates to the NTLMSSP code again - moving the base64 decode fuctionality outAndrew Bartlett2003-01-161-29/+150
| | | | | | | | | | | | | of the SWAT code, and adding a base64 encoder. The main purpose of this patch is to add NTLMSSP support to 'ntlm_auth', for use with Squid. Unfortunetly the squid side doesn't quite support what we need yet. Changes to winbind to get us the info we need, and a couple of consequential changes/cleanups in the rest of the code. Andrew Bartlett
* Add a dash of static.Andrew Bartlett2003-01-021-3/+3
|
* BIG patch...Andrew Bartlett2003-01-021-1/+1
| | | | | | | | | | | | | | | | 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
* Add support to switch between Squid 2.4 and 2.5 protocols - squid doesn'tAndrew Bartlett2002-11-241-7/+20
| | | | | | | encode the username, so don't decode it (users could play HTTP escaping games on usernames). Andrew Bartlett
* Add ntlm_auth, a new program to provide a stable interface to winbind'sAndrew Bartlett2002-11-241-0/+416
authentication code. In particular, ntlm_auth is designed to replace the winbind authentication 'helpers' currently supplied by Squid. I have added support for the current plaintext password protocol used by Squid, and will add the real guts (NTLMSSP support) shortly. I'll merge this into 3.0 when I've got the interface more stable (error message format etc) and got the important NTLMSSP support added. Also move SWAT's URL decoding code into util_str.c, for use in both utilities. Andrew Bartlett