fixed creation of new accounts
This commit is contained in:
parent
9503df6418
commit
f345b2d435
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue