summaryrefslogtreecommitdiffstats
path: root/source3/smbd/sesssetup.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* s3:auth use info3 in auth_serversupplied_infoSimo Sorce2010-05-281-3/+3
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3:kerberos Return PAC_LOGON_INFO rather than the full PAC_DATAAndrew Bartlett2010-05-111-7/+3
| | | | | | | | | | | | | | | All the callers just want the PAC_LOGON_INFO, so search for that in ads_verify_ticket(), and don't bother the callers with the rest of the PAC. This change makes sense on it's own (removing boilerplate wrappers that just confuse the code), but it also makes it much easier to implement a matching ads_verify_ticket() function in Samba4 for the s3compat proposal. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3: only include gen_ndr headers where needed.Günther Deschner2010-05-061-0/+1
| | | | | | | | | | | | | | | | | This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther
* s3: Fix an uninitialized variable readVolker Lendecke2010-03-151-1/+1
| | | | | | | | Found by Laurent Gaffie <laurent.gaffie@gmail.com> Thanks for that, Volker
* s3: Add connections_forall_read()Volker Lendecke2010-03-011-3/+2
| | | | | | In a cluster, this makes a large difference: For r/w traverse, we have to do a fetch_locked on every record which for most users of connections_forall is just overkill.
* s3: Fix bug 7139Volker Lendecke2010-02-171-2/+32
| | | | | To provide the user with the same SID when doing Kerberos logins, attempt to do a make_server_info_sam instead of a make_server_info_pw.
* s3: Remove the typedef for "auth_serversupplied_info"Volker Lendecke2010-01-101-4/+4
|
* s3: Remove the typedef for "auth_usersupplied_info"Volker Lendecke2010-01-101-2/+2
|
* s3:ntlmssp: only include ntlmssp.h where actually neededAndrew Bartlett2009-12-221-0/+1
| | | | Andrew Bartlett
* Revert "s3: Move the global variable Protocol to struct smbd_server_connection"Volker Lendecke2009-11-231-2/+2
| | | | This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea.
* s3: Move the global variable Protocol to struct smbd_server_connectionVolker Lendecke2009-11-211-2/+2
|
* Remove "Protocol" as an extern, and add accessor functions.Jeremy Allison2009-11-041-4/+2
| | | | Jeremy.
* spnego: share spnego_parse.Günther Deschner2009-09-171-0/+1
| | | | Guenther
* Fix bug #6551 - win98 clients cannot connect after server upgrade to ↵Jeremy Allison2009-07-151-0/+1
| | | | | | | | samba-3.4.0. The values of vuid and tid were not being correctly updated in the struct smb_request when passed to chain_reply inside sessionsetupX and tconX. Jeremy.
* s3:smbd: move more session specific globals to struct smbd_server_connectionStefan Metzmacher2009-06-031-26/+31
| | | | metze
* s3:smbd: move some session specific globals to struct smbd_server_connectionStefan Metzmacher2009-06-031-4/+5
| | | | metze
* s3:smbd: move negprot related globals to struct smbd_server_connectionStefan Metzmacher2009-06-031-6/+9
| | | | metze
* s3:smbd: move pending_auth_data list to struct smbd_server_connectionStefan Metzmacher2009-06-031-14/+33
| | | | metze
* s3:kerberos Rework smb_krb5_unparse_name() to take a talloc contextAndrew Bartlett2009-04-071-8/+0
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3:smbd: use new simplified snb_signing code in the serverStefan Metzmacher2009-03-231-25/+0
| | | | | | | | | We keep the seqnum/mid mapping in the smb_request structure. This also moves one global variable into the smbd_server_connection struct. metze
* More warning fixes for Solaris.Jeremy Allison2009-02-231-2/+2
| | | | Jeremy.
* Remove the static "chal" from ntlmssp.c:get_challenge()Volker Lendecke2009-02-211-3/+4
|
* Add two new parameters to control how we verify kerberos tickets. Removes ↵Dan Sledz2009-02-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | lp_use_kerberos_keytab parameter. The first is "kerberos method" and replaces the "use kerberos keytab" with an enum. Valid options are: secrets only - use only the secrets for ticket verification (default) system keytab - use only the system keytab for ticket verification dedicated keytab - use a dedicated keytab for ticket verification. secrets and keytab - use the secrets.tdb first, then the system keytab For existing installs: "use kerberos keytab = yes" corresponds to secrets and keytab "use kerberos keytab = no" corresponds to secrets only The major difference between "system keytab" and "dedicated keytab" is that the latter method relies on kerberos to find the correct keytab entry instead of filtering based on expected principals. The second parameter is "dedicated keytab file", which is the keytab to use when in "dedicated keytab" mode. This keytab is only used in ads_verify_ticket.
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-13/+1
| | | | | | The goal is to move all this variables into a big context structure. metze
* Move a comment to its placeVolker Lendecke2008-12-301-5/+5
|
* s3 sesssetup.c: Add missing line break to debug message.root2008-12-121-1/+1
| | | | Karolin
* Remove two direct inbuf references from reply_sesssetup_and_X_spnego()Volker Lendecke2008-11-281-2/+2
|
* Remove a bunch of direct inbuf references by adding "vwv" to smb_requestVolker Lendecke2008-11-021-10/+10
|
* Remove some direct inbuf references by adding smbreq_bufremVolker Lendecke2008-11-021-3/+3
|
* Simplify params of srvstr_pull_buf_talloc()Volker Lendecke2008-11-021-20/+13
| | | | | Now that "req" is available everywhere, use it. Rename srvstr_pull_buf_talloc() to srvstr_pull_req()
* Kill some fstringsVolker Lendecke2008-11-011-31/+55
|