LDAP does not work in 3.1.1

I posted earlier about LDAP and I thought I’'d sorted by building from source with the patch to fix LDAP. However, when I try a clean 3.1.1 binary distribution, LDAP does not work when using eDirectory:

the setup fails as it never returns from adding an ldap admin user, so I added to wildfire.xml, restarted and tried to login as the ldap admin user, which I added to wilfire.xml:

2007.01.22 10:20:36 Trying to find a user’'s DN based on their username. cn: testuser, Base DN: o=uni…

2007.01.22 10:20:36 Creating a DirContext in LdapManager.getContext()…

2007.01.22 10:20:36 Created hashtable with context values, attempting to create context…

2007.01.22 10:20:36 … context created successfully, returning.

2007.01.22 10:20:36 Starting LDAP search…

2007.01.22 10:20:37 … search finished

and wildfire just hangs.

So I tried building from source with the patch but the build is full of missing jars from plugins when I use ant dist-bin

Is there anything I can do to get ldap working?

Alistair