[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#693236: GOsa² fails to set passwords starting with dash ("-") or double dash ("--").



[Mike Gabriel]
> I just tested the above expression on the command line:
> 
>  $ perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen '--test'), $/;"
> 
> using "--test" as password. No problem comes up.
> 
> The bug report stems from an OTRS ticket we received from a
> customer. I now have looked at the ticket again and I guess we can
> close this bug.

Looking closer, I believe the correct way to test this is:

  root@tjener:~# perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen \$ARGV[0]), $/;" --test
  Unrecognized switch: --test  (-h will show valid options).
  root@tjener:~# perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen \$ARGV[0]), $/;" -- --test
  45516F664479F09AAAD3B435B51404EE:49B11C5AACF45B02D080235518C6AA0A
  root@tjener:~#

It assume the password is passed as the first argument to perl.  But
how exactly do I test gosa to see if this is what happen?

-- 
Happy hacking
Petter Reinholdtsen


Reply to: