do not use in_cache
This commit is contained in:
parent
cf7bd8c96a
commit
a6fa871472
|
@ -366,7 +366,7 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I
|
||||||
$errors[] = $this->messages['cn'][0];
|
$errors[] = $this->messages['cn'][0];
|
||||||
}
|
}
|
||||||
// Check, if cn is not already use:
|
// Check, if cn is not already use:
|
||||||
elseif ( $_SESSION['cache']->in_cache($_POST['cn'],'cn', array('dhcp')) && $this->orig['cn']['0']!=$_POST['cn'] ) {
|
elseif ((sizeof(searchLDAPByAttribute('cn', $_POST['cn'], 'dhcpOptions', array('cn'), array('dhcp'))) > 0) && $this->orig['cn']['0']!=$_POST['cn']) {
|
||||||
$errors[] = $this->messages['cn'][1];
|
$errors[] = $this->messages['cn'][1];
|
||||||
}
|
}
|
||||||
elseif (!check_ip($_POST['cn'],true)) {
|
elseif (!check_ip($_POST['cn'],true)) {
|
||||||
|
|
|
@ -492,7 +492,8 @@ class sambaGroupMapping extends baseModule {
|
||||||
$this->attributes['sambaSID'][0] = $SID."-".$this->rids[$rids[$i]];
|
$this->attributes['sambaSID'][0] = $SID."-".$this->rids[$rids[$i]];
|
||||||
// Do a check if special group is unique
|
// Do a check if special group is unique
|
||||||
if ($this->getAccountContainer()->isNewAccount) {
|
if ($this->getAccountContainer()->isNewAccount) {
|
||||||
if ($_SESSION['cache']->in_cache($SID."-".$this->rids[$rids[$i]], 'sambaSID', 'group')) {
|
$result = searchLDAPByAttribute('sambaSID', $SID."-".$this->rids[$rids[$i]], 'sambaGroupMapping', array('sambaSID'), array('group'));
|
||||||
|
if (sizeof($result) > 0) {
|
||||||
$message = $this->messages['sambaSID'][0];
|
$message = $this->messages['sambaSID'][0];
|
||||||
$message[] = $rids[$i];
|
$message[] = $rids[$i];
|
||||||
$errors[] = $message;
|
$errors[] = $message;
|
||||||
|
|
Loading…
Reference in New Issue