summaryrefslogtreecommitdiffstats
path: root/src/plugin.h
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2013-07-31 13:28:58 +0300
committerNalin Dahyabhai <nalin@dahyabhai.net>2013-08-07 11:33:11 -0400
commita2af37c552477de78297322ef3bef099a0ac0717 (patch)
tree3729e8b18eb63c23f0cf66d782fa9ccefaac8e08 /src/plugin.h
parentd80b74380919d955a29069e74b65d3a36dec0e0b (diff)
downloadslapi-nis-a2af37c552477de78297322ef3bef099a0ac0717.tar.gz
slapi-nis-a2af37c552477de78297322ef3bef099a0ac0717.tar.xz
slapi-nis-a2af37c552477de78297322ef3bef099a0ac0717.zip
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.
Diffstat (limited to 'src/plugin.h')
-rw-r--r--src/plugin.h2
1 files changed, 2 insertions, 0 deletions
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