From 30e99fe87b65ffaac7ea8a2fdacd93f0fd572e55 Mon Sep 17 00:00:00 2001 From: cajus Date: Thu, 14 Feb 2008 12:26:21 +0000 Subject: [PATCH] Added backward compatibility git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8904 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/SIPackages.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gosa-si/modules/SIPackages.pm b/gosa-si/modules/SIPackages.pm index f8c56e6bf..2dc40fffc 100644 --- a/gosa-si/modules/SIPackages.pm +++ b/gosa-si/modules/SIPackages.pm @@ -730,6 +730,13 @@ sub new_ldap_config { @servers= sort (@servers); foreach $server (@servers){ + # Conversation for backward compatibility + if ($server !=~ /^ldap[^:]+:\/\// ) { + if ($server =~ /^([^:]+):(.*)$/ ) { + $server= "1:dummy:ldap://$1/$2"; + } + } + $base= $server; $server =~ s%^[^:]+:[^:]+:(ldap.*://[^/]+)/.*$%$1%; $base =~ s%^[^:]+:[^:]+:ldap.*://[^/]+/(.*)$%$1%; -- 2.30.2