From a2af37c552477de78297322ef3bef099a0ac0717 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 31 Jul 2013 13:28:58 +0300 Subject: schema-compat: introduce a lock to protect PAM authentication PAM stack requires exclusive access, therefore we need to use a write lock. Required for authenticating synthetically created records coming outside of LDAP store. --- src/plugin.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugin.h') diff --git a/src/plugin.h b/src/plugin.h index b54e2ad..3967fb0 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -44,6 +44,8 @@ struct plugin_state { struct { int fd, port, pf, type; } listener[4]; + /* Schema compat-specific data. */ + struct wrapped_rwlock *pam_lock; }; #endif -- cgit