'samba - check_account: Failed to convert SID S-1-5-21-1474423456-1456789349-1731688626-1665484 to a UID ([INET\jean])

My samba server was working fine until last week. I did a search all over the internet and tried the below and still no go.

My smb.conf:

    [global]
    
       workgroup = INET
       server string = File on-Line
    
       security = ADS
       passdb backend = tdbsam
    
       log level = 3
       realm = inet.xyz.com
       encrypt passwords = yes
       unix extensions = no
       wins server = 10.X.X.X 10.X.X.X
       netbios name = sharefiles
       template shell = /bin/bash
       strict locking = no
       min protocol = NT1
       max protocol = SMB3_11
       server signing = mandatory
       client signing = mandatory

# I added the below after some Google search
   idmap config INET : backend = rid 
   idmap config INET : base_rid = 0  
   idmap config INET : range = 10000-20000 

================================================

On my windows machine - I do a //sharefiles

It asks me for my login and my login is not accepted.

In /var/log/messages - I get this error:

../../source3/auth/auth_util.c:1889(check_account)
Feb 15 16:31:55 sambaserver smbd[9354]:  check_account: Failed to convert SID S-1-5-21-1474414563-1125766349-1731688626-161484 to a UID (dom_user[INET\jean])
Feb 15 16:31:55 sambaserver smbd[9356]: [2022/02/15 16:31:55.498012,  0] ../../source3/auth/auth_util.c:1889(check_account)
Feb 15 16:31:55 sambaserver smbd[9356]:  check_account: Failed to convert SID S-1-5-21-1474414563-1125766349-1731688626-161484 to a UID (dom_user[INET\jean])

**SAMBA version:**
Samba version 4.10.16

Anyone seen this before? Thank you in advance!



Solution 1:[1]

Your range is too small, 161484 is larger than 20000, add a couple of zeros to 20000. You also need another line:

idmap config * : range = 3000-7999

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rowland Penny