Sure, I have added the line:
username map script = /etc/samba/usermap.ksh
to smb.conf. I have restarted winbindd, nmbd, and smbdd. The log file now shows this (I tested with two accounts, the second entry is for the same account I tried in the initial post):
[2025/09/04 09:51:22.965978, 0] ../../source3/auth/token_util.c:586(add_local_groups)
add_local_groups: SID S-1-5-21-1141342763-1778295836-3201674781-6715 -> getpwuid(300005) failed, is nsswitch configured?
[2025/09/04 09:53:07.950167, 0] ../../source3/auth/token_util.c:586(add_local_groups)
add_local_groups: SID S-1-5-21-1141342763-1778295836-3201674781-399852 -> getpwuid(300000) failed, is nsswitch configured?
When I use debug level 5, I get this right before:
[2025/09/04 10:00:19.071564, 5] ../../source3/auth/auth_generic.c:131(generate_pac_session_info)
check_ntlm_password: PAM Account for user [useraccount] succeeded
[2025/09/04 10:00:19.071579, 3] ../../source3/auth/auth_generic.c:134(generate_pac_session_info)
Kerberos ticket principal name is [useraccount@DOMAIN.FULL.NAME]
[2025/09/04 10:00:19.072667, 0] ../../source3/auth/token_util.c:586(add_local_groups)
add_local_groups: SID S-1-5-21-1141342763-1778295836-3201674781-399852 -> getpwuid(300000) failed, is nsswitch configured?
[2025/09/04 10:00:19.072839, 3] ../../source3/smbd/smb2_server.c:4054(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_LOGON_FAILURE] || at ../../source3/smbd/smb2_sesssetup.c:148
The contents of usermap.ksh are:
#!/bin/ksh
ACCOUNTNAME="$1"
DOMAINNAME="DOMAIN"
case "${ACCOUNTNAME}" in
${DOMAINNAME}\\root)
# skip
;;
${DOMAINNAME}\\*)
printf "%s\n" "${ACCOUNTNAME}" | sed -e 's/[^\\]*\\//'
;;
esac
exit 0
------------------------------
Henry Szablicki
------------------------------
Original Message:
Sent: Thu September 04, 2025 09:10 AM
From: Ayappan P
Subject: Toolbox Provided SAMBA not working after update
We will check on this.,
Btw, the workaround worked for some users. Can you re-check the usermap script with proper domain added in it ?
------------------------------
Ayappan P
------------------------------