Code

Added backward compatibility
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Feb 2008 12:26:21 +0000 (12:26 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Feb 2008 12:26:21 +0000 (12:26 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8904 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index f8c56e6bf88b4517a087db15677ec31ee466807b..2dc40fffcda9cd991d534338e31ae4afe8e65098 100644 (file)
@@ -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%;