Code

Fixed backward compatiblilty code
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Feb 2008 15:31:24 +0000 (15:31 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Feb 2008 15:31:24 +0000 (15:31 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9194 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index c0df9964092dbf3f2e28fab14fcc377733d287e6..1859b3003d6ad5883a86d8de5bc83c66d6b6b1fe 100644 (file)
@@ -751,8 +751,7 @@ sub new_ldap_config {
                 if (not $server =~ /^\d+:[^:]+:ldap[^:]*:\/\// ) {
                     if ($server =~ /^([^:]+):([^:]+)$/ ) {
                       $server= "1:dummy:ldap://$1/$2";
-                    }
-                    if ($server =~ /^(\d+):([^:]+):(.*)$/ ) {
+                    } elsif ($server =~ /^(\d+):([^:]+):(.*)$/ ) {
                       $server= "$1:dummy:ldap://$2/$3";
                     }
                 }