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

Re: commit: ldap/servers/slapd aci.c at.c schema_init.c schemaparse.c slap.h syntax.c

On May 15, 2007, at 4:40 PM, ando@OpenLDAP.org wrote:

Update of /repo/OpenLDAP/pkg/ldap/servers/slapd

Modified Files:
	aci.c  1.19 -> 1.20
	at.c  1.96 -> 1.97
	schema_init.c  1.397 -> 1.398
	schemaparse.c  1.83 -> 1.84
	slap.h  1.815 -> 1.816
	syntax.c  1.45 -> 1.46

Log Message:
allow attribute inheritance with syntax restriction (please review)

http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/ schema_init.c
http://www.openldap.org/devel/cvsweb.cgi/servers/slapd/ schemaparse.c

Changes are generally available on cvs.openldap.org (and CVSweb)
within 30 minutes of being committed.

Kind of in right vein, but a bit off.

An attribute of syntax X can only be a subtype of an attribute of syntax
Y if Y is a more generic syntax.  In particular, all abstract values
representable in X must be representable in Y.

While both printable string and directory string syntaxes are more generic
than country string, directory string is not more generic than printable
string. This is because printable string can represent zero length
character strings and directory string cannot.

So, what needed, for each syntax, is a list of more generic syntaxes.

-- Kurt