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

Re: Problem with long clear-text passwords (ITS#539)

At 04:11 PM 5/19/00 GMT, peter.kohler@netcetera.ch wrote:
>Full_Name: Peter Kohler
>Version: 1.2.10
>OS: Solaris 2.6
>Submission from: (NULL) (
>ldapadd (and probably the other ldap tools too) fail to authenticate with the -W
>option (prompting for bind passwd) if the specified password is clear-text and
>longer than 8 characters. Specifying the password on the commandline using
>the -w parameter works, however.

This is a limit of getpass(3) on some platforms.  You can
try adding to include/ac/unistd.h (below the inclusion
of system headers), something like:

#define getpass(p)	getpassphrase(p)

I've committed code to -devel to do this automatically if
getpassphrase() is detected.  I'll try to back port this into
1.2 before the next release.