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 31f26704c7577d9a58b804ab2d8b21d85563a80b..6b0a8da4554cc595dea1ba8c7b05f436b7a499af 100644
--- a/include/simpleplugin/class_attribute.inc
+++ b/include/simpleplugin/class_attribute.inc
@@ -1995,6 +1995,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