summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/ntlmssp.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-ntlmssp Remove calls to auth_ntlmssp_and_flags from the serverAndrew Bartlett2011-08-031-3/+1
| | | | | | | | | | | | This is changed so that the callers ask for the additional flags that they need, starting with no additional flags. This helps to create a proper abstraction layer in ntlmssp_wrap/auth_ntlmssp. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-ntlmssp NTLMSSP sealing implies signing, so set both flagsAndrew Bartlett2011-08-031-0/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-winbind: remove global inclusion of libwbclient.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-libsmb: remove duplicate NTSTATUS variable.Günther Deschner2011-03-291-1/+0
| | | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Mar 29 17:00:26 CEST 2011 on sn-devel-104
* Fix inspired by work done by David Disseldorp for bug #8040 - smbclient ↵Jeremy Allison2011-03-281-3/+11
| | | | | | | | | segfaults when a Cyrillic netbios name or workgroup is configured. Change msrpc_gen to return NTSTATUS and ensure everywhere this is used it is correctly checked to return that status. Jeremy.
* nsswitch: wbcFreeMemory deals fine with NULLVolker Lendecke2011-03-051-3/+1
|
* s3: Fix an uninitialized variableVolker Lendecke2010-08-141-0/+3
|
* libcli/auth Make the source3/ implementation of the NTLMSSP server commonAndrew Bartlett2010-08-101-527/+0
| | | | | | | | | This means that the core logic (but not the initialisation) of the NTLMSSP server is in common, but uses different authentication backends. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp Split the NTLMSSP server into before and after authenticationAndrew Bartlett2010-08-101-62/+148
| | | | | | | | | | | | | | | This allows for a future where the auth subsystem is async, and the session key generation needs to happen in a callback. This code is originally reworked into this style by metze for the source4/ implementation. The other change here is to introduce an 'out_mem_ctx', which makes the API match that used in source4. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp Always call ntlmssp_sign_init()Andrew Bartlett2010-08-101-3/+1
| | | | | | | | | There is no code path that sets nt_status before this point, without a return. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp Don't use talloc_tos() for NTLMSSP blobs for nowAndrew Bartlett2010-08-101-2/+2
| | | | | | | | | | This code will, I hope, soon be merged in common, and the Samba4 use case does not currently support talloc_tos() properly. Use another context for now. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp Don't permit LM_KEY in combination with NTLMv2Andrew Bartlett2010-08-101-1/+4
| | | | | | | | | This is another 'belts and braces' check to avoid the use of the weak 'LM_KEY' encryption when the client has chosen NTLMv2. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp Don't reply with the LM_KEY negotiation flag when not availableAndrew Bartlett2010-08-101-0/+15
| | | | | | | | | This ensures the client isn't confused and we don't enter this weaker authentication scheme when we don't really, really need to. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp Don't use the lm key if the user didn't supply one.Andrew Bartlett2010-08-101-3/+3
| | | | | | | | | | | This may help to avoid a number of possible MITM attacks where LM_KEY is spoofed into the session. If the login wasn't with lanman (and so the user chose to disclose their lanman response), don't disclose back anything based on their lanman password. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp Add extra DEBUG() message for auth system failuresAndrew Bartlett2010-08-101-0/+2
| | | | | | Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp Redirect lp_lanman_auth() via 'allow_lm_key'Andrew Bartlett2010-08-101-2/+4
| | | | | | | | This will allow this to be handled via common code in the future Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* libcli/auth Move some source3/ NTLMSSP functions to the common code.Andrew Bartlett2010-08-101-87/+0
| | | | | | | | libcli/auth Use true and false rather than True and False in common code Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3-ntlmssp: Remove ntlmssp_end and let the talloc hierarchy handle it.Simo Sorce2010-07-191-17/+0
| | | | | | All the members are children of ntlmssp_state anyway. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3: Fix some valgrind errorsVolker Lendecke2010-06-281-19/+36
| | | | | | | | | | Essentially the same change as 15297ee, this time for the client side. Günther, Andrew B, please check! Thanks, Volker
* s3: Fix some valgrind errorsVolker Lendecke2010-06-211-18/+33
| | | | | | | | | | | | | With -d 10, there were a ton of uninitialized variables: The "NegotiateFlags" in the automatically parsed ntlmssp structures were not initialized. This also cleans up the talloc use a bit: do early TALLOC_FREE() Günther, please check! Thanks, Volker
* s3:ntlmssp Move ntlmssp_sign.c from source3 to common code.Andrew Bartlett2010-05-311-51/+1
| | | | | | | | | This needs a small re-arrangement of the supporting code. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* ntlmssp: Make the ntlmssp.h from source3/ a common headerAndrew Bartlett2010-05-311-1/+1
| | | | | | | | | The code is not yet in common, but I hope to fix that soon. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* Correctly check error code return.Jeremy Allison2010-05-191-1/+1
| | | | Jeremy.
* Thanks to Andrew Bartlett's advice, fix the NTLMSSP version problem the ↵Jeremy Allison2010-05-191-32/+34
| | | | | | | | | correct way. No more magic blobs :-). Use ndr_push_struct_blob() to push a properly formatted VERSION struct. Jeremy.
* Fix our NTLMSSP implementation against the Microsoft torture tester.Jeremy Allison2010-05-181-13/+37
| | | | | | We need to return a version blob if we negotiate version info. Jeremy.
* s3: Remove use of iconv_convenience.Jelmer Vernooij2010-05-181-6/+0
|
* s3-crypto: only include crypto headers when crypto is done.Günther Deschner2010-05-181-0/+3
| | | | Guenther
* s3:ntlmssp: use c99 typesStefan Metzmacher2010-03-241-22/+22
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: use client.netbios_name instead of workstationStefan Metzmacher2010-03-241-4/+6
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: remove unused ntlmssp_set_workstation()Stefan Metzmacher2010-03-241-13/+0
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: inline ntlmssp_weaken_keys()Stefan Metzmacher2010-03-241-41/+0
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: remove unused get_global_myname() and get_domain() from ↵Stefan Metzmacher2010-03-241-8/+0
| | | | | | | | | | ntlmssp_state Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store themStefan Metzmacher2010-03-241-16/+41
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: remove server_name from ntlmssp_state and fill the server.* ↵Stefan Metzmacher2010-03-241-1/+10
| | | | | | | | | | fields also for the client Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_stateStefan Metzmacher2010-03-241-36/+65
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: replace server_role by a server.is_standalone in ntlmssp_stateStefan Metzmacher2010-03-241-2/+2
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Add NTLMSSP_FEATURE_CCACHEVolker Lendecke2010-01-241-0/+60
| | | | Uses the winbind ccache to do authentication if asked to do so
* s3: Remove some calls to memset -- reduces text size by some bytes for meVolker Lendecke2010-01-241-5/+2
|
* s3:ntlmssp: change get_challange() to return NTSTATUSStefan Metzmacher2009-12-291-3/+8
| | | | metze
* s3:ntlmssp: remove unused ntlmssp_stored_response()Stefan Metzmacher2009-12-291-25/+1
| | | | metze
* s3:ntlmssp: remove unused ref_count from ntlmssp_stateStefan Metzmacher2009-12-291-12/+4
| | | | metze
* s3:ntlmssp: rename NTLM_MESSAGE_TYPE into ntlmssp_message_typeStefan Metzmacher2009-12-291-1/+1
| | | | metze
* s3:ntlmssp: only include ntlmssp.h where actually neededAndrew Bartlett2009-12-221-0/+1
| | | | Andrew Bartlett
* s3:ntlmssp: remove the typedef NTLMSSP_STATEAndrew Bartlett2009-12-221-15/+15
| | | | Andrew Bartlett
* s3:ntlmssp: rename enum NTLMSSP_ROLE into enum ntlmssp_roleAndrew Bartlett2009-12-221-1/+1
| | | | Andrew Bartlett
* libcli/auth Make gd's NDR NTLMSSP parsers helpers commonAndrew Bartlett2009-12-221-1/+1
| | | | (but not built in Samba4 for now)
* s3-ntlmssp: use generated ntlmssp code for debugging purpose.Günther Deschner2009-08-281-0/+69
| | | | Guenther
* s3-ntlmssp: use interface constants in TargetInfo blob.Günther Deschner2009-08-281-5/+5
| | | | Guenther
* s3-ntlmssp: use NTLMSSP headers from IDL and remove duplicate constants.Günther Deschner2009-08-281-16/+14
| | | | Guenther