Hi Dan,
Well that's embarrassing. I added the '-x' option and now the script works from both the command line and from within my tomcat webapp. Very weird. There must have been some recent update to Java that broke my code? It has worked for the last couple of years without the '-x' option. Anyways it's working now.
It's odd that it works as tomcat user from command line without the '-x' but requires the '-x' when run from a webapp.
Thanks, Scott
On Jan 29, 2013, at 2:19 PM, Dan White wrote:
On 01/29/13 14:08 -0800, Scott Classen wrote:
Hello,
I have a script which checks for the existence of an email address in my LDAP directory.
the relevant line is:
ldapsearch -D "uid=nss,dc=bah,dc=com" -w mypassword -b "ou=People,dc=blah,dc=com" uid=bobthebuilder mail
You must include a '-x' option to indicate your desire to perform a non-sasl bind. See the ldapsearch manpage.
-- Dan White