summaryrefslogtreecommitdiff
path: root/nsswitch/pam_winbind.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-03-24 09:38:56 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-03-25 17:45:24 +0100
commit94464ed82c93094a972984ac1828f0bcc256f13c (patch)
treeed8af137c03ad4038322a730781c32ceca7436df /nsswitch/pam_winbind.h
parent4c139e23e918c7a378953a3f9fc6ec7c927cf6f5 (diff)
downloadsamba-94464ed82c93094a972984ac1828f0bcc256f13c.tar.gz
pam_winbind: Create and use a wbclient context
PAM sessions are long running. If we create a pam session a connection to winbind is established and only closed by the destructor of the libwbclient library. If we create a wbcContext, we will free it in the end of the PAM function being called and the socket will be closed. This decreases the amount of allocated 'winbindd_cli_state' structures in winbind for every logged in user. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Mar 25 17:45:24 CET 2016 on sn-devel-144
Diffstat (limited to 'nsswitch/pam_winbind.h')
-rw-r--r--nsswitch/pam_winbind.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nsswitch/pam_winbind.h b/nsswitch/pam_winbind.h
index 13542b2968f..6b65c462eaa 100644
--- a/nsswitch/pam_winbind.h
+++ b/nsswitch/pam_winbind.h
@@ -213,6 +213,7 @@ struct pwb_context {
const char **argv;
struct tiniparser_dictionary *dict;
uint32_t ctrl;
+ struct wbcContext *wbc_ctx;
};
#ifndef TALLOC_FREE