[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: bdb encryption

ghenry@OpenLDAP.org wrote:
----- "Howard Chu"<hyc@symas.com> wrote:
How did you create the file? If you simply created it as a plain text
then it probably has a trailing NewLine as well. In which case, the
NewLine is
part of the password...

Checked this and recreated vi vim and just:

  echo testing>  cryptfile.

All results in the same invalid password

Of course, because you're still writing the trailing NewLine. Learn something about Unix files and commands... The behavior here is exactly the same as with the ldapsearch -y option. Use e.g. "echo -n" (depending on your shell / echo implementation)...

  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/