[Samba] samba crashes windows explorer (while trying to view file permissions)

Michael Tokarev mjt at tls.msk.ru
Sat Nov 19 11:49:19 UTC 2022


19.11.2022 14:36, Michael Tokarev via samba пишет:
> Unable to convert second SID (S-1-5-21-540662649-332824406-1706519170-513) in user token to a GID. Conversion was returned as type 0, full token:

I found this:

https://www.spinics.net/lists/samba/msg174381.html

which shows an issue with idmap.ldb.

But in my case this is a fresh domain, created with nothing in /var/lib/samba/,
so I can't restore idmap.ldb from a backup, - because this file has just been
created (and no, I didn't try to replicate it to another DC yet, to fix the
uid/gid mismatches there as has been mentioned in another thread).

 From tdbdump /var/lib/samba/private/idmap.ldb:

{
key(50) = "DN=CN=S-1-5-21-540662649-332824406-1706519170-513\00"
data(231) = 
"g\19\01&\05\00\00\00CN=S-1-5-21-540662649-332824406-1706519170-513\00cn\00\01\00\00\00+\00\00\00S-1-5-21-540662649-332824406-1706519170-513\00objectClass\00\01\00\00\00\06\00\00\00sidMap\00objectSid\00\01\00\00\00\1C\00\00\00\01\05\00\00\00\00\00\05\15\00\00\00y\DB9 
V\7F\D6\13\82j\B7e\01\02\00\00\00type\00\01\00\00\00\0B\00\00\00ID_TYPE_GID\00xidNumber\00\01\00\00\00\03\00\00\00100\00"
}

- which - I think - should match, no?

Thanks,

/mjt



More information about the samba mailing list