summaryrefslogtreecommitdiffstats
path: root/source3/smbd/password.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-auth Rename auth_serversupplied_info varaiables: server_info -> session_infoAndrew Bartlett2011-02-221-26/+26
| | | | | | | | | | | | | | | | | | | | | 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-1/+1
| | | | | | | | | 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-3/+3
| | | | | | called-parameter-is-modified. Jeremy.
* Make getpwnam_alloc() static to lib/username.c, and ensure all username ↵Jeremy Allison2010-10-201-1/+1
| | | | | | | | | | | | lookups go through Get_Pwnam_alloc(), which is the correct wrapper function. We were using it *some* of the time anyway, so this just makes us properly consistent. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 20 16:02:12 UTC 2010 on sn-devel-104
* s3: Remove smbd_server_fd() from session_claimVolker Lendecke2010-08-171-1/+1
|
* s3-netlogon: remove global include of netlogon.h.Günther Deschner2010-08-061-0/+1
| | | | | | | This reduces precompiled headers by another 4 MB and also slightly speeds up the build. Guenther
* s3-auth: Use talloc hierarchies to properly free auth_ntlmssp_state contextsSimo Sorce2010-07-191-1/+1
| | | | | | | 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: Remove procid_self() from session_claim()Volker Lendecke2010-07-051-1/+1
|
* s3-waf: Work around missing *netgrent prototypes on OSX 10.4Kai Blin2010-06-171-0/+11
|
* s3: Remove smbd_server_conn from register_existing_vuidVolker Lendecke2010-06-121-2/+2
|
* Rename "allow_smb2" -> "using_smb2" and make the usage clearer.Jeremy Allison2010-06-091-1/+1
|
* s3-auth: Moved smbd user functions to a generic place.Andreas Schneider2010-06-041-133/+0
| | | | Reviewed-by: Simo Sorce <idra@samba.org>
* s3:smbd user_ok doesn't need sconn anymoreSimo Sorce2010-05-311-7/+6
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:smbd user_in_list() doesn't need sconn anymoreSimo Sorce2010-05-311-5/+4
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:smbd user_in_network() doesn't need sconn anymoreSimo Sorce2010-05-311-6/+5
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:smbd make yp cache local.Simo Sorce2010-05-311-14/+8
| | | | | | | | | | | | | | | | | The my_yp_domain variable is just a static cache needed to avoid making over and over expensive and potentially blocking calls to yp_get_default_domain(). Instead of keeping this onto the smbd_server_connection struct, just keep it local to the only function ever using this variable. This disentagle this function (and a number of calling functions) from having to pass around smbd_server_connection and thus having to link against smbd. It also removes a few ifdefs. Nothing changes from a global/local pov, as the smbd_server_connection variable passed around is also a global one. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:auth use info3 in auth_serversupplied_infoSimo Sorce2010-05-281-3/+3
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* Plumb in krb5 to the SMB2 sessionsetup code. First cut of this code.Jeremy Allison2010-05-171-1/+1
| | | | Jeremy.
* s3: Remove the typedef for "auth_serversupplied_info"Volker Lendecke2010-01-101-1/+1
|
* s3:smbd/password - move list pointers into blocksMatthias Dieter Wallnöfer2009-09-251-6/+6
|
* s3:smbd: correctly invalidate vuids when SMB2 is usedStefan Metzmacher2009-08-121-0/+4
| | | | metze
* s3: make d9c0d58236 better readble and reduce indentationBjörn Jacke2009-07-141-13/+13
|
* s3: don't make same innetgr check twiceBjörn Jacke2009-07-141-8/+11
|
* s3:smbd: move tcon specific globals to struct smbd_server_connectionStefan Metzmacher2009-06-031-1/+1
| | | | metze
* s3:smbd: move more session specific globals to struct smbd_server_connectionStefan Metzmacher2009-06-031-79/+112
| | | | metze
* s3:smbd: move negprot related globals to struct smbd_server_connectionStefan Metzmacher2009-06-031-4/+14
| | | | metze
* s3:smbd: use new simplified snb_signing code in the serverStefan Metzmacher2009-03-231-3/+5
| | | | | | | | | We keep the seqnum/mid mapping in the smb_request structure. This also moves one global variable into the smbd_server_connection struct. metze
* "userdom_struct" does not need "full_name" anymore -- unusedVolker Lendecke2009-01-201-1/+0
|
* s3:smbd: move all globals and static variables in globals.[ch]Stefan Metzmacher2009-01-081-18/+8
| | | | | | The goal is to move all this variables into a big context structure. metze
* Second part of the bugfix for #5933Volker Lendecke2008-12-301-7/+13
| | | | | | | | Incrementing the next vuid did not correctly overflow Now we survive BENCH-SESSSETUP with -o 100000. Takes a while though :-) Thanks a lot to Ofer Tal <otsmb@shmoop.org> for reporting #5933
* First part of bugfix for #5933Volker Lendecke2008-12-301-3/+0
| | | | | | | | | | Ofer Tal <otsmb@shmoop.org> fully correctly noted that we're incrementing num_validated_vuids twice per session setup, but decrement it only once. Looking at sesssetup.c we always call register_initial_vuid() before register_existing_vuid(), so there's no point in incrementing it in register_existing_vuid(). Jeremy, please check!
* Simplify invalidate_vuid slightlyVolker Lendecke2008-12-301-4/+0
| | | | get_valid_user_struct_internal() checks for UID_FIELD_INVALID itself
* Simplify is_partial_auth_vuid slightlyVolker Lendecke2008-12-301-5/+1
|
* Simplify invalidate_all_vuids() slightlyVolker Lendecke2008-12-301-5/+2
| | | | invalidate_vuid takes care of removing the user_struct from validated_users
* Add wrapper str_list_make_v3() to replace the old S3 behavior ofJeremy Allison2008-11-061-1/+1
| | | | | | | | str_list_make(). From Dan Sledz <dan.sledz@isilon.com>: In samba 3.2 passing NULL or an empty string returned NULL. In master, it now returns a list of length 1 with the first string set to NULL (an empty list). Jeremy.
* Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij2008-10-121-2/+2
|
* Wrap the unix token info in a unix_user_token in auth_serversupplied_infoVolker Lendecke2008-06-191-3/+3
| | | | | No functional change, this is a preparation for more current_user ref removal (This used to be commit dcaedf345e62ab74ea87f0a3fa1e3199c75c5445)
* Move connection-specific vuid cache clear to uid.cVolker Lendecke2008-06-141-1/+1
| | | | (This used to be commit 1025f687910ce40283c7344ed67ebd5bf31217b7)
* Fix a memleak introduced after refactoring "struct user_struct"Volker Lendecke2008-05-061-1/+1
| | | | (This used to be commit e70b5b762234f1733f150bdfbda7b208a8139990)
* Remove "userdom_struct user" from "struct user_struct"Volker Lendecke2008-05-051-24/+25
| | | | (This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)
* Remove "session_key" from "struct user_struct"Volker Lendecke2008-05-051-6/+1
| | | | | This one took a bit -- I hope I covered all data paths (This used to be commit 74c88a44422f88d6e2f2cdbfdfa0bafe0dbe06c4)
* Remove "guest" from "struct user_struct"Volker Lendecke2008-05-051-4/+3
| | | | (This used to be commit 570a6b80feb5b0dc23213ba936c721e766cd4818)
* Remove the unix token info from "struct user_struct"Volker Lendecke2008-05-051-22/+4
| | | | (This used to be commit aa2299d42adf4d27e707ac755e07be70d0af1bb4)
* Remove "nt_user_token" from "struct user_struct"Volker Lendecke2008-05-051-3/+1
| | | | (This used to be commit 51d5d512f28eadc74eced43e5e7f4e5bdff3ff69)
* Remove "logon_script" from "struct user_struct"Volker Lendecke2008-05-051-8/+0
| | | | (This used to be commit b36fd84186a656f86e4cfb9166fc0ecbffb422cb)
* Remove unix_homedir from struct user_structVolker Lendecke2008-05-051-37/+35
| | | | | This makes pdb_get_unix_homedir unused. I wonder if that was ever really used... (This used to be commit 36bfd32f1ff878e827db91e9bf233719ecca5b01)
* Remove "homedir" from "struct user_struct"Volker Lendecke2008-05-051-6/+0
| | | | (This used to be commit 41f9afd62d8cc6067582d452f3d53a5c67253b69)
* Ensure invalidate_vuid() deletes any ntlmssp state.Jeremy Allison2008-02-141-0/+4
| | | | | Jeremy. (This used to be commit b41799c351c72b268ef094047a51766747671280)
* str_list_free is not needed anymoreVolker Lendecke2008-02-041-4/+2
| | | | (This used to be commit feddc1447d585fd108d22a36bccc576fa81197ef)
* Always pass a TALLOC_CTX to str_list_make and str_list_copyVolker Lendecke2008-02-041-4/+5
| | | | (This used to be commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e)