On Mon, 3 Apr 2000, Bonis, Wim wrote:
> I tried to use auth login with the following setup:
>
> login:
> driver = plaintext
> public_name = LOGIN
> server_prompts = "Username:: : Password::"
> server_condition = "${if pam{$1:$2}{1}{0}}"
> server_set_id = $1
>
> But it did not work for Passwords with "colons" (:) in it.
Oops. I missed a trick there. Sorry about that.
> A solution was (with a help from a perl function) to convert all ":" to "::"
> server_condition = "${if pam{$1:${perl{convert_colon}{$2}}}{1}{0}}"
Clever.
> A better fix would maybe to change the pam syntax to: ${pam{$1}{$2}}
Since it is a condition, it would have to be pam{{$1}{$2}..} so you
would have
server_condition = ${if pam{{$1}{$2}} {1} {0} }
but I'm not all that keen on making this change now.
> or to make a new quote function ${quote-colons:$1} or quote-ldap which
> subtitutes one ":" with 2 ":"
I'll think about this one.
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.