]> git.sur5r.net Git - openldap/commitdiff
Add comment about normalized values in mods vs entry attributes
authorHoward Chu <hyc@openldap.org>
Sat, 13 Sep 2003 09:51:28 +0000 (09:51 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 13 Sep 2003 09:51:28 +0000 (09:51 +0000)
servers/slapd/modify.c

index 5ab98d6c81227a74c950885809dad13ebc631802..ac412159c136b3d8288c5c8099558885a8c22990 100644 (file)
@@ -711,6 +711,14 @@ int slap_mods_check(
                                return LDAP_CONSTRAINT_VIOLATION;
                        }
 
+                       /* if the type has a normalizer, generate the
+                        * normalized values. otherwise leave them NULL.
+                        *
+                        * this is different from the rule for attributes
+                        * in an entry - in an attribute list, the normalized
+                        * value is set equal to the non-normalized value
+                        * when there is no normalizer.
+                        */
                        if( nvals && ad->ad_type->sat_equality &&
                                ad->ad_type->sat_equality->smr_normalize )
                        {