2 ** Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
3 ** distribution information.
7 #include "courier_auth_config.h"
21 #include "authstaticlist.h"
23 static const char rcsid
[]="$Id: authshadow.c,v 1.15 2004/11/14 02:58:16 mrsam Exp $";
26 extern int auth_shadow_pre(const char *userid
, const char *service
,
27 int (*callback
)(struct authinfo
*, void *),
30 extern void auth_pwd_enumerate( void(*cb_func
)(const char *name
,
40 int auth_shadow(const char *service
, const char *authtype
, char *authdata
,
41 int (*callback_func
)(struct authinfo
*, void *),
44 const char *user
, *pass
;
46 if (strcmp(authtype
, AUTHTYPE_LOGIN
) ||
47 (user
=strtok(authdata
, "\n")) == 0 ||
48 (pass
=strtok(0, "\n")) == 0)
54 return auth_sys_common(&auth_shadow_pre
, user
, pass
,
55 service
, callback_func
, callback_arg
);
59 static void auth_shadow_cleanup()
72 static struct authstaticinfo authshadow_info
={
83 struct authstaticinfo
*courier_authshadow_init()
85 return &authshadow_info
;