|Main Archive Page > Month Archives > samba-users archives|
[mailto:email@example.com] On Behalf Of Liutauras Adomaitis
Sent: Tuesday, May 04, 2010 1:13 PM
Subject: [Samba] how to clear winbind cache
I'd like to know how to clear winbind cache. The problem is that we have
decided to change uid and gid mapping range, but changing smb.conf
accordingly didn't help. We use ldap as backend. After deleting all
entries in ldap nothing changed. If we disable winbindd caching with -n
switch we receive desired effect - users get mapped to new uids and
Restarting winbindd without -n reverts everything back - users are
old id's. Stoping winbind, removing winbind_cache.tdb file and starting
winbind doesn't solve the issue.
Whenever I want a clean start I nuke the entire /var/lib/samba directory
and restart samba, and let samba repopulate everything automatically.
This was after many hours of scouring through the .tdb documentation
which is outdated within a couple of months of being published, and just
deciding to be inelegant about it. You may just need to remove all
winbindd* files (like winbindd_idmap.tdb).
Make a backup beforehand of course.
-- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba