#3273 wbcLookupSid() fails in pdomain is NULL
Closed: Fixed None Opened 3 years ago by sbose.

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

Created attachment 1234637
output of 'net -d 10 ads user info <user_name>'

Description: 'net ads user info <user_name>' fails even after successfully
joint AD server.

Version-Release number of selected component (if applicable):
sssd-1.14.0-43.el7_3.4.x86_64.
sssd-libwbclient-1.14.0-43.el7.x86_64.
Active Directory 2012r2.

Steps to Reproduce:
1. Obtain and cache Kerberos ticket-granting ticket by Administrator.
2. Join to AD using net ads command.
3. Start sssd service.
4. Add the user using 'net ads user add <user_name>'.
5. Check the user information using 'net ads user info <user_name>'.

Actual results:
segfault at 0 ip 00007f5e6bc29c6c sp 00007ffd18c15e60 error 6 in
libwbclient.so.0.12.0

Expected results:
Display user information without any error.

Additional info:
# net ads info
LDAP server: 10.65.210.46
LDAP server name: adserver.example.com
Realm: EXAMPLE.COM
Bind Path: dc=EXAMPLE,dc=COM
LDAP port: 389
Server time: Thu, 22 Dec 2016 10:52:01 IST
KDC server: 10.65.210.46
Server time offset: 7
Last machine account password change: Thu, 22 Dec 2016 10:46:38 IST

# cat core_backtrace
{   "signal": 11
,   "executable": "/usr/bin/net"
,   "stacktrace":
      [ {   "crash_thread": true
        ,   "frames":
              [ {   "address": 139931287805036
                ,   "build_id": "9f8088571d1e8c9ebd688f923d8f16752e2a878b"
                ,   "build_id_offset": 19564
                ,   "function_name": "wbcLookupSid"
                ,   "file_name":
"/usr/lib64/sssd/modules/libwbclient.so.0.12.0"
                }
              , {   "address": 139931391143044
                ,   "build_id": "0f40da901adb3e8377c84c3cf415e4ee96333325"
                ,   "build_id_offset": 269444
                ,   "function_name": "ads_user_info"
                ,   "file_name": "/usr/bin/net"
                }
              , {   "address": 139931391141565
                ,   "build_id": "0f40da901adb3e8377c84c3cf415e4ee96333325"
                ,   "build_id_offset": 267965
                ,   "function_name": "net_ads_user"
                ,   "file_name": "/usr/bin/net"
                }
              , {   "address": 139931391159876
                ,   "build_id": "0f40da901adb3e8377c84c3cf415e4ee96333325"
                ,   "build_id_offset": 286276
                ,   "function_name": "net_ads"
                ,   "file_name": "/usr/bin/net"
                }
              , {   "address": 139931391024704
                ,   "build_id": "0f40da901adb3e8377c84c3cf415e4ee96333325"
                ,   "build_id_offset": 151104
                ,   "function_name": "main"
                ,   "file_name": "/usr/bin/net"
                } ]
        } ]
}

Fields changed

blockedby: =>
blocking: =>
changelog: =>
coverity: =>
design: =>
design_review: => 0
feature_milestone: =>
fedora_test_page: =>
mark: no => 0
owner: somebody => sbose
patch: => 1
review: True => 0
selected: =>
status: new => assigned
testsupdated: => 0

Fields changed

milestone: NEEDS_TRIAGE => SSSD 1.13.5

master:

sssd-1-14:

sssd-1-13:

resolution: => fixed
status: assigned => closed

Metadata Update from @sbose:
- Issue assigned to sbose
- Issue set to the milestone: SSSD 1.13.5

3 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/4306

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.

Metadata