[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldapsearch with -y option
- To: openldap-technical@openldap.org
- Subject: Re: ldapsearch with -y option
- From: Guillaume Rousse <guillomovitch@gmail.com>
- Date: Tue, 02 Oct 2012 09:08:59 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=aqoKGGtrknpKSIRoMExi7E6/ypmFJ4ooPazFpp6uyqM=; b=MIle8apx7V95xeAFSDk7C0p5sny2LNzb9s0zQ1eIbQbtCAMr46JO4+a4gYwsVPDe/R QvnVl04Kl4rTrjXqG0cfVZhYwAb8c72LNqJRu+bb/hBayO8O1fVK0htbSzhQKjFQ8XKm kZcZSe1Ys3VvvChSCo6Hkh5zjkNELswKGuPfzmZvx7pQ975OOSMh1jZfGp3bxMjtWc9w n1te8ZrBHi8lYwuoffRbMUDIvjp5osIXb7INztYgk/yB/AvfWafBB4tMPUIhbnLQI3O5 icJ4/kZpUUm+PNUQF14K7l976x6dsHu9RShabHqxD1/IEaeHGAzMFPKVYr5S3lJZ1iiv MkBQ==
- In-reply-to: <506A8C6A.7030808@um.es>
- References: <506A8C6A.7030808@um.es>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120909 Thunderbird/15.0.1
Le 02/10/2012 08:40, Angel L. Mateo a écrit :
Hello,
Maybe it's a silly question, but I'm going crazy and I don't found
the solution. I want to use the -y option in a ldapsearch command, so I
have write my password in a file (plain text file with the password in
plain text), then I run the
ldapsearch -y <mypasswordfile> <other options>
and I get an invalid credential error. I have checked several times
that the password is correct. I have debuged the request with wireshark
and I have checked that the only difference in the bind request is that
-y option is adding a final 0x0a char to the password.
Any idea?
0x0a being the LF character, I suspect you just have to ensure there is
none in your file.
PS: if this could help, I'm using ubuntu 12.04 and I have created the
password file with vi (I have also tried creating it with gedit and with
echo "..." > <file>)
try 'echo -n "..." > <file>" instead.
--
BOFH excuse #140:
LBNC (luser brain not connected)