From: cajus Date: Fri, 29 Feb 2008 21:04:47 +0000 (+0000) Subject: Fixed potentialy undefined ridbases. Closes #352 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=57a90e5985b609a627cc0fdcd9b2130ec3d53f5e;p=gosa.git Fixed potentialy undefined ridbases. Closes #352 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9221 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/Changelog b/Changelog index bcf30a16e..2a78bfaf7 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,9 @@ GOsa2 changelog =============== +* gosa 2.5.16 + - ridbase may be undefined in domain objects + * gosa 2.5.15 - Changed order of sys-action commandline parameters - Changed sorting of management plugins to natural sorting diff --git a/plugins/personal/samba/class_sambaAccount.inc b/plugins/personal/samba/class_sambaAccount.inc index 651863181..44b8c1814 100644 --- a/plugins/personal/samba/class_sambaAccount.inc +++ b/plugins/personal/samba/class_sambaAccount.inc @@ -126,7 +126,11 @@ class sambaAccount extends plugin $ldap->search ("(&(objectClass=sambaDomain)(sambaSID=$this->SID))",array("sambaAlgorithmicRidBase","sambaDomainName")); if ($ldap->count() != 0){ $attrs= $ldap->fetch(); - $this->ridBase= $attrs['sambaAlgorithmicRidBase'][0]; + if(isset($attrs['sambaAlgorithmicRidBase'])){ + $this->ridBase= $attrs['sambaAlgorithmicRidBase'][0]; + } else { + $this->ridBase= $this->config->current['RIDBASE']; + } if ($this->sambaDomainName == ""){ $this->sambaDomainName= $attrs['sambaDomainName'][0]; }