#2537 sssd-libwbclient conflicts with Samba's and causes crash in wbinfo
Closed: Fixed None Opened 6 years ago by mkosek.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1175705

+++ This bug was initially created as a clone of Bug #1175511 +++

Description of problem:
wbinfo -K <user> causes a segfault

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. In cases where kerberos auth fails, do:
2. wbinfo -K <user>

Actual results:
Enter vverma7's password:
plaintext kerberos password authentication for [vverma7] failed (requesting
cctype: FILE)
Segmentation fault (core dumped)

Expected results:

Additional info:

(gdb) r
Starting program: /usr/bin/wbinfo -K vverma7
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Enter vverma7's password:
plaintext kerberos password authentication for [vverma7] failed (requesting
cctype: FILE)

Program received signal SIGSEGV, Segmentation fault.
wbinfo_auth_krb5 (username=0x5555557625e0 "vverma7", cctype=0x55555555e588
"FILE", flags=28690)
    at ../nsswitch/wbinfo.c:1572
1572                    d_fprintf(stderr,
Missing separate debuginfos, use: debuginfo-install
bzip2-libs-1.0.6-14.fc21.x86_64 libtdb-1.3.1-1.fc21.x86_64
(gdb) bt
#0  wbinfo_auth_krb5 (username=0x5555557625e0 "vverma7", cctype=0x55555555e588
"FILE", flags=28690)
    at ../nsswitch/wbinfo.c:1572
#1  0x00005555555584bb in main (argc=<optimized out>, argv=<optimized out>,
envp=<optimized out>)
    at ../nsswitch/wbinfo.c:2557
(gdb) p *error
Cannot access memory at address 0x1
(gdb) q

--- Additional comment from David Woodhouse on 2014-12-17 18:56:21 EST ---

Oh, this system has sssd-libwbclient installed, and it was using that. Removing
it makes it use the real libwbclient which works.

--- Additional comment from David Woodhouse on 2014-12-17 19:04:35 EST ---

If you're going to install a higher-priority 'alternative' for Samba's
libraries, please make sure they *work*.

Fields changed

blockedby: =>
blocking: =>
changelog: =>
coverity: =>
design: =>
design_review: => 0
feature_milestone: =>
fedora_test_page: =>
mark: no => 0
review: True => 0
selected: =>
testsupdated: => 0

Fields changed

cc: => dwmw2@infradead.org

I move this ticket to 1.12.3 directly, because we already agreed to fix this issue as soon as possible.

milestone: NEEDS_TRIAGE => SSSD 1.12.3
patch: 0 => 1

master: 082e13d

resolution: => fixed
status: new => closed

Now the crash should be fixed. But wbinfo still isn't going to work, is it? There is more to be done here.

Metadata Update from @mkosek:
- Issue set to the milestone: SSSD 1.12.3

4 years ago

SSSD is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in SSSD's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/SSSD/sssd/issues/3579

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Login to comment on this ticket.