d9898ee8 |
1 | /* |
2 | ** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for |
3 | ** distribution information. |
4 | */ |
5 | |
6 | #if HAVE_CONFIG_H |
7 | #include "courier_auth_config.h" |
8 | #endif |
9 | #include <stdio.h> |
10 | #include <stdlib.h> |
11 | #include <string.h> |
12 | #include <errno.h> |
13 | #include <pwd.h> |
14 | #if HAVE_UNISTD_H |
15 | #include <unistd.h> |
16 | #endif |
17 | |
18 | #include "auth.h" |
19 | #include "authldap.h" |
20 | |
21 | static const char rcsid[]="$Id: preauthldap.c,v 1.5 2004/10/21 00:10:49 mrsam Exp $"; |
22 | |
23 | int auth_ldap_pre(const char *userid, const char *service, |
24 | int (*callback)(struct authinfo *, void *), |
25 | void *arg) |
26 | { |
27 | return (authldapcommon(service, userid, 0, callback, arg)); |
28 | } |