Changeset 73
- Timestamp:
- 11/25/08 17:55:31 (3 years ago)
- File:
-
- 1 edited
-
devel/sshgw/bin/createsshuser (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
devel/sshgw/bin/createsshuser
r72 r73 51 51 shift(@params) ; 52 52 $expire = shift(@params) ; 53 } 54 if ($params[0] eq "-m") { 53 } elsif ($params[0] eq "-m") { 55 54 shift(@params) ; 56 55 $email = shift(@params) ; 57 } 58 if ($params[0] eq "-c") { 56 } elsif ($params[0] eq "-c") { 59 57 shift(@params) ; 60 58 $emailcc = shift(@params) ; 61 59 # print "TEST: ccmail1: $emailcc\n"; 60 } else { 61 print STDERR "Unknown option $params[0]\n"; 62 &usage; 62 63 } 63 print STDERR "Unknown option $params[0]\n";64 &usage;65 64 } 66 65 … … 85 84 my ($username, $fullname, $groups, $expire, $email, $sshkey, $emailcc)= @_ ; 86 85 my $group; 87 print "DEBUG: @_\n"; 86 87 print "DEBUG: "; 88 foreach my $i (@_) { 89 print "$i " if (defined $i); 90 print "undef " if (not defined $i); 91 } 92 print "\n"; 88 93 89 94 die "Username ($username) should be 9 lowercase letters or digits or less and begin with a letter\n" unless $username =~ /^[a-z][a-z0-9]{0,8}$/ ;
Note: See TracChangeset
for help on using the changeset viewer.
