Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nss/common.c
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2010-06-14 23:17:05 +0200
committerArthur de Jong <arthur@arthurdejong.org>2010-06-14 23:17:05 +0200
commit9b65ad7e014d3198ab0995572fc2f7adf9b35a0f (patch)
tree503583403c003b9dc52e9a830e0f9d6cc5a95ba9 /nss/common.c
parent2c40043c434b883a0bfce7d777a028ae0da6d25f (diff)
implement a global symbol inside the NSS module to allow applications to disable NSS lookups over LDAP and use it in nslcd to avoid deadlocks
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1141 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nss/common.c')
-rw-r--r--nss/common.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/nss/common.c b/nss/common.c
new file mode 100644
index 0000000..20a3136
--- /dev/null
+++ b/nss/common.c
@@ -0,0 +1,22 @@
+/*
+ common.c - common definitions
+
+ Copyright (C) 2010 Arthur de Jong
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301 USA
+*/
+
+int _nss_ldap_enablelookups=1;