summaryrefslogtreecommitdiffstats
path: root/source3/smbd/sesssetup.c
Commit message (Collapse)AuthorAgeFilesLines
* Detect Mac OS X as a separate client type.Justin Maggard2011-02-251-0/+4
|
* s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett2011-02-221-7/+7
| | | | | | | | | | | | | | | | | | | | | These variables, of type struct auth_serversupplied_info were poorly named when added into 2001, and in good consistant practice, this has extended all over the codebase in the years since. The structure is also not ideal for it's current purpose. Originally intended to convey the results of the authentication modules, it really describes all the essential attributes of a session. This rename will reduce the volume of a future patch to replaced these with a struct auth_session_info, with auth_serversupplied_info confined to the lower levels of the auth subsystem, and then eliminated. (The new structure will be the output of create_local_token(), and the change in struct definition will ensure that this is always run, populating local groups and privileges). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth Rename cryptic 'ptok' to security_tokenAndrew Bartlett2011-02-101-2/+2
| | | | | | | | | This will allow the auth_serversupplied_info struct to be migrated to auth_session_info easier. Adnrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Remove fstring from map_username. Create a more sane interface than the ↵Jeremy Allison2010-11-101-1/+8
| | | | | | called-parameter-is-modified. Jeremy.
* s3: Avoid an explicit ZERO_STRUCTVolker Lendecke2010-09-261-3/+1
|
* s3: Lift talloc_autofree_context() from make_auth_context_fixed()Volker Lendecke2010-09-261-2/+2
|
* s3: Lift talloc_autofree_context() from make_auth_context_subsystem()Volker Lendecke2010-09-261-1/+1
|
* Fix bug 7694 - Crash bug with invalid SPNEGO token.Jeremy Allison2010-09-231-1/+2
| | | | | | | | | | | Found by the CodeNomicon test suites at the SNIA plugfest. http://www.codenomicon.com/ If an invalid SPNEGO packet contains no OIDs we crash in the SMB1/SMB2 server as we indirect the first returned value OIDs[0], which is returned as NULL. Jeremy.
* libcli/auth/ntlmssp Be clear about talloc parents for session keysAndrew Bartlett2010-09-161-0/+1
| | | | | | | | | | The previous API was not clear as to who owned the returned session key. This fixes a valgrind-found use-after-free in the NTLMSSP key derivation code, and avoids making allocations - we steal and zero instead. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-smbd: use make_server_info_krb5()Simo Sorce2010-08-301-79/+11
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-smbd: Use helper function to resolve kerberos userSimo Sorce2010-08-301-123/+27
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Pass the rhost through smb_pam_accountcheckVolker Lendecke2010-08-221-1/+1
|
* s3: Lift smbd_server_fd from reload_services()Volker Lendecke2010-08-181-5/+5
|
* s3: Remove smbd_server_fd() from setup_new_vc_sessionVolker Lendecke2010-08-161-6/+12
|
* s3: Remove get_client_fd()Volker Lendecke2010-08-161-1/+1
|
* s3: Increase debug level for shutdown_other_smbdsVolker Lendecke2010-08-151-3/+3
|
* s3: Add debugs to shutdown_other_smbdsVolker Lendecke2010-08-151-0/+6
|
* s3: Lift the smbd_messaging_context from reload_servicesVolker Lendecke2010-08-081-5/+5
|
* s3-krb5: include krb5pac.h where needed.Günther Deschner2010-08-061-0/+1
| | | | Guenther
* s3: avoid global include of ads.h.Günther Deschner2010-08-051-0/+1
| | | | Guenther
* Add approriate TALLOC_CTX's thoughout the spnego code. No more implicit NULL ↵Jeremy Allison2010-07-201-6/+7
| | | | | | contexts. Jeremy.
* Add TALLOC_CTX argument to spnego_parse_negTokenInit, reduceJeremy Allison2010-07-201-9/+12
| | | | | | use of malloc, and data_blob(). Jeremy.
* s3-auth: Move auth_ntlmssp wrappers in their own fileSimo Sorce2010-07-201-0/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Refactor and rename auth_ntlmssp_server_info()Simo Sorce2010-07-201-1/+2
| | | | | | | | | Rename it to auth_ntlmssp_steal_server_info() to make it clear that the server_info struct is stolen from the auth_ntlmssp_state structure. Use talloc_move instead of manual steal&clear Add comments to explain what is going on. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Remove parse_negTokenTarg(), as it's actually incorrect. We're processingJeremy Allison2010-07-191-1/+1
| | | | | | negTokenInit's here. Use common code in spnego_parse_negTokenInit(). Jeremy.
* s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contextsSimo Sorce2010-07-191-2/+2
| | | | | | | Turn auth_ntlmssp_end into a destructor and attach it to auth_ntlmssp_state. Remote auth_ntlmssp_end and use TALLOC_FREE in the callers. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Simplify how we free the auth_contextSimo Sorce2010-07-191-4/+3
| | | | | | | | | Turn the freeing function into a destructor and attach it to the auth_context. Make all callers TALLOC_FREE() the auth_context instead of calling the free function. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Make the "map to guest" parameter work correctly with NTLMSSP (spnegoJeremy Allison2010-07-161-3/+6
| | | | | | | and raw) under SMB2. Still need to investigate fixing this with krb5 auth (does this make sense ?). Jeremy.
* s3:auth Change auth_ntlmssp_server_info API to return NTSTATUSAndrew Bartlett2010-07-141-1/+1
| | | | | | | | | This fixes a bug where register_existing_vuid() could be called with a NULL server_info if the alloction failed. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:smbd Give the kerberos session key a parentAndrew Bartlett2010-07-141-0/+2
| | | | | | | | | Nothing will free this, so this prevents a memory leak. Andrew Bartlett Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:smbd Fix segfault if register_existing_vuid() failsAndrew Bartlett2010-07-141-4/+12
| | | | | | | | | | The register_existing_vuid() call will handle both the ntlmssp_end and vuid invalidation internally, so we don't want to do it again. Andrew Bartlett Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3: Remove smbd_messaging_context() from shutdown_other_smbds()Volker Lendecke2010-07-051-12/+19
|
* s3: Remove smbd_server_conn from reply_sesssetup_and_XVolker Lendecke2010-06-121-1/+1
|
* s3: Fix a typoVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from reply_sesssetup_and_X_spnegoVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from reply_spnego_authVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from reply_spnego_negotiateVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from reply_spnego_ntlmsspVolker Lendecke2010-06-121-1/+1
|
* s3: Remove smbd_server_conn from reply_spnego_kerberosVolker Lendecke2010-06-121-1/+1
|
* Revert "s3:smbd Fix segfault if register_existing_vuid() fails"Volker Lendecke2010-06-081-12/+4
| | | | This reverts commit 8f1cec5faf4e26de8b9797777059e99f2a66558b.
* Revert "s3:smbd Give the kerberos session key a parent"Volker Lendecke2010-06-081-2/+0
| | | | This reverts commit 4a7f45b7e1cef13bc28d7ee50dd4b5519bdec397.
* Revert "s3:auth Change auth_ntlmssp_server_info API to return NTSTATUS"Volker Lendecke2010-06-081-1/+1
| | | | | | | | This reverts commit edba46ce94c335411ab337eeb4ef6f88fb3aae80. Conflicts: source3/auth/auth_ntlmssp.c
* s3:auth Change auth_ntlmssp_server_info API to return NTSTATUSAndrew Bartlett2010-06-071-1/+1
| | | | | | | It's nicer to have an NTSTATUS return, and in s3compat there may be a reason other than 'no memory' why this can fail. Andrew Bartlett
* s3:smbd Give the kerberos session key a parentAndrew Bartlett2010-06-071-0/+2
| | | | | | I can't see what would free this, so this should prevent a memory leak. Andrew Bartlett
* s3:smbd Fix segfault if register_existing_vuid() failsAndrew Bartlett2010-06-071-4/+12
| | | | | | | The register_existing_vuid() call will handle both the ntlmssp_end and vuid invalidation internally, so we don't want to do it again. Andrew Bartlett
* s3:smbd map_username() doesn't need sconn anymoreSimo Sorce2010-05-311-2/+2
| | | | Signed-off-by: Andreas Schneider <asn@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>
* s3:auth Remove AUTH_NTLMSSP_STATE typedef.Andrew Bartlett2010-05-311-3/+3
| | | | | | | | | typedefs are no longer preferred Samba style. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* s3:auth Make AUTH_NTLMSSP_STATE a private structure.Andrew Bartlett2010-05-311-16/+11
| | | | | | | | | This makes it a little easier for it to writen in terms of GENSEC in future. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org>
* s3:auth Free sampass as soon as we have server_infoSimo Sorce2010-05-281-0/+1
| | | | | | | We don't keep sampass in server_info anymore So it makes no sense to keep it around. Signed-off-by: Günther Deschner <gd@samba.org>