Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1142191 - realm command crashes when no input password
realm command crashes when no input password
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: realmd (Show other bugs)
7.1
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Stef Walter
Patrik Kis
:
Depends On: 1142190
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-16 06:26 EDT by Stef Walter
Modified: 2015-11-18 22:43 EST (History)
6 users (show)

See Also:
Fixed In Version: realmd-0.16.0-1.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1142190
Environment:
Last Closed: 2015-11-18 22:43:32 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2184 normal SHIPPED_LIVE Moderate: realmd security, bug fix, and enhancement update 2015-11-19 02:51:28 EST

  None (edit)
Description Stef Walter 2014-09-16 06:26:53 EDT
+++ This bug was initially created as a clone of Bug #1142190 +++

(gdb) bt
#0  0x00007f2887015679 in prompt_stdin (
    prompt=0x7f2888ff1e90 "Password for admin: ") at tools/realm-client.c:797
#1  build_password_credential (error=0x7fffac434ba0, 
    credential_owner=0x7f2889009861 "administrator", 
    user_name=0x7f2889009828 "admin") at tools/realm-client.c:833
#2  realm_client_build_principal_creds (self=self@entry=0x7f2888fed1d0, 
    membership=membership@entry=0x7f2888ffb580, supported=<optimized out>, 
    user_name=0x7f2889009828 "admin", user_name@entry=0x0, 
    error=error@entry=0x7fffac434ca0) at tools/realm-client.c:897
#3  0x00007f2887016c0c in perform_user_join (client=0x7f2888fed1d0, 
    membership=0x7f2888ffb580, user_name=0x0, options=0x7f2889000390)
    at tools/realm-join.c:153
#4  0x00007f28870172a7 in perform_join (args=<optimized out>, 
    string=<optimized out>, client=<optimized out>) at tools/realm-join.c:234
#5  realm_join (client=0x7f2888fed1d0, argc=2, argv=0x7fffac435088)
    at tools/realm-join.c:301
#6  0x00007f28870134c2 in main (argc=2, argv=0x7fffac435088)
    at tools/realm.c:259
(gdb) p password
$1 = (gchar *) 0x0
(gdb) l
792			password = NULL;
793		}
794	
795		g_printf ("\n");
796	
797		len = strlen (password);
798		if (len > 0 && password[len - 1] == '\n')
799			password[len - 1] = '\0';
800	
801		return password;

realmd-0.15.1-4.fc21.x86_64
Comment 2 Stef Walter 2015-04-14 05:58:06 EDT
Patched upstream.
Comment 5 errata-xmlrpc 2015-11-18 22:43:32 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-2184.html

Note You need to log in before you can comment on or make changes to this bug.