From: cajus Date: Fri, 1 Aug 2008 14:00:01 +0000 (+0000) Subject: Added proposal for ldap:// definitions X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1140cc25746f17f08c13570c1ab227225d9bd2db;p=gosa.git Added proposal for ldap:// definitions git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12100 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc b/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc index f44c60fb7..4c1380fe7 100644 --- a/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc +++ b/gosa-plugins/goto/admin/systems/services/ldap/class_goLdapServer.inc @@ -27,6 +27,16 @@ class goLdapServer extends goService{ { goService::goService($config,$dn); $this->DisplayName = _("LDAP service"); + + /* Suggest a default value */ + if ($this->goLdapBase == ""){ + if ($this->dn == ""){ + $srv= _("fill-in-your-servers-dns-name"); + } else { + $srv= preg_replace("/^cn=([^,]+),.*$/", "$1", $this->dn); + } + $this->goLdapBase= "ldap://$srv:389/".$config->current['BASE']; + } }