From 4e389a0f049c12ddc8448035e8e5daa15ddd155b Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 27 Feb 2008 14:40:43 +0000 Subject: [PATCH] Updated for backwards compatibilty - part II git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9176 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/SIPackages.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gosa-si/modules/SIPackages.pm b/gosa-si/modules/SIPackages.pm index d04c2e527..c0df99640 100644 --- a/gosa-si/modules/SIPackages.pm +++ b/gosa-si/modules/SIPackages.pm @@ -749,9 +749,12 @@ sub new_ldap_config { foreach $server (@servers){ # Conversation for backward compatibility if (not $server =~ /^\d+:[^:]+:ldap[^:]*:\/\// ) { - if ($server =~ /^([^:]+):(.*)$/ ) { + if ($server =~ /^([^:]+):([^:]+)$/ ) { $server= "1:dummy:ldap://$1/$2"; } + if ($server =~ /^(\d+):([^:]+):(.*)$/ ) { + $server= "$1:dummy:ldap://$2/$3"; + } } $base= $server; -- 2.30.2