From 618d3f0e3f307488956083dc50562e08ee808e24 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 31 Oct 2008 10:24:31 +0000 Subject: [PATCH] Renamed baseIdHook git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12841 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/contrib/gosa.conf.5 | 2 +- gosa-core/include/functions.inc | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gosa-core/contrib/gosa.conf.5 b/gosa-core/contrib/gosa.conf.5 index 4f345f311..72868453e 100644 --- a/gosa-core/contrib/gosa.conf.5 +++ b/gosa-core/contrib/gosa.conf.5 @@ -886,7 +886,7 @@ with your .I adduser.conf to avoid overlapping uidNumber values between local and LDAP based lookups. The uidNumberBase can even be dynamic. Take a look at the -.I nextIdHook +.I baseIdHook definition below. .PP diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 604c7b5a5..18d72a7a6 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -2182,10 +2182,10 @@ function get_base_from_hook($dn, $attrib) { global $config; - if ($config->get_cfg_value("nextIdHook") != ""){ + if ($config->get_cfg_value("baseIdHook") != ""){ /* Call hook script - if present */ - $command= $config->get_cfg_value("nextIdHook"); + $command= $config->get_cfg_value("baseIdHook"); if ($command != ""){ $command.= " '".LDAP::fix($dn)."' $attrib"; @@ -2195,17 +2195,17 @@ function get_base_from_hook($dn, $attrib) if (preg_match("/^[0-9]+$/", $output[0])){ return ($output[0]); } else { - msg_dialog::display(_("Warning"), _("'nextIdHook' is not available. Using default base!"), WARNING_DIALOG); + msg_dialog::display(_("Warning"), _("'baseIdHook' is not available. Using default base!"), WARNING_DIALOG); return ($config->get_cfg_value("uidNumberBase")); } } else { - msg_dialog::display(_("Warning"), _("'nextIdHook' is not available. Using default base!"), WARNING_DIALOG); + msg_dialog::display(_("Warning"), _("'baseIdHook' is not available. Using default base!"), WARNING_DIALOG); return ($config->get_cfg_value("uidNumberBase")); } } else { - msg_dialog::display(_("Warning"), _("'nextIdHook' is not available. Using default base!"), WARNING_DIALOG); + msg_dialog::display(_("Warning"), _("'baseIdHook' is not available. Using default base!"), WARNING_DIALOG); return ($config->get_cfg_value("uidNumberBase")); } -- 2.30.2