Closed Bug 296139 Opened 19 years ago Closed 19 years ago

piping password to ldap CLUs on HP-UX

Categories

(Directory :: LDAP C SDK, defect)

Other
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ulf, Assigned: richm)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050518 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050518 Firefox/1.0.4

When piping a password to the ldap command-line utilities, the tcgetattr() call
I added for bug #281140 fails with ENOTTY when it tries to retrieve the terminal
settings for the stdin file descriptor, because it's not a terminal at that point.

Reproducible: Always

Steps to Reproduce:
1. echo "secret" | ldapsearch -D "cn=testguy,dc=example,dc=com" -s base -b ""
"objectclass=*"


Actual Results:  
tcgetattr: Not a typewriter

Expected Results:  
LDAP result
Assignee: mcs → richm
Comment on attachment 184968 [details] [diff] [review]
Change to not manipulate terminal if stdin is not a tty

The patch looks good to me.  I should've thought of this problem earlier....
Attachment #184968 - Flags: review+
Checking in common.c;
/cvsroot/mozilla/directory/c-sdk/ldap/clients/tools/common.c,v  <--  common.c
new revision: 5.17; previous revision: 5.16
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: