diff --git a/htdocs/admin/ldap_contacts.php b/htdocs/admin/ldap_contacts.php
index 721812b379b..67b28142afe 100644
--- a/htdocs/admin/ldap_contacts.php
+++ b/htdocs/admin/ldap_contacts.php
@@ -34,6 +34,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/ldap.lib.php");
require_once(DOL_DOCUMENT_ROOT."/contact.class.php");
$langs->load("admin");
+$langs->load("errors");
if (!$user->admin)
accessforbidden();
@@ -297,6 +298,11 @@ if (function_exists("ldap_connect"))
print '
';
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'
';
}
+
+ print "
\n";
+ print "LDAP input file used for test:
\n";
+ print nl2br($ldap->dump_content($dn,$info));
+ print "\n
";
}
else
{
@@ -306,11 +312,6 @@ if (function_exists("ldap_connect"))
print '
';
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'
';
}
-
- print "
\n";
- print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn,$info));
- print "\n
";
}
}
diff --git a/htdocs/admin/ldap_groups.php b/htdocs/admin/ldap_groups.php
index 9a41285dc3d..2d1e2bb4bfb 100644
--- a/htdocs/admin/ldap_groups.php
+++ b/htdocs/admin/ldap_groups.php
@@ -35,6 +35,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/ldap.class.php");
require_once(DOL_DOCUMENT_ROOT."/lib/ldap.lib.php");
$langs->load("admin");
+$langs->load("errors");
if (!$user->admin)
accessforbidden();
@@ -219,6 +220,11 @@ if (function_exists("ldap_connect"))
print '
';
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'
';
}
+
+ print "
\n";
+ print "LDAP input file used for test:
\n";
+ print nl2br($ldap->dump_content($dn,$info));
+ print "\n
";
}
else
{
@@ -228,11 +234,6 @@ if (function_exists("ldap_connect"))
print '
';
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'
';
}
-
- print "
\n";
- print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn,$info));
- print "\n
";
}
}
diff --git a/htdocs/admin/ldap_members.php b/htdocs/admin/ldap_members.php
index 05d36c00e6a..62200f49221 100644
--- a/htdocs/admin/ldap_members.php
+++ b/htdocs/admin/ldap_members.php
@@ -35,6 +35,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/ldap.class.php");
require_once(DOL_DOCUMENT_ROOT."/lib/ldap.lib.php");
$langs->load("admin");
+$langs->load("errors");
if (!$user->admin)
accessforbidden();
@@ -411,6 +412,11 @@ if (function_exists("ldap_connect"))
print '
';
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'
';
}
+
+ print "
\n";
+ print "LDAP input file used for test:
\n";
+ print nl2br($ldap->dump_content($dn,$info));
+ print "\n
";
}
else
{
@@ -420,11 +426,6 @@ if (function_exists("ldap_connect"))
print '
';
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'
';
}
-
- print "
\n";
- print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn,$info));
- print "\n
";
}
}
diff --git a/htdocs/admin/ldap_users.php b/htdocs/admin/ldap_users.php
index 41f6afaec14..1f5ca3a0a07 100644
--- a/htdocs/admin/ldap_users.php
+++ b/htdocs/admin/ldap_users.php
@@ -35,6 +35,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/ldap.class.php");
require_once(DOL_DOCUMENT_ROOT."/lib/ldap.lib.php");
$langs->load("admin");
+$langs->load("errors");
if (!$user->admin)
accessforbidden();
@@ -313,6 +314,11 @@ if (function_exists("ldap_connect"))
print '
';
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'
';
}
+
+ print "
\n";
+ print "LDAP input file used for test:
\n";
+ print nl2br($ldap->dump_content($dn,$info));
+ print "\n
";
}
else
{
@@ -322,11 +328,6 @@ if (function_exists("ldap_connect"))
print '
';
print $langs->trans("ErrorLDAPMakeManualTest",$conf->ldap->dir_temp).'
';
}
-
- print "
\n";
- print "LDAP input file used for test:
\n";
- print nl2br($ldap->dump_content($dn,$info));
- print "\n
";
}
}