From: cajus Date: Thu, 14 Feb 2008 12:26:21 +0000 (+0000) Subject: Added backward compatibility X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30e99fe87b65ffaac7ea8a2fdacd93f0fd572e55;p=gosa.git Added backward compatibility git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8904 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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%;