forked from Wavyzz/dolibarr
More fix and enhancements in LDAP module
This commit is contained in:
@@ -21,10 +21,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/admin/ldap_members.php
|
||||
\ingroup ldap adherent
|
||||
\brief Page d'administration/configuration du module Ldap adherent
|
||||
\version $Id$
|
||||
* \file htdocs/admin/ldap_members.php
|
||||
* \ingroup ldap adherent
|
||||
* \brief Page d'administration/configuration du module Ldap adherent
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
@@ -285,7 +285,7 @@ print '</tr>';
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td>'.$langs->trans("LDAPFieldCountry").'</td><td>';
|
||||
print '<input size="25" type="text" name="fieldcountry" value="'.$conf->global->LDAP_MEMBER_FIELD_COUNTRY.'">';
|
||||
print '</td><td>'.$langs->trans("LDAPFieldCountryExample").'</td>';
|
||||
print '</td><td> </td>';
|
||||
print '<td align="right"> </td>';
|
||||
print '</tr>';
|
||||
|
||||
|
||||
@@ -645,6 +645,7 @@ class Ldap
|
||||
$content.="# ldapadd $target -c -v -D ".$this->searchUser." -W -f ldapinput.in\n";
|
||||
$content.="# ldapmodify $target -c -v -D ".$this->searchUser." -W -f ldapinput.in\n";
|
||||
$content.="# ldapdelete $target -c -v -D ".$this->searchUser." -W -f ldapinput.in\n";
|
||||
if (in_array('localhost',$this->server)) $content.="# If commands fails to connect, try without -h and -p\n";
|
||||
$content.="dn: ".$dn."\n";
|
||||
foreach($info as $key => $value)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user