[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: Problem finding telephonenumber in a plain numeric search when number is stored with special characters
So I guess the solution for me would be in servers/slapd/schema_init.c:
/* Remove all spaces and '-','(',')','+' characters */
static int
telephoneNumberNormalize(
...
for( p = val->bv_val; *p; p++ ) {
if ( ! ( ASCII_SPACE( *p ) || *p == '-' || *p == '(' || *p == ')' || *p == '+' )) {
...
Would this be sufficient? I don't know the relations of all the components in OpenLdap yet.
>Then, according to Hallvard's reply, you could __hack__ the code that implements the
>telephoneNumber equality rule on the server, and trip __all__ non-digits. Thsi will make your
>server violate the standard, but will definitely solve your problem.
>p.
>--
>Pierangelo Masarati
>mailto:pierangelo.masarati@sys-net.it
>
>
> SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497