[Webcalendar] webcal conversion
Maorong Zou
mzou a t math.utexas.edu
Wed, 26 Apr 2006 22:05:00 -0500
Rob Janssen writes:
>
> It would be possible to write a perl program by cutting some functions
> out of webcalAuth.pm that converts the passwd file.
> Maybe Maorong already has done this, let's wait for any reply...
>
There is no such utility that convert password files
between win and unix installations. However, if you
know a little perl, it is not difficult to write one.
For example, the following short program will do.
Maorong
#==== cut and save as a.pl
#!/usr/bin/perl
# usage: a.pl < win_password_file > unix_password_file
while(<>){
($n,$p,$r)=split(/:/,$_,3);
$q=$p?crypt($p,$n):"";
print "$n:$q\n";
}
#===== cut