Synopsis: Authorized user is not passed to CGI scripts State-Changed-From-To: open-feedback State-Changed-By: coar State-Changed-When: Mon Sep 29 05:12:01 PDT 1997 State-Changed-Why: I believe your problem is due to a misunderstanding. The CGI script is treated as a completely separate request, and since it's coming from /cgi-bin/ it isn't in the same authorisation realm as the rest of the information, and so isn't being passed any authorisation data because /cgi-bin/ doesn't require any.
Try putting your CGI script into a directory under your /Admin/ location so it will require the same authorisation information, and I think you'll see the remote username become available. Remember to rename it to "nph-count.cgi" and refer to it by that name, and ensure that your config files include a "AddHandler cgi-script .cgi" line. Or you can add another ScriptAlias directory under the /Admin/ location, put the script there, and not have to rename it. Please let me know how this affects your problem.
