From 2d29210bf30cfd4eafd9c99ca7453790d9d14bb5 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 5 Dec 2007 17:03:31 +0100 Subject: [PATCH] added sizelimit info darcs-hash:20071205160331-6e07b-2f5d97d50a9c8c7c588df186e6ad1aabc89fabdc.gz --- doc/slapd.example | 3 +++ inc/template.php | 3 +++ templates/header.tpl | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/slapd.example b/doc/slapd.example index 6545fff..31ed623 100644 --- a/doc/slapd.example +++ b/doc/slapd.example @@ -27,6 +27,9 @@ replogfile /var/lib/ldap/replog #loglevel 256 loglevel 0 +# Don't set a limit n returned result sets +sizelimit -1 + ####################################################################### # ldbm database definitions ####################################################################### diff --git a/inc/template.php b/inc/template.php index 93095a1..279ca4c 100644 --- a/inc/template.php +++ b/inc/template.php @@ -96,7 +96,10 @@ function tpl_ldaperror($message=""){ $__LDAPERROR__ .= ldap_err2str($errno); if(!empty($message)){ $__LDAPERROR__ .= "($message)"; + }elseif($errno == 4){ + $__LDAPERROR__ .= "(You need to increase this limit in your server config)"; } + $__LDAPERROR__ .= '
'; } $smarty->assign("LDAPERRORS",$__LDAPERROR__); } diff --git a/templates/header.tpl b/templates/header.tpl index 224538e..e61f1a8 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -42,7 +42,7 @@ {if $LDAPERRORS != ''}

{$lang.err_ldap}

-

{$LDAPERRORS|escape}

+

{$LDAPERRORS}

{/if} -- 2.39.5