From: Andreas Gohr Date: Wed, 5 Dec 2007 16:03:31 +0000 (+0100) Subject: added sizelimit info X-Git-Tag: 0.7.1~26 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2d29210bf30cfd4eafd9c99ca7453790d9d14bb5;p=contagged added sizelimit info darcs-hash:20071205160331-6e07b-2f5d97d50a9c8c7c588df186e6ad1aabc89fabdc.gz --- 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}