| 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 | |
| 22 | int auth_ldap_pre(const char *userid, const char *service, |
| 23 | int (*callback)(struct authinfo *, void *), |
| 24 | void *arg) |
| 25 | { |
| 26 | return (authldapcommon(service, userid, 0, callback, arg)); |
| 27 | } |