fixed creation of new accounts

This commit is contained in:
Roland Gruber 2006-05-14 07:47:50 +00:00
parent 9503df6418
commit f345b2d435
1 changed files with 9 additions and 0 deletions

View File

@ -88,6 +88,15 @@ class baseModule {
*/
function init($base) {
$this->base = $base;
$this->attributes = array();
$this->orig = array();
// add object classes if needed
$this->attributes['objectClass'] = array();
$this->orig['objectClass'] = array();
$objectClasses = $this->getManagedObjectClasses();
for ($i = 0; $i < sizeof($objectClasses); $i++) {
if (!in_array($objectClasses[$i], $this->attributes['objectClass'])) $this->attributes['objectClass'][] = $objectClasses[$i];
}
}