[Date Prev][Date Next]
(ITS#4643) please don't use hpux getpass()
Full_Name: David Everly
OS: HP-UX B.11.23 ia64
Submission from: (NULL) (18.104.22.168)
On HP-UX B.11.23 ia64, openldap 2.3.24 decides to use getpass(). This causes
problems, because our passwords are longer than 8 characters. Thus, users with
passwords longer than 8 cannot use the password prompt.
I've removed the check for getpass() in the configure script, forcing openldap
its internal implementation, and this seems to work for us (for instance, when
using 'ldapsearch -W').
Of course, you will probably want to allow a better way of handling this than
what I've come up with.
Here is a quote from the hpux getpass() man:
getpass() reads up to a newline or EOF from the file /dev/tty, after
prompting on the standard error output with the null-terminated string
prompt and disabling echoing. A pointer is returned to a null-
terminated string of at most 8 characters.