Project

General

Profile

Actions

Bug #16270

closed

smbd.err unable to determine name for UID ...

Added by Toomas Soome 12 days ago. Updated 7 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cifs - CIFS server and client
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:
racktop:BSR-14826

Description

On a system configured for IDMU but without LDAP in nsswitch.conf we frequently see:
smbd.err unable to determine name for UID nnn
basically after every successful logon.
These are valid accounts. You can ask idmap for the SID for any of these UIDs and then get the name for that SID, eg:
idmap show uid:nnn used
smbadm lookup <SID-from-idmap-show>
The autohome share support looks for the name for this UID but it's normal that there might not be a name for the UID. Let's make this message LOG_DEBUG to reduce this noise.

Testing:

For testing, all that's needed is to logon with an AD user having a "UidNumber" that can't be resolved via /etc/passwd or whatever. That comes from AD, on a system joined to domain and configured to use IDMU.
See idmap config/directory_based_mapping

Verified that the test method produces this log message, and that it goes away after the fix.

Actions #1

Updated by Electric Monk 12 days ago

  • Gerrit CR set to 3286
Actions #2

Updated by Toomas Soome 9 days ago

  • Status changed from In Progress to Pending RTI
Actions #3

Updated by Electric Monk 7 days ago

  • Status changed from Pending RTI to Closed
  • % Done changed from 90 to 100

git commit 297b0dea3578abea9526441154d0dfa29697c891

commit  297b0dea3578abea9526441154d0dfa29697c891
Author: Juno Park <jpark@racktopsystems.com>
Date:   2024-02-15T09:03:38.000Z

    16270 smbd.err unable to determine name for UID ...
    Reviewed by: Jerry Jelinek <gjelinek@racktopsystems.com>
    Reviewed by: Gordon Ross <gwr@racktopsystems.com>
    Reviewed by: Sam Zaydel <szaydel@racktopsystems.com>
    Reviewed by: Andy Fiddaman <illumos@fiddaman.net>
    Reviewed by: Bill Sommerfeld <sommerfeld@hamachi.org>
    Approved by: Robert Mustacchi <rm@fingolfin.org>

Actions #4

Updated by Gordon Ross 7 days ago

  • Description updated (diff)
Actions #5

Updated by Gordon Ross 7 days ago

  • Description updated (diff)
Actions

Also available in: Atom PDF