From: cajus Date: Wed, 27 Feb 2008 14:40:43 +0000 (+0000) Subject: Updated for backwards compatibilty - part II X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e389a0f049c12ddc8448035e8e5daa15ddd155b;p=gosa.git Updated for backwards compatibilty - part II git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9176 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;