I'm not sure how that works with my script
I have a following script and password with in the variable admpwd. Instead of using the local variable, I dont know but may be put the password in a file and encrypt that file and use that file for the password...was something like that but again that did work for me..so checking for the other options
Quote:
#!/bin/bash
set -x
# Variables
server=111.111.111.11
userid=cn=xxxx,ou=xxxx,o=xxxx
admpwd=@@@@@@
testresult=`ldapsearch -x -h $server -LLL -d ou=xxxx,o=xxxxx-D "$userid" -w "$admpwd" "(cn=xxxx)" sn`
|