use global LDAP suffix from self service

This commit is contained in:
Roland Gruber 2008-12-09 18:34:45 +00:00
parent 47b946086f
commit abd240899f
1 changed files with 1 additions and 8 deletions

View File

@ -129,13 +129,6 @@ class kolabUser extends baseModule {
'kolabDelegate' => _('Delegates'),
'kolabInvitationPolicy' => _('Invitation policy')
);
// self service configuration settings
$return['selfServiceSettings'] = array(
array(
array('kind' => 'text', 'text' => '<b>' . _("Account suffix") . ': &nbsp;</b>'),
array('kind' => 'input', 'type' => 'text', 'name' => 'kolabUser_suffix'),
array('kind' => 'help', 'value' => 'suffix'))
);
// help Entries
$return['help'] = array(
'suffix' => array(
@ -837,7 +830,7 @@ class kolabUser extends baseModule {
// delegates
if (in_array('kolabDelegate', $fields)) {
$delegates = array();
$sr = @ldap_search($_SESSION['ldapHandle'], escapeDN($this->selfServiceSettings->moduleSettings['kolabUser_suffix'][0]), '(&(objectClass=inetOrgPerson)(mail=*))', array('mail'));
$sr = @ldap_search($_SESSION['ldapHandle'], escapeDN($this->selfServiceSettings->LDAPSuffix), '(&(objectClass=inetOrgPerson)(mail=*))', array('mail'));
if ($sr) {
$result = ldap_get_entries($_SESSION['ldapHandle'], $sr);
for ($i = 0; $i < $result['count']; $i++) {