';
diff --git a/htdocs/admin/ldap_contacts.php b/htdocs/admin/ldap_contacts.php
index 8f852299486..aae2f5114ed 100644
--- a/htdocs/admin/ldap_contacts.php
+++ b/htdocs/admin/ldap_contacts.php
@@ -24,7 +24,7 @@
*/
/**
- \file htdocs/admin/ldap.php
+ \file htdocs/admin/ldap_contacts.php
\ingroup ldap
\brief Page d'administration/configuration du module Ldap
\version $Revision$
diff --git a/htdocs/admin/ldap_members.php b/htdocs/admin/ldap_members.php
new file mode 100644
index 00000000000..9c01d4ac93a
--- /dev/null
+++ b/htdocs/admin/ldap_members.php
@@ -0,0 +1,286 @@
+
+ * Copyright (C) 2004 Sebastien Di Cintio
+ * Copyright (C) 2004 Benoit Mortier
+ * Copyright (C) 2005 Regis Houssin
+ * Copyright (C) 2006 Laurent Destailleur
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
+ * $Source$
+ */
+
+/**
+ \file htdocs/admin/ldap_members.php
+ \ingroup ldap adherent
+ \brief Page d'administration/configuration du module Ldap adherent
+ \version $Revision$
+*/
+
+require("./pre.inc.php");
+require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
+require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
+require_once(DOL_DOCUMENT_ROOT."/lib/authldap.lib.php");
+
+$langs->load("admin");
+
+if (!$user->admin)
+ accessforbidden();
+
+
+/*
+ * Actions
+ */
+
+if ($_GET["action"] == 'setvalue' && $user->admin)
+{
+ $error=0;
+ if (! dolibarr_set_const($db, 'LDAP_MEMBER_DN',$_POST["user"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_MEMBER_TYPE_DN',$_POST["group"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_FIELD_LOGIN',$_POST["fieldlogin"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_FIELD_LOGIN_SAMBA',$_POST["fieldloginsamba"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_FIELD_NAME',$_POST["fieldname"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_FIELD_FIRSTNAME',$_POST["fieldfirstname"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_FIELD_MAIL',$_POST["fieldmail"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_FIELD_PHONE',$_POST["fieldphone"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_FIELD_FAX',$_POST["fieldfax"])) $error++;
+ if (! dolibarr_set_const($db, 'LDAP_FIELD_MOBILE',$_POST["fieldmobile"])) $error++;
+
+ if ($error)
+ {
+ dolibarr_print_error($db->error());
+ }
+}
+
+
+
+/*
+ * Visu
+ */
+
+llxHeader();
+
+print_fiche_titre($langs->trans("LDAPSetup"),'','setup');
+
+// Test si fonction LDAP actives
+if (! function_exists("ldap_connect"))
+{
+ $mesg=$langs->trans("LDAPFunctionsNotAvailableOnPHP");
+}
+
+if ($mesg) print '