2 ** Copyright 1998 - 2007 Double Precision, Inc.
3 ** See COPYING for distribution information.
17 extern int userdb_debug_level
;
19 char *userdbshadow(const char *sh
, const char *u
)
27 if (dbobj_open(&d
, sh
, "R"))
29 if (userdb_debug_level
)
31 "DEBUG: userdbshadow: unable to open %s\n", sh
);
35 q
=dbobj_fetch(&d
, u
, strlen(u
), &l
, "");
39 if (userdb_debug_level
)
41 "DEBUG: userdbshadow: entry not found\n");
53 if (l
) memcpy(p
, q
, l
);