2 ** Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
3 ** distribution information.
7 #include "courier_auth_config.h"
21 #include "courierauthstaticlist.h"
25 extern int auth_shadow_pre(const char *userid
, const char *service
,
26 int (*callback
)(struct authinfo
*, void *),
29 extern void auth_pwd_enumerate( void(*cb_func
)(const char *name
,
39 int auth_shadow(const char *service
, const char *authtype
, char *authdata
,
40 int (*callback_func
)(struct authinfo
*, void *),
43 const char *user
, *pass
;
45 if (strcmp(authtype
, AUTHTYPE_LOGIN
) ||
46 (user
=strtok(authdata
, "\n")) == 0 ||
47 (pass
=strtok(0, "\n")) == 0)
53 return auth_sys_common(&auth_shadow_pre
, user
, pass
,
54 service
, callback_func
, callback_arg
);
58 static void auth_shadow_cleanup()
71 static struct authstaticinfo authshadow_info
={
82 struct authstaticinfo
*courier_authshadow_init()
84 return &authshadow_info
;