Bug 66617 - net/samba-devel (Samba 3.0.4) Port - group_mapping.tdb deleted at reboot
Summary: net/samba-devel (Samba 3.0.4) Port - group_mapping.tdb deleted at reboot
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-13 19:30 UTC by Holger Kunst
Modified: 2004-05-18 15:53 UTC (History)
0 users

See Also:


Attachments
samba-devel.diff (4.36 KB, patch)
2004-05-17 23:46 UTC, Timur I. Bakeyev
no flags Details | Diff
samba-libsmbclient.diff (472 bytes, patch)
2004-05-17 23:46 UTC, Timur I. Bakeyev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Kunst 2004-05-13 19:30:27 UTC
Samba 3.0.4 stores its Windows Domain groups to UNIX group mappings in the file group_mapping.tdb. The net/samba-devel port configures Samba so that the tdb files are stored in /var/run. Therefore the data is deleted at the next reboot. The tested configuration does not use winbindd.

Fix: 

configure samba to store the *.tdb files in a location which survives a reboot
How-To-Repeat: net groupmap modify sid=S-ACTUAL-SID-HERE-512 unixgroup=90
net groupmap list - shows mapping
reboot
net groupmap list - does not show mapping
Comment 1 Timur I. Bakeyev 2004-05-17 23:46:15 UTC
Here is the patch, that fixes this problem - it putes, all the files into /var/db/samba.

Hope, it's the final point in the trip of lockdir around the file system :)

Also, these patch removes dependency of libsmbclient from kerberos and ldap.

iconv autodetection is back :)

And there is a small patch from Konstantin Reznichenko <kot@premierbank.dp.ua> tha fixes
coredump of smbd when user add script is invoked.

With regards,
Timur.
Comment 2 Michael Nottebrock freebsd_committer freebsd_triage 2004-05-18 15:53:16 UTC
State Changed
From-To: open->closed

Committed, thanks!