]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/modify.c
Check the ldif file without actually creating the db (but inits the files;
[openldap] / servers / slapd / modify.c
index e644a898b9c22ddb1cfc7041f6f7fd5ec3a8a3b6..5c67446443b9b66325a31479e95d3b42e82c1074 100644 (file)
@@ -449,6 +449,15 @@ int slap_mods_check(
                        return LDAP_UNDEFINED_TYPE;
                }
 
+               if( slap_ad_is_lang_range( ad )) {
+                       /* attribute requires binary transfer */
+                       snprintf( textbuf, textlen,
+                               "%s: inappropriate use of language range option",
+                               ml->sml_type.bv_val );
+                       *text = textbuf;
+                       return LDAP_UNDEFINED_TYPE;
+               }
+
                if (!update && is_at_no_user_mod( ad->ad_type )) {
                        /* user modification disallowed */
                        snprintf( textbuf, textlen,