1/* COPYRIGHT
2 * Copyright (c) 1997-2000 Messaging Direct Ltd.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 *    notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 *    notice, this list of conditions and the following disclaimer in the
12 *    documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY MESSAGING DIRECT LTD. ``AS IS'' AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL MESSAGING DIRECT LTD. OR
18 * ITS EMPLOYEES OR AGENTS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
20 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
21 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
23 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
24 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25 * DAMAGE.
26 * END COPYRIGHT */
27
28/* SYNOPSIS
29 * mechanisms[] contains the NULL terminated list of supported
30 * authentication drivers.
31 * END SYNOPSIS */
32
33#ifdef __GNUC__
34#ident "$Id: mechanisms.c,v 1.9 2006/01/24 00:16:04 snsimon Exp $"
35#endif
36
37/* PUBLIC DEPENDENCIES */
38#include "mechanisms.h"
39
40#ifdef AUTH_DCE
41# include "auth_dce.h"
42#endif /* AUTH_DCE */
43#ifdef AUTH_SHADOW
44# include "auth_shadow.h"
45#endif /* AUTH_SHADOW */
46#ifdef AUTH_SIA
47# include "auth_sia.h"
48#endif /* AUTH_SIA */
49#include "auth_krb4.h"
50#include "auth_krb5.h"
51#include "auth_getpwent.h"
52#include "auth_sasldb.h"
53#include "auth_rimap.h"
54#ifdef AUTH_PAM
55# include "auth_pam.h"
56#endif
57#ifdef AUTH_LDAP
58#include "auth_ldap.h"
59#endif
60/* END PUBLIC DEPENDENCIES */
61
62authmech_t mechanisms[] =
63{
64#ifdef AUTH_SASLDB
65    {	"sasldb",	0,			auth_sasldb },
66#endif /* AUTH_SASLDB */
67#ifdef AUTH_DCE
68    {	"dce",		0,			auth_dce },
69#endif /* AUTH_DCE */
70    {	"getpwent",	0,			auth_getpwent },
71#ifdef AUTH_KRB4
72    {	"kerberos4",	auth_krb4_init,		auth_krb4 },
73#endif /* AUTH_KRB4 */
74#ifdef AUTH_KRB5
75    {	"kerberos5",	auth_krb5_init,		auth_krb5 },
76#endif /* AUTH_KRB5 */
77#ifdef AUTH_PAM
78    {	"pam",		0,			auth_pam },
79#endif /* AUTH_PAM */
80    {	"rimap",	auth_rimap_init,	auth_rimap },
81#ifdef AUTH_SHADOW
82    {	"shadow",	0,			auth_shadow },
83#endif /* AUTH_SHADOW */
84#ifdef AUTH_SIA
85    {   "sia",		0,			auth_sia },
86#endif /* AUTH_SIA */
87#ifdef AUTH_LDAP
88    {   "ldap",		auth_ldap_init,		auth_ldap },
89#endif /* AUTH_LDAP */
90    {	0,		0,			0 }
91};
92
93