I am by no means an LDAP expert, but I think you should be able to just modify it until it works.
I ran a diff between your posted code and the code in the wiki and the only difference is the domain name... so I really have no idea what the problem is there
