I'm happy to see so many taking part in the discussion.
I wish I had the knowledge to help with the code but, alas...
I'm a mere admin/nerd not coder/nerd. (nerdadd? nerdcod?
It would be great if someone who knows ldap and can code could help you guys.
Keep the faith. Some1 will show up. I'm sure.