Bug#693236: GOsa² fails to set passwords starting with dash ("-") or double dash ("--").
[Mike Gabriel 2012-11-14]
> GOsa² fails to set passwords starting with dash ("-") or double dash ("--").
>
> The problem occurs in the SambaHashHook command (in gosa.conf):
>
> """
> sambaHashHook="perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen
> \$ARGV[0]), $/;""
> """
How can the problem be reproduced? Do you know if this happen with the
Wheezy version too?
I am unable to understand from looking at the perl one-liner why a
password startingwith dash should fail. Any ideas? Perhaps adding "--"
at the end of the perl command help, to tell perl to not parse the
password as an option? Ie something like this:
sambaHashHook="perl -MCrypt::SmbHash -e "print join(q[:], ntlmgen \$ARGV[0]), $/;" --"
--
Happy hacking
Petter Reinholdtsen
Reply to: