Lines Matching refs:username
33 # Then they login with their unix username and password to get their
165 # setting below. The user provides 'username@host:port' instead of just
166 # 'username' when she logs in. This script doesn't start VNC servers
277 # This is to enable port redirection mode: username@host:port. If
278 # username is valid, there will be a port redirection to internal machine
393 <tr><td>Username:</td><td>
394 <input type="text" name="username" maxlength="40" value="_USERNAME_">
535 $login_str =~ s/_USERNAME_/$request{username}/g;
587 # If no username or password, show login form:
589 if (!$request{username} && !$request{password}) {
591 } elsif (!$request{username}) {
592 bye("No Username.<p>$login_str");
600 my $username = $request{username};
606 # If port redirection is enabled, split username@host:port
613 ($username, $redirect_host) = split(/@/, $username, 2);
620 # If there is an $allowed_users_file, check username against it:
632 if ($username eq $_) {
638 bye("Denied Username.<p>$login_str");
642 # If there is a $denied_users_file, check username against it:
654 if ($username eq $_) {
660 bye("Denied Username.<p>$login_str");
664 # Require username to be alphanumeric + '-' + '_':
667 if ($username !~ /^\w[-\w]*$/) {
668 bye("Invalid Username.<p>$login_str");
673 # also checks if the username exists:
675 my $uid = `/usr/bin/id -u '$username'`;
678 bye("Invalid Username.<p>$login_str");
688 print X11VNC "$username:$password\n";
691 # x11vnc returns non-zero for invalid username+password:
733 # username@host:port, we do that right now and then exit.
892 print X11VNC "$username:$password\n";
1125 print X11VNC "$username:$password\n";
1217 print STDERR "$$ failed to get fixed port $vnc_port for $username at $t ($reason)\n";
1225 print STDERR "$$ got fixed port $vnc_port for $username at $t\n";
1362 # This checks the validity of a username@host:port for the port
1408 if ("$username\@$redirect_host" eq $item) {