import from HEAD:
[freeradius.git] / scripts / radiusd2ldif.pl
index 7b33acf..fea38d0 100755 (executable)
@@ -211,7 +211,7 @@ while ($line=<STDIN>) {
        }
        # Start line is hardcoded must be uid followed by password
        # this could be changed to use any other parameter however
-       if ( $line =~ /^(\w+)\s*\t*Password=(\w+)/ ) { 
+       if ( $line =~ /^(\w+)\s*\t*(?:User-)?Password=(\w+)/ ) { 
                $uid = $1;
                $password= $2;
                $password = $passwords{$password} if $opt_f;