On 9.5.2011 20:21, Roland Gruber wrote:
> Hi Danilo,
>
> Am 09.05.2011 11:11, schrieb Danilo Godec:
> > apparently a dollar sign ($) is used as a line separator in multi-line
> > LDAP attributes (such as 'postalAddress'):
>
> thank you very much for your hint. I will fix this for the next release.
> Do you know similar attributes which make problems inside LAM?

So far I've only noticed the 'postalAddress'. But it looks like pretty
much every LDAP attribute could use the 'dollar' syntax.

>
> As workaround you can add the "$" in the tree view.

I changed the regex in lib/account.inc:

> --- account.inc.orig    2011-05-09 11:36:59.060715219 +0200
> +++ account.inc 2011-05-09 23:30:03.436689553 +0200
> @@ -405,8 +405,10 @@
>                 case "mailLocalAddress":
>                                         $pregexpr =
> '/^([0-9a-zA-Z+\\/\\._-])+([@]([0-9a-zA-Z-])+([.]([0-9a-zA-Z-])+)*)?$/';
>                                         break;
> -               case "postalAddress":   // Allow all but \, <, >, =, $, ?
> -               case "postalCode":
> +               case "postalAddress":
> +                                       $pregexpr = '/^[^\\\<>=\\?]*$/';
> +                                       break;
> +               case "postalCode":      // Allow all but \, <, >, =, $, ?
>                 case "street":
>                 case "title":
>                 case "employeeType":

So far this seems to work for me, but it might be better to actually
provide a multi-line input box in LAM and then properly format the
attribute using the 'dollar' syntax.



   D.


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public



------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public

Reply via email to