diff --git a/include/class_baseSelector.inc b/include/class_baseSelector.inc
index e5e113fadd1c87f6fac9a25622d9beb32f819374..7a4a758a2c7ba6c6da0822635554d18ad53cf43c 100644
--- a/include/class_baseSelector.inc
+++ b/include/class_baseSelector.inc
@@ -299,5 +299,15 @@ class baseSelector {
   {
     return $this->base;
   }
+
+  /*!
+   * \brief Accessor of the bases
+   *
+   * \return Array containts the bases and their display text
+   */
+  function getBases()
+  {
+    return $this->pathMapping;
+  }
 }
 ?>
diff --git a/include/simpleplugin/class_attribute.inc b/include/simpleplugin/class_attribute.inc
index a0d090ab00b5f015c8cb4e7dd3fd7b65a27a4957..b1d0e7631c7d52aacbfd1a3802a14f1152d6e63f 100644
--- a/include/simpleplugin/class_attribute.inc
+++ b/include/simpleplugin/class_attribute.inc
@@ -1998,6 +1998,15 @@ class BaseSelectorAttribute extends Attribute
       return '';
     }
   }
+
+  function serializeAttribute(&$attributes, $form = TRUE)
+  {
+    if (!$form || $this->visible) {
+      parent::serializeAttribute($attributes, $form);
+
+      $attributes[$this->getLdapName()]['choices'] = $this->baseSelector->getBases();
+    }
+  }
 }
 
 /*! \brief This class allow to handle easily a multi-valuated attribute