/**
  * création d'une connection.
  * @access private
  * @param string  $named  nom du profil de connection
  * @return CopixLdapConnection  l'objet de connection
  */
 private function _createConnection($profilName)
 {
     $profil =& CopixLdapFactory::_getProfil($profilName);
     //Création de l'objet
     $obj = new CopixLdapConnection();
     if ($profil->shared) {
         $GLOBALS['COPIX']['LDAP'][$profilName] =& $obj;
     }
     if (CopixPluginRegistry::getConf('CopixLdap', 'showLdapQueryEnabled') && isset($_GET['showLdapQuery']) && $_GET['showLdapQuery'] == '1') {
         $obj->_debugQuery = true;
     }
     $obj->connect($profil);
     return $obj;
 }