summaryrefslogtreecommitdiffstats
path: root/source4/auth/ntlmssp
Commit message (Collapse)AuthorAgeFilesLines
* Add in support for the NTLMSSP version reply.Jeremy Allison2010-05-242-4/+31
| | | | Jeremy.
* s4:auth Change auth_generate_session_info to take an auth contextAndrew Bartlett2010-04-141-5/+5
| | | | | | | | | | | | | | | | | | The auth context was in the past only for NTLM authentication, but we need a SAM, an event context and and loadparm context for calculating the local groups too, so re-use that infrustructure we already have in place. However, to avoid problems where we may not have an auth_context (in torture tests, for example), allow a simpler 'session_info' to be generated, by passing this via an indirection in gensec and an generate_session_info() function pointer in the struct auth_context. In the smb_server (for old-style session setups) we need to change the async context to a new 'struct sesssetup_context'. This allows us to use the auth_context in processing the authentication reply . Andrew Bartlett
* s4-waf: removed the AUTOGENERATED markersAndrew Tridgell2010-04-061-4/+0
| | | | we won't be using the mk -> wscript generator again
* s4-waf: mark the wscript files as python so vim/emacs knows how to highlight ↵Andrew Tridgell2010-04-061-0/+2
| | | | them
* build: waf quicktest nearly worksAndrew Tridgell2010-04-061-1/+1
| | | | | Rewrote wafsamba using a new dependency handling system, and started adding the waf test code
* build: commit all the waf build files in the treeAndrew Tridgell2010-04-061-0/+13
|
* s4:ntlmssp: move sign/seal states to a private ntlmssp_crypt_state unionStefan Metzmacher2010-03-242-76/+63
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: make use of dump_arc4_state()Stefan Metzmacher2010-03-241-8/+7
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: copy dump_arc4_state() from source3Stefan Metzmacher2010-03-241-0/+6
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: avoid usage of calc_ntlmv2_key_talloc()Stefan Metzmacher2010-03-242-29/+10
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: make use of calc_ntlmv2_key() for seal keysStefan Metzmacher2010-03-241-15/+16
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: add calc_ntlmv2_key() from source3Stefan Metzmacher2010-03-241-0/+11
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: rename calc_ntlmv2_key => calc_ntlmv2_key_tallocStefan Metzmacher2010-03-241-5/+5
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: inline ntlmssp_weakend_keys()Stefan Metzmacher2010-03-242-54/+41
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: use a 'bool ok' helper variable to make the code more readableStefan Metzmacher2010-03-241-6/+14
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: fix some formatingStefan Metzmacher2010-03-241-74/+110
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: move doing_ntlm2 to ntlmssp_server_auth_stateStefan Metzmacher2010-03-242-4/+3
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: move NTLM2 session_nonce to ntlmssp_server_auth_stateStefan Metzmacher2010-03-242-8/+7
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: move encrypted_session_key to ntlmssp_server_auth_stateStefan Metzmacher2010-03-242-29/+19
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: keep a ntlmssp_server_auth_state to transport variables from ↵Stefan Metzmacher2010-03-241-10/+23
| | | | | | | | preauth to postauth hooks metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: remove unused server_multiple_authentications feature.Stefan Metzmacher2010-03-242-14/+1
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: rename gensec_ntlmssp_state => ntlmssp_stateStefan Metzmacher2010-03-245-352/+352
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: split gensec_ntlmssp_unseal_packet() and ntlmssp_unseal_packet()Stefan Metzmacher2010-03-241-17/+34
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: split gensec_ntlmssp_seal_packet() and ntlmssp_seal_packet()Stefan Metzmacher2010-03-241-19/+37
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: split gensec_ntlmssp_check_packet() and ntlmssp_check_packet()Stefan Metzmacher2010-03-241-13/+31
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: split gensec_ntlmssp_sign_packet() and ntlmssp_sign_packet()Stefan Metzmacher2010-03-241-12/+27
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: make user a 'const char *' in (gensec_)ntlmssp_stateStefan Metzmacher2010-03-241-1/+1
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: remove server_name from (gensec_)ntlmssp_state and fill the ↵Stefan Metzmacher2010-03-242-2/+10
| | | | | | | | | | server.* fields also for the client Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: calculate server names at startup and store them in ↵Stefan Metzmacher2010-03-242-26/+37
| | | | | | | | | | (gensec_)ntlmssp_state->server.* Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: replace server_role by a server.is_standalone in ↵Stefan Metzmacher2010-03-242-4/+10
| | | | | | | | | | (gensec_)ntlmssp_state Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: remove more whitespaces...Stefan Metzmacher2010-03-241-32/+32
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: add NTLMSSP_FEATURE_* flags from s3Stefan Metzmacher2010-03-241-0/+6
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: keep struct gensec_ntlmssp_context in gensec_security->private_dataStefan Metzmacher2010-03-244-23/+62
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: remove gensec_security from (gensec_)ntlmssp_stateStefan Metzmacher2010-03-243-5/+5
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: remove backend specifix stuff from (gensec_)ntlmssp_stateStefan Metzmacher2010-03-242-22/+46
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: create a gensec_ntlmssp_context between gensec_security and ↵Stefan Metzmacher2010-03-242-9/+20
| | | | | | | | | | ntlmssp_state Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: add definition of gensec_ntlmssp_contextStefan Metzmacher2010-03-241-0/+7
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp: add a callback_private pointer to gensec_ntlmssp_stateStefan Metzmacher2010-03-241-1/+6
| | | | | | | | | | | We'll remove any gensec specific stuff from gensec_ntlmssp_state and rename it to ntlmssp_state again. Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s4:ntlmssp Ensure that we always negotiate signing if we negotiate sealing.Andrew Bartlett2010-03-241-0/+1
| | | | | | Without this, a sealed LDAP connection to windows does not work. Andrew Bartlett
* Fix typo in comments.Karolin Seeger2010-03-031-2/+2
|
* s4:ntlmssp: remove mem_ctx from check_password() callback to match s3Stefan Metzmacher2009-12-292-5/+2
| | | | metze
* s4:ntlmssp_server: always call ntlmssp_server_postauth() and decide there if ↵Stefan Metzmacher2009-12-291-5/+11
| | | | | | it's a noop metze
* s4:ntlmssp_server: don't use a mem_ctx for ntlmssp_server_auth()Stefan Metzmacher2009-12-291-13/+7
| | | | metze
* s4:ntlmssp_server: don't use mem_ctx in auth_ntlmssp_check_password()Stefan Metzmacher2009-12-291-16/+8
| | | | metze
* s4:ntlmssp_server: clear session key in ntlmssp_server_preauth()Stefan Metzmacher2009-12-291-3/+1
| | | | metze
* s4:ntlmssp: use data_blob_null in ntlmssp_server_auth()Stefan Metzmacher2009-12-291-4/+6
| | | | metze
* s4:ntlmssp_server: remove unused variableStefan Metzmacher2009-12-291-7/+0
| | | | metze
* s4:auth/ntlmssp: let get_challenge() return a NTSTATUS and fill a stack bufferStefan Metzmacher2009-12-292-13/+13
| | | | metze
* s4:ntlmssp: fix whitespaces in ntlmssp.hStefan Metzmacher2009-12-291-16/+16
| | | | metze
* s4:gensec Don't give a warning when Windows client connects with NTLMAndrew Bartlett2009-12-221-11/+20
| | | | | | | We have had the workaround for a long time, but at the time the log warnings remained. Andrew Bartlett