[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: commit: ldap/servers/slapd schema_init.c



Ah, but it's nice to accept integer values that look like:

someAttribute: 0

and this code specifically disallows this:

        } else if ( val.bv_val[0] == '0' ) {
                if( val.bv_len == 1 ) { /* "0<more>" */
                        return LDAP_INVALID_SYNTAX;
                }

                return LDAP_SUCCESS;
        }

Am I missing something? :-)

-- Luke

>From: kurt@OpenLDAP.org
>Subject: commit: ldap/servers/slapd schema_init.c
>To: OpenLDAP Commit <openldap-commit2devel@OpenLDAP.org>
>Date: Thu, 24 Apr 2003 03:16:06 GMT
>
>Update of /repo/OpenLDAP/pkg/ldap/servers/slapd
>
>Modified Files:
>	schema_init.c  1.286 -> 1.287
>
>Log Message:
>New integer syntax / matching routines
>A pretty function likely should be added "to be liberal in what we accept"
>
>
>CVS Web URLs:
>  http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/
>    http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/schema_init.c
>
>Changes are generally available on cvs.openldap.org (and CVSweb)
>within 30 minutes of being committed.

--
Luke Howard | PADL Software Pty Ltd | www.padl.com