Your code doesn't do proper error checking (you'll want to read the Net::LDAP documentation). You should probably also put in some print statements to show what's being returned at various places in your code. Since the example program is trying to connect to example.com, I'd guess that you're not properly connecting to your LDAP server.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Using Net::LDAP (Need help)
by roboticus
in thread Using Net::LDAP (Need help)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |