How about sticking the ident daemon response into an environment
variable like REMOTE_IDENT. You should base64 or otherwise
encode it in case it contains binary data which can be a headache
for shell CGI scripts and even C CGI programs can't handle nulls.
-- George