Re: Query regarding telephonenumber format

2022-12-05 Thread Emmanuel Lécharny

Hi,

as I said, it's a feature that has been added in the LDAP API, but it's 
not leveraged by the server. It would require some extension of the 
configuration.


Not impossible, but you'll have to wait for a release.

On 05/12/2022 19:11, Pawan Verma wrote:

Hi Emmanuel, thanks for your inputs.
It helps in clarifying lot of things.

Since you mentioned this:
/Side note: we have added a way to change the regexp in this
AttributeType, but it's not leveraged by the server./

I am just wondering whether I can get some kind of version which allows 
me to use regexp in telephoneNumber attribute type.

Could you or someone please help me with this?

Thanks,
Pawan


On Thu, Nov 24, 2022 at 8:37 PM Emmanuel Lécharny > wrote:


Hi,

the TelephoneNumber syntax is defined by ITU recommendation E.123,
which
is translated into a regexp internally:

^ *[+]? *((\([0-9- ,;/#*]+\))|[0-9- ,;/#*]+)+$

- may start with any numbe rof spaces
- have a '+' at the beginning
- may have ( )
- any chars in "0-9 - ,;/#*" are accepted inside '(' ')'
- any chars in "0-9 - ,;/#*" are accepted outsides '(' ')'

Accordingly to this syntx, the following numbers get rejected:

o 925.543.7760 : '.' is not accepted
o (+91)8106912289:  the '+' should be outside the '(' ')'
o 215-943-4000 ext7073: "ext" is not valid

A few more things:

o '+' is for international number. There is no reason to have this char
with a '(' ')', as parentheses are for optional numbers
o 'Dialable symbols' are expected to be dialled on a pretty limited
keyboard, this is the reason why such things as 'ext' are not accepted

I understand this is pretty limited, and carry no additional context
that would worth having (for instance the ext7073 which carries
inmportant information for the user), but in this case, I would suggest
you use another AttributeType which accept more chars, which means you
have to define your own AttributeType with a wider Syntax (as
DirectoryString).

Side note: we have added a way to change the regexp in this
AttributeType, but it's not leveraged by the server.

On 2022/11/24 10:56, Pawan Verma wrote:
 > Hi,
 > Can someone please answer my query regarding the telephoneNumber
format
 > supported by ApacheDS AM16 and beyond versions?
 >
 > We tried adding numbers in the following format, but it failed:
 > 925.543.7760
 > (+91)8106912289
 > 215-943-4000 ext7073
 >
 > The only formats where it passed are:
 > 888-303-8482
 > +918106912289
 >
 > So, it looks like the "dot" and "brackets" are not supported.
 >
 > Can someone please clarify this?
 >
 > Thanks,
 > Pawan Verma
 >

-- 
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE

T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecha...@busit.com 
https://www.busit.com/ 

-
To unsubscribe, e-mail: users-unsubscr...@directory.apache.org

For additional commands, e-mail: users-h...@directory.apache.org




--
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecha...@busit.com https://www.busit.com/

-
To unsubscribe, e-mail: users-unsubscr...@directory.apache.org
For additional commands, e-mail: users-h...@directory.apache.org



Re: Query regarding telephonenumber format

2022-12-05 Thread Pawan Verma
Hi Emmanuel, thanks for your inputs.
It helps in clarifying lot of things.

Since you mentioned this:

*Side note: we have added a way to change the regexp in thisAttributeType,
but it's not leveraged by the server.*

I am just wondering whether I can get some kind of version which allows me
to use regexp in telephoneNumber attribute type.
Could you or someone please help me with this?

Thanks,
Pawan


On Thu, Nov 24, 2022 at 8:37 PM Emmanuel Lécharny 
wrote:

> Hi,
>
> the TelephoneNumber syntax is defined by ITU recommendation E.123, which
> is translated into a regexp internally:
>
> ^ *[+]? *((\([0-9- ,;/#*]+\))|[0-9- ,;/#*]+)+$
>
> - may start with any numbe rof spaces
> - have a '+' at the beginning
> - may have ( )
> - any chars in "0-9 - ,;/#*" are accepted inside '(' ')'
> - any chars in "0-9 - ,;/#*" are accepted outsides '(' ')'
>
> Accordingly to this syntx, the following numbers get rejected:
>
> o 925.543.7760 : '.' is not accepted
> o (+91)8106912289:  the '+' should be outside the '(' ')'
> o 215-943-4000 ext7073: "ext" is not valid
>
> A few more things:
>
> o '+' is for international number. There is no reason to have this char
> with a '(' ')', as parentheses are for optional numbers
> o 'Dialable symbols' are expected to be dialled on a pretty limited
> keyboard, this is the reason why such things as 'ext' are not accepted
>
> I understand this is pretty limited, and carry no additional context
> that would worth having (for instance the ext7073 which carries
> inmportant information for the user), but in this case, I would suggest
> you use another AttributeType which accept more chars, which means you
> have to define your own AttributeType with a wider Syntax (as
> DirectoryString).
>
> Side note: we have added a way to change the regexp in this
> AttributeType, but it's not leveraged by the server.
>
> On 2022/11/24 10:56, Pawan Verma wrote:
> > Hi,
> > Can someone please answer my query regarding the telephoneNumber format
> > supported by ApacheDS AM16 and beyond versions?
> >
> > We tried adding numbers in the following format, but it failed:
> > 925.543.7760
> > (+91)8106912289
> > 215-943-4000 ext7073
> >
> > The only formats where it passed are:
> > 888-303-8482
> > +918106912289
> >
> > So, it looks like the "dot" and "brackets" are not supported.
> >
> > Can someone please clarify this?
> >
> > Thanks,
> > Pawan Verma
> >
>
> --
> *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
> T. +33 (0)4 89 97 36 50
> P. +33 (0)6 08 33 32 61
> emmanuel.lecha...@busit.com https://www.busit.com/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@directory.apache.org
> For additional commands, e-mail: users-h...@directory.apache.org
>
>