From: Peter M. <pet...@ma...> - 2002-01-06 22:50:43
|
Hi, I have two questions about the frmat of schema entries that may be a little off topic, but bay also affect perl-ldap: * Is ' (single quote) legal inside qdstrings in schema definitions=20 RFC2252 does not explicitely deny it. It simply gives the following definitions dstring =3D 1*utf8 qdstring =3D whsp "'" dstring "'" whsp without defining utf8 further Since a single quote is a utf8 character, this could mean that single quotes inside qdstrings are really allowed. So DESC 'New Object's FS Rights' might be a legal description. * Is _ (underscore) a legal character in private extensions to schema elements ? RFC2252 does not explicitely forbid it. It simply says: "Terms which begin with the characters "X-" are reserved for private experiments, and MUST be followed by a <qdstrings>" But no correlation is made between the word term and any formally defined word. So X-NDS_NOT_SCHED_SYNC_IMMEDIATE '1' might be a legal extension. I do not ask this just for fun. I find the assumptions made by Net::LDAP::Schema reasonable (since the things above make parsing the schema quite hard). But I have a directory server (guess which manufacturer ;-)) that contains those elements in the schema, making the schema un-parseable by Net::LDAP::Schema. Before I go out and tell them to correct their schema description accordng to RFC I would like to get ohers' opinions if such a schema conforms to RFC2252. Last but not least, I have a very rough patch available that would allow to parse such a schema. But I have to polish it a bitbefore I send it. Are you interested ? Yours Peter --=20 Peter Marschall | eMail: pet...@ma... Scheffelstra=DFe 15 | pet...@is... 97072 W=FCrzburg | Tel: 0931/14721 PGP: D7 FF 20 FE E6 6B 31 74 D1 10 88 E0 3C FE 28 35 |