use strict; no warnings qw(redefine); sub WebExternalAutoInfo { my $user = shift; my %user_info; $user_info{'Privileged'} = 0; # FIXME # we really should, here, pull ALL the user info # (or at least RealName) out of the LDAP directory if ($^O !~ /^(?:riscos|MacOS|MSWin32|dos|os2)$/) { # Populate fields with information from Unix /etc/passwd my ($comments, $realname) = (getpwnam($user))[5, 6]; $user_info{'Comments'} = $comments if defined $comments; $user_info{'RealName'} = $realname if defined $realname; } elsif ($^O eq 'MSWin32' and eval 'use Net::AdminMisc; 1') { # Populate fields with information from NT domain controller } # and return the wad of stuff return {%user_info}; } 1;