Well, we had a weird problem in some code that updates LDAP, and I wanted to be able to debug it without actually updating LDAP. You could set up a throwaway LDAP database with your schema and some test data… or override Net::LDAP.
Dummy Net::LDAP (wfu.edu) is the solution. Its only methods are “new”, “code”, “count”, and “AUTOLOAD”. Yay!