2 ** Copyright 2000-2004 Double Precision, Inc. See COPYING for
3 ** distribution information.
7 #include "authstaticlist.h"
8 #include "courierauthsasl.h"
13 static const char rcsid
[]="$Id: preauthdaemon.c,v 1.2 2004/10/21 00:10:49 mrsam Exp $";
15 extern int authdaemondo(const char *authreq
,
16 int (*func
)(struct authinfo
*, void *), void *arg
);
18 int auth_getuserinfo(const char *service
, const char *uid
,
19 int (*callback
)(struct authinfo
*, void *),
22 char *buf
=malloc(strlen(service
)+strlen(uid
)+20);
30 strcat(strcat(strcat(strcat(strcpy(buf
, "PRE . "), service
), " "),
33 rc
=authdaemondo(buf
, callback
, arg
);