my $cmd="$ldapsearch " . "-h $ldapserver " . " -b dc=xxx,dc=com " . qq{ -D '$userdn' } . qq{ -w '$password' } . "employeenumber=$id dn";
One thing troubles me (besides not knowing what sort of failure you are getting) is that you are not using Net::LDAP to access the LDAP store.
It is very possible that one or more of the "special characters" are being interpreted by the shell and causing unexpected behavior.
We've implemented this sort of thing at one of my clients using Net::LDAP and never had any sort of issue using all sorts of special characters that would cause a shell to exhibit "odd" behaviors. My own password being a classic example. I tend to consider the entire keyboard fair game. :-)
In reply to Re: LDAP Authentication
by blue_cowdawg
in thread LDAP Authentication
by bar10der
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |