OpenBSD CVS

CVS log for src/usr.sbin/ldapd/schema.c


[BACK] Up to [local] / src / usr.sbin / ldapd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.20 / (download) - annotate - [select for diffs], Wed Oct 12 11:57:40 2022 UTC (19 months, 3 weeks ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

avoid use after free in error paths
ok miod@ martijn@

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Sun Oct 27 20:05:13 2019 UTC (4 years, 7 months ago) by tb
Branch: OPENBSD_6_6
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

The ber_* namespace is used by liblber since time immemorial,
so move our BER API to the unused ober_* prefix to avoid some
breakage in ports.

Problem diagnosed by jmatthew with ber_free() in samba, but
there are many others as pointed out by sthen.

tests & ok rob
ok sthen (who had an almost identical diff for libutil)
"go head hit it" deraadt

OpenBSD 6.6 errata 002

Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 24 12:39:26 2019 UTC (4 years, 7 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

The ber_* namespace is used by liblber since time immemorial,
so move our BER API to the unused ober_* prefix to avoid some
breakage in ports.

Problem diagnosed by jmatthew with ber_free() in samba, but
there are many others as pointed out by sthen.

tests & ok rob
ok sthen (who had an almost identical diff for libutil)
"go head hit it" deraadt

Revision 1.18 / (download) - annotate - [select for diffs], Wed Feb 13 22:57:08 2019 UTC (5 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_5_BASE, OPENBSD_6_5
Branch point for: OPENBSD_6_6
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

(unsigned) means (unsigned int) which on ptrdiff_t or size_t or other
larger types really is a range reduction...
Almost any cast to (unsigned) is a bug.
ok millert tb benno

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 20 11:55:08 2017 UTC (7 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

work on making log.c similar in all daemons:

move daemon-local functions into new logmsg.c, and reduce
the (mostly whitespace) differences so that log.c's can be diffed easily.

ok krw@ jmatthew@

Revision 1.16 / (download) - annotate - [select for diffs], Sun Nov 16 19:04:40 2014 UTC (9 years, 6 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.15: +6 -7 lines
Diff to previous 1.15 (colored)

Convert the logic in the error function of the ldap schema parser.
Instead of creating a temporary format string, create a temporary
message.
OK doug@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 12 14:01:20 2012 UTC (11 years, 6 months ago) by gsoares
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.14: +4 -1 lines
Diff to previous 1.14 (colored)

fix a potential memory leak; OK martinh@ sthen@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 4 15:35:00 2010 UTC (13 years, 7 months ago) by martinh
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.13: +16 -1 lines
Diff to previous 1.13 (colored)

Publish matching rules in the cn=schema subentry as the matchingRules
attribute. This is an operational attribute and only returned if explicitly
asked for. Required by RFC 4517.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Nov 3 14:17:01 2010 UTC (13 years, 7 months ago) by martinh
Branch: MAIN
Changes since 1.12: +59 -7 lines
Diff to previous 1.12 (colored)

Validate matching rules against attribute syntaxes. All matching rules from
RFC 4517 are recognized, except the optional wordMatch and keywordMatch.

Requires a current core.schema file.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 21 10:41:32 2010 UTC (13 years, 8 months ago) by martinh
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)

Warn if schema file can't be opened.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Sep 3 09:53:24 2010 UTC (13 years, 9 months ago) by martinh
Branch: MAIN
Changes since 1.10: +22 -1 lines
Diff to previous 1.10 (colored)

Resolve matching rules from superior attribute types at schema load time
instead of when each attribute is validated.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Sep 3 09:39:17 2010 UTC (13 years, 9 months ago) by martinh
Branch: MAIN
Changes since 1.9: +32 -10 lines
Diff to previous 1.9 (colored)

Implement attribute syntaxes from RFC4517. This adds validation to the most
common attribute types. Specialized attribute types like Delivery Method or
Teletex Terminal Identifier are recognized for completeness, but not
validated.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Sep 1 18:30:48 2010 UTC (13 years, 9 months ago) by martinh
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

Add missing leading string quote character in attribute type description.
Caused syntax errors when parsing schema from the subschema.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jul 2 05:23:40 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.7: +238 -1 lines
Diff to previous 1.7 (colored)

Dump parsed schema to buffer and send in requests for the cn=schema
subschema namespace. Only do this if 'objectClasses' and 'attributeTypes'
are expicitly requested. This allows clients to for example present custom
editing forms.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jul 2 00:42:50 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)

Fix memory leaks in schema parser.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Jul 1 18:37:12 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.5: +38 -4 lines
Diff to previous 1.5 (colored)

Parse (and ignore) schema extensions with an X- prefix. Bail on unknown keywords.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 1 17:21:25 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.4: +4 -2 lines
Diff to previous 1.4 (colored)

Give a more descriptive error message when an object class definition
references non-existent attribute types.

from william@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 1 03:47:59 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

Fix two possible null pointer assignments in the error path.
found by clang static analyzer

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 30 19:42:40 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

remove trailing spaces

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jun 30 04:14:59 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN
Changes since 1.1: +38 -1 lines
Diff to previous 1.1 (colored)

Verify that any object class subclassing is allowed.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jun 29 02:45:46 2010 UTC (13 years, 11 months ago) by martinh
Branch: MAIN

Rewrite the schema parser, as it's not a context-free grammar.
This also brings the config parser more in line with other parse.y in the
tree. The new schema parser also supports symbolic OID names.

You need to update your /etc/ldapd.conf. Schema files are no longer
included with the 'include' keyword, you have to use 'schema' for that.

Moves schema-related structures to a separate include file to ease reuse.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.