1 /* $Cambridge: exim/src/src/lookups/passwd.c,v 1.5 2009/11/16 19:50:38 nm4 Exp $ */
3 /*************************************************
4 * Exim - an Internet mail transport agent *
5 *************************************************/
7 /* Copyright (c) University of Cambridge 1995 - 2009 */
8 /* See the file NOTICE for conditions of use and distribution. */
15 /*************************************************
17 *************************************************/
19 /* See local README for interface description */
22 passwd_open(uschar *filename, uschar **errmsg)
24 filename = filename; /* Keep picky compilers happy */
26 return (void *)(-1); /* Just return something non-null */
32 /*************************************************
33 * Find entry point for passwd *
34 *************************************************/
36 /* See local README for interface description */
39 passwd_find(void *handle, uschar *filename, uschar *keystring, int length,
40 uschar **result, uschar **errmsg, BOOL *do_cache)
44 handle = handle; /* Keep picky compilers happy */
50 if (!route_finduser(keystring, &pw, NULL)) return FAIL;
51 *result = string_sprintf("*:%d:%d:%s:%s:%s", (int)pw->pw_uid, (int)pw->pw_gid,
52 pw->pw_gecos, pw->pw_dir, pw->pw_shell);
56 /* End of lookups/passwd.c */