Fix for when invalid objectclass entered
This commit is contained in:
parent
5481f61ce3
commit
223086b58e
@ -59,6 +59,7 @@ if (count($request['template']->getLDAPmodify(true))) {
|
|||||||
foreach ($request['template']->getAttribute('objectclass')->getValues() as $value) {
|
foreach ($request['template']->getAttribute('objectclass')->getValues() as $value) {
|
||||||
$soc = $app['server']->getSchemaObjectClass($value);
|
$soc = $app['server']->getSchemaObjectClass($value);
|
||||||
|
|
||||||
|
if ($soc)
|
||||||
foreach ($soc->getMustAttrs() as $sma)
|
foreach ($soc->getMustAttrs() as $sma)
|
||||||
array_push($mustattrs,$sma->getName());
|
array_push($mustattrs,$sma->getName());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user