1 | /* $Id: external_lookup.h,v 1.00 2009/12/22 12:25:59 sbajic Exp $ */ |
---|
2 | |
---|
3 | /* |
---|
4 | COPYRIGHT (C) 2006 HUGO MONTEIRO |
---|
5 | |
---|
6 | external lookup library for DSPAM v0.1 |
---|
7 | |
---|
8 | This program is free software; you can redistribute it and/or |
---|
9 | modify it under the terms of the GNU General Public License |
---|
10 | as published by the Free Software Foundation; version 2 |
---|
11 | of the License. |
---|
12 | |
---|
13 | This program is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | GNU General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU General Public License |
---|
19 | along with this program; if not, write to the Free Software |
---|
20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
21 | |
---|
22 | */ |
---|
23 | |
---|
24 | #ifdef EXT_LOOKUP |
---|
25 | |
---|
26 | #ifndef _EXT_LOOKUP_H |
---|
27 | #define _EXT_LOOKUP_H |
---|
28 | |
---|
29 | #include "agent_shared.h" |
---|
30 | #include "libdspam.h" |
---|
31 | |
---|
32 | int verified_user; |
---|
33 | |
---|
34 | void sig_alrm(int signum); |
---|
35 | char *transcode_query(const char *query, const char *username, char *transcoded_query); |
---|
36 | char *external_lookup(config_t agent_config, const char *username, char *external_uid); |
---|
37 | char *ldap_lookup(config_t agent_config, const char *username, char *external_uid); |
---|
38 | char *program_lookup(config_t agent_config, const char *username, char *external_uid); |
---|
39 | |
---|
40 | #endif /* _EXTERNAL_LOOKUP_H */ |
---|
41 | |
---|
42 | #endif /* USE_EXTLOOKUP */ |
---|