Wrong evaluation of $ENV{REMOTE_ADDR} in Auth::Multi when safe jail is enabled
We use multiple authentication as follows so that external clients use LDAP and internal clients use an internal CAS server :
LDAP $ENV{REMOTE_ADDR}!/^10./;CAS $ENV{REMOTE_ADDR}=/^10./
However, when Safe Jail is on, the condition is sometimes wrongly evaluated and external clients are directed to CAS authentication, which fails. This seems to happen randomly but quite often. See attached debug log : "Evaluation result:" for $ENV{REMOTE_ADDR}!~/^10\./ is empty whereas the IP begins with "12." (Real IPs and domains have been masked)
When Safe Jail is off, this doesn't occur, but we are reluctant to leave this setting in an open production environment.
Sorry if this is a normal behaviour or has been reported before since this is my 1st contribution.