http://qs321.pair.com?node_id=136270

Q&A > CGI programming > Can I use NT authentification for a script running on a Linux server? - Answer contributed by Schuk

I also found a nice little solution. In fact it only gives you the nt login name of the client box. You need the IpInfo module which I found in the sources of NBTscan. http://www.inetcat.org/software/nbtscan.html
use IpInfo; ... my $info = new IpInfo($cur_ipaddr); print $info->nbUserName();
The module reads out the netbios.
Schuk