[Date Prev][Date Next]
(ITS#7242) new -y (Read password from file) does not work
Full_Name: Chris Paul
Version: ldapsearch 2.4.23 (Dec 7 2011 21:37:03)
OS: tried both Centos 2.6.32-220.el6.i686 and Cygwin
Submission from: (NULL) (220.127.116.11)
I really like the new -y option to read the password from a file but it doesn't
work. Also it broke the old behavior which read it from standard input if you
I have a one line password file. I used to use this successfully with a command
$ ldapsearch -x -H $TIM -s sub -b "dc=myorg, dc=org" "(uid=someuid)" uid cn <
Now this command just prompts me for the password.
And when I try -y, it seems that an 0x0a character is added to the password
string (I found this by using tcpdump to capture the packets), so that fails
with "Invalid credentials (49)".