summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e80417f)
raw | patch | inline | side by side (parent: e80417f)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Mar 2008 16:13:26 +0000 (16:13 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Mar 2008 16:13:26 +0000 (16:13 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9902 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc b/gosa-plugins/goto/admin/systems/goto/class_workstationStartup.inc
index 0b12ac8e898d69eba6195bfa8f641fb780949189..0e0fcb87af66863a77691756f973c9de2b9ec7ed 100644 (file)
}
}
- /* Add Entries
- */
+ /* Add Entries */
foreach($this->gotoLdapServers as $key => $server){
+ /* Announce missing entries */
if(!in_array($server,$this->gotoLdapServerList)){
$server = $server." <font style='color:red'>(missing)</font>";
}
+ /* Convert old style entry */
+ if (!preg_match('%:ldap://%', $server)){
+ $server= "ldap://".preg_replace('/^([^:]+):/', '\1/', $server);
+
+ /* Beautify new style entries */
+ } else {
+ $server= preg_replace("/^[^:]+:/", "", $server);
+ }
+
$SelectBoxLdapServer->AddEntry(
array(array("string" => $server),
array("string" =>
$list = array();
foreach($this->gotoLdapServerList as $key => $entry){
if(!in_array($entry,$this->gotoLdapServers)){
+
+ /* Convert old style entry */
+ if (!preg_match('%:ldap://%', $entry)){
+ $entry= "ldap://".preg_replace('/^([^:]+):/', '\1/', $entry);
+
+ /* Beautify new style entries */
+ } else {
+ $entry= preg_replace("/^[^:]+:/", "", $entry);
+ }
+
$list[$key] = $entry;
}
}