|
@@ -99,6 +99,8 @@ if ($action == 'setvalue' && $user->admin) {
|
|
|
* View
|
|
|
*/
|
|
|
|
|
|
+$form = new Form($db);
|
|
|
+
|
|
|
llxHeader('', $langs->trans("LDAPSetup"), 'EN:Module_LDAP_En|FR:Module_LDAP|ES:Módulo_LDAP');
|
|
|
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
|
|
|
|
@@ -121,8 +123,6 @@ print '<br>';
|
|
|
print '<form method="post" action="'.$_SERVER["PHP_SELF"].'?action=setvalue">';
|
|
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
|
|
|
|
-$form = new Form($db);
|
|
|
-
|
|
|
print '<table class="noborder centpercent">';
|
|
|
|
|
|
print '<tr class="liste_titre">';
|
|
@@ -130,20 +130,23 @@ print '<td colspan="4">'.$langs->trans("LDAPSynchronizeGroups").'</td>';
|
|
|
print "</tr>\n";
|
|
|
|
|
|
// DN pour les groupes
|
|
|
-print '<tr class="oddeven"><td width="25%"><span class="fieldrequired">'.$langs->trans("LDAPGroupDn").'</span></td><td>';
|
|
|
+print '<!-- LDAP_GROUP_DN -->';
|
|
|
+print '<tr class="oddeven"><td><span class="fieldrequired">'.$langs->trans("LDAPGroupDn").'</span></td><td>';
|
|
|
print '<input size="48" type="text" name="group" value="'.$conf->global->LDAP_GROUP_DN.'">';
|
|
|
print '</td><td>'.$langs->trans("LDAPGroupDnExample").'</td>';
|
|
|
print '<td> </td>';
|
|
|
print '</tr>';
|
|
|
|
|
|
// List of object class used to define attributes in structure
|
|
|
-print '<tr class="oddeven"><td width="25%"><span class="fieldrequired">'.$langs->trans("LDAPGroupObjectClassList").'</span></td><td>';
|
|
|
+print '<!-- LDAP_GROUP_OBJECT_CLASS -->';
|
|
|
+print '<tr class="oddeven"><td><span class="fieldrequired">'.$langs->trans("LDAPGroupObjectClassList").'</span></td><td>';
|
|
|
print '<input size="48" type="text" name="objectclass" value="'.$conf->global->LDAP_GROUP_OBJECT_CLASS.'">';
|
|
|
print '</td><td>'.$langs->trans("LDAPGroupObjectClassListExample").'</td>';
|
|
|
print '<td> </td>';
|
|
|
print '</tr>';
|
|
|
|
|
|
// Filter, used to filter search
|
|
|
+print '<!-- LDAP_GROUP_FILTER -->';
|
|
|
print '<tr class="oddeven"><td>'.$langs->trans("LDAPFilterConnection").'</td><td>';
|
|
|
print '<input size="48" type="text" name="filter" value="'.$conf->global->LDAP_GROUP_FILTER.'">';
|
|
|
print '</td><td>'.$langs->trans("LDAPGroupFilterExample").'</td>';
|
|
@@ -151,11 +154,13 @@ print '<td></td>';
|
|
|
print '</tr>';
|
|
|
|
|
|
print '</table>';
|
|
|
+
|
|
|
print '<br>';
|
|
|
+
|
|
|
print '<table class="noborder centpercent">';
|
|
|
|
|
|
print '<tr class="liste_titre">';
|
|
|
-print '<td width="25%">'.$langs->trans("LDAPDolibarrMapping").'</td>';
|
|
|
+print '<td>'.$langs->trans("LDAPDolibarrMapping").'</td>';
|
|
|
print '<td colspan="2">'.$langs->trans("LDAPLdapMapping").'</td>';
|
|
|
print '<td class="right">'.$langs->trans("LDAPNamingAttribute").'</td>';
|
|
|
print "</tr>\n";
|