> Could you please provide more information on how to reproduce this bug?
To make it clear, this error report is about the vague error message, it is not about whatever caused it, meaning that there is no need for you to reproduce my error. The way you analyse this is to start by searching the source code for "Error looking up public keys", which leads you to this line: https://github.com/SSSD/sssd/blob/36f2fe8f6306df3b5495f34110280d0d6133d7b0/src/sss_client/ssh/sss_ssh_authorizedkeys.c#L97 The line previous to this line logs an error at debug level, but the debug functionality is secret and is not meant to be known about or used by end users as per https://pagure.io/SSSD/sssd/issue/3223#comment-448044 so this doesn't count. For a start, replace "Error looking up public keys" with "Error looking up public keys: what strerror() said". Then, you go one step up. The sss_ssh_get_ent() function returns a result code, is this detailed enough? Let's look. First off, completely undocumented API: https://github.com/SSSD/sssd/blob/13c8450788a429fa49ba532b40ebfd7f3a4132e4/src/sss_client/ssh/sss_ssh_client.h#L33 So we dig further, what is errno_t. Looks like an undocumented externally supplied int: https://github.com/SSSD/sssd/blob/13c8450788a429fa49ba532b40ebfd7f3a4132e4/src/sss_client/nss_mc.h#L31 Let's follow the trail, there is one return code that's handled where all other return codes are discarded, lets see if this leads anywhere: ERR_NON_SSSD_USER Bingo - a full detailed list of possible error codes: https://github.com/SSSD/sssd/blob/414c1115492fcc8725bf41fbe1459ca1e1a3613f/src/util/util_errors.h#L49 And a this-time-documented function to turn the error code into a string: https://github.com/SSSD/sssd/blob/414c1115492fcc8725bf41fbe1459ca1e1a3613f/src/util/util_errors.h#L188 So, amending what we've said above, we should actually do this: For a start, replace "Error looking up public keys" with "Error looking up public keys: what sss_strerror() said". Then, fix this line for the secret audience who are allowed to know about the debug command line option: https://github.com/SSSD/sssd/blob/36f2fe8f6306df3b5495f34110280d0d6133d7b0/src/sss_client/ssh/sss_ssh_authorizedkeys.c#L95 This should get you started. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1867688 Title: Vague error message: sss_ssh_authorizedkeys: Error looking up public keys To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1867688/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
