Home | History | Annotate | Download | only in overlays

Lines Matching defs:constraint

1 /*	$NetBSD: constraint.c,v 1.4 2025/09/05 21:16:32 christos Exp $	*/
4 /* constraint.c - Overlay to constrain attributes to certain values */
23 __RCSID("$NetBSD: constraint.c,v 1.4 2025/09/05 21:16:32 christos Exp $");
62 typedef struct constraint {
63 struct constraint *ap_next;
78 struct berval val; /* constraint value */
81 } constraint;
99 "DESC 'constraint for list of attributes' "
108 "DESC 'Constraint overlay configuration' "
116 constraint_free( constraint *cp, int freeme )
146 constraint *cn = on->on_bi.bi_private, *cp;
149 constraint ap = { NULL };
270 constraint **cpp;
272 /* zap constraint numbered 'valx' */
431 "%s %s: Unknown constraint type: %s",
546 constraint **app, *a2 = ch_calloc( sizeof(constraint), 1 );
566 for ( app = (constraint **)&on->on_bi.bi_private; *app; app = &(*app)->ap_next )
607 constraint_violation( constraint *c, struct berval *bv, Operation *op )
728 return LDAP_CONSTRAINT_VIOLATION; /* constraint violation */
759 constraint_check_restrict( Operation *op, constraint *c, Entry *e )
818 constraint *c = on->on_bi.bi_private, *cp;
821 struct berval rsv = BER_BVC("add breaks constraint");
895 constraint_check_count_violation( Modifications *m, Entry *target_entry, constraint *cp )
957 constraint *c = on->on_bi.bi_private, *cp;
962 struct berval rsv = BER_BVC("modify breaks constraint");
1200 constraint *ap, *a2;
1219 constraint_ovl.on_bi.bi_type = "constraint";