From 57a90e5985b609a627cc0fdcd9b2130ec3d53f5e Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 29 Feb 2008 21:04:47 +0000 Subject: [PATCH] Fixed potentialy undefined ridbases. Closes #352 git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@9221 594d385d-05f5-0310-b6e9-bd551577e9d8 --- Changelog | 3 +++ plugins/personal/samba/class_sambaAccount.inc | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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]; } -- 2.30.2