[ ispman-Bugs-1715544 ] ispman.ldap2apache doesnt work

"SourceForge.net" <[email protected]> Wed, 09 May 2007 01:57:22 -0700
Newsgroups gmane.comp.isp.ispman.devel
Message-ID <[email protected]>
Bugs item #1715544, was opened at 2007-05-09 08:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108390&aid=1715544&group_id=8390

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: backend
Group: None
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Andreas John (derjohn)
Assigned to: Joerg Delker (jdelker)
Summary: ispman.ldap2apache doesnt work

Initial Comment:
Thanks to Hans we already have a patch. There were some () missing around the $filter.

rgds,
j.


--- ispman.ldap2apache.v1.12    2007-05-08 14:11:51.000000000 +0200
+++ ispman.ldap2apache  2007-05-08 14:16:04.000000000 +0200
@@ -55,7 +55,7 @@
       @hostnames = $ispman->as_array( $hostInfo->{'ispmanHostAlias'} );
    }
    push @hostnames, $hostname;
-    $filter = "(&(objectclass=ispmanVirtualHost)(|".join("", map { "(webHost=$_)" } @hostnames)."))";
+    $filter = "&(objectclass=ispmanVirtualHost)(|".join("", map { "(webHost=$_)" } @hostnames).")";
}

print "Using $filter\n" if $ispman->{'Config'}{'debug'};
@@ -81,4 +81,3 @@
__END__

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108390&aid=1715544&group_id=8390

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/