auth_ldap.h

Go to the documentation of this file.
00001 /*
00002 ** Copyright(C) 2003-2007 INL
00003 **              Written by Eric Leblond <regit@inl.fr>
00004 **
00005 ** This program is free software; you can redistribute it and/or modify
00006 ** it under the terms of the GNU General Public License as published by
00007 ** the Free Software Foundation; version 3 of the License.
00008 **
00009 ** This program is distributed in the hope that it will be useful,
00010 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 ** GNU General Public License for more details.
00013 **
00014 ** You should have received a copy of the GNU General Public License
00015 ** along with this program; if not, write to the Free Software
00016 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017 */
00018 
00019 #include <sys/time.h>
00020 #include <ldap.h>
00021 
00022 
00023 GPrivate *ldap_priv;            /* private pointer to ldap connection */
00024 
00025 #define LDAP_SERVER "127.0.0.1"
00026 #define LDAP_SERVER_PORT 389
00027 /*#define LDAP_USER NULL
00028 #define LDAP_CRED NULL */
00029 #define LDAP_USER "cn=admin,dc=nufw,dc=org"
00030 #define LDAP_CRED "mypassword"
00031 #define LDAP_REQUEST_TIMEOUT 10
00032 #define LDAP_BASE "dc=nufw,dc=org"
00033 
00034 /* Maximum size of a LDAP query */
00035 #define LDAP_QUERY_SIZE 512
00036 
00037 struct ldap_params {
00038         int ldap_request_timeout;
00039         char *binddn;
00040         char *bindpasswd;
00041         char *ldap_server;
00042         char *ldap_acls_base_dn;
00043         char *ldap_acls_timerange_base_dn;
00044         char *ldap_users_base_dn;
00045         int ldap_server_port;
00046         int ldap_filter_type;
00047         int ldap_use_ipv4_schema;
00048         GPrivate *ldap_priv;
00049 };

Generated on Wed Jan 7 04:00:40 2009 for NuFW by  doxygen 1.4.7