]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-mdb/add.c
ITS#8007 Add maxentrysize config option
[openldap] / servers / slapd / back-mdb / add.c
index 36b76453d9ee8f79f569ec09b46f2457ed3214c0..a300974f43aa905c58e73eca9746606fc985b72d 100644 (file)
@@ -335,8 +335,12 @@ mdb_add(Operation *op, SlapReply *rs )
                Debug( LDAP_DEBUG_TRACE,
                        LDAP_XSTRING(mdb_add) ": id2entry_add failed\n",
                        0, 0, 0 );
-               rs->sr_err = LDAP_OTHER;
-               rs->sr_text = "entry store failed";
+               if ( rs->sr_err == LDAP_ADMINLIMIT_EXCEEDED ) {
+                       rs->sr_text = "entry is too big";
+               } else {
+                       rs->sr_err = LDAP_OTHER;
+                       rs->sr_text = "entry store failed";
+               }
                goto return_results;
        }