summaryrefslogtreecommitdiff
path: root/packaging/Caldera/OpenLinux/make_smbpasswd.perl
blob: 2666c19666e9b892d8ce1e49f6364f23a87c0052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl 
$X= "X" x 32;
$U="[U          ]";
$L="LCT-00000000";
print("#\n# SMB password file.\n#\n");

while ( <> ) {
  next unless (/^[A-Za-z0-9_]/);
  chop;
  @V = split(/:/);
  printf( "%s:%s:%s:%s:%s:%s:%s\n", $V[0], $V[2], $X, $X, $U, $L, $V[4]);
}