puppetmaster and ldap binding on lenny

Today I was configuring a new puppetmaster on a default lenny and ldap
I now not everyone will use ldap for it but I like it
Sins I don't allow anonymous binding to my ldap I needed to set the ldauser and ldappassword

20:12:57|root@server:~ 0 # puppetd --test
err: Could not retrieve catalog: LDAP Search failed
warning: Not using cache on failed catalog

After some debugging time I saw that puppet dit a search but dit not BIND to ldap with the given user

then the google search was easy and I manualy patched this version so I could start
puppetizen
So Luke Kanies, Let the force be with you

# Bug http://projects.reductivelabs.com/issues/show/1521
# new(Puppet[:ldapserver], Puppet[:ldapport], :ssl => ssl)
new(Puppet[:ldapserver], Puppet[:ldapport], :ssl => ssl, :user => Puppet[:ldapuser], :password => Puppet[:ldappassword] )