Bug 9050 - samba daemon segfaults after loading automount schema
Summary: samba daemon segfaults after loading automount schema
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.0 beta3
Hardware: x86 Linux
: P1 critical (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: samba4-qa@samba.org
URL: http://www.cbe.cornell.edu/~smt/Autom...
Keywords:
Depends on:
Blocks: 8622
  Show dependency treegraph
 
Reported: 2012-07-18 18:50 UTC by Steve Thompson
Modified: 2012-11-16 01:52 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Thompson 2012-07-18 18:50:37 UTC
Automount schema (see URL) are loaded into Samba4 database with:

ldbadd -H private/sam.ldb.d/CN=SCHEMA,CN=CONFIGURATION, \
                DC=DOMAIN,DC=TEST,DC=CORNELL,DC=EDU.ldb Automount_template.txt

No automount map entries are created. Samba daemon now segfaults on starting. A -d 10 startup does not reveal anything interesting.
Comment 1 Andrew Bartlett 2012-11-14 21:34:30 UTC
Does this still happen on Samba 4.0 rc5?
Comment 2 Steve Thompson 2012-11-15 19:48:49 UTC
Unfortunately, same problem. Schema creation works without error, but the samba daemon fails to start afterwards.
Comment 3 Andrew Bartlett 2012-11-15 21:32:01 UTC
We may have to release Samba 4.0 without a fix for this, but I'm nominating for a blocker.

Can you get us the backtrace from the segfault?
Comment 4 Andrew Bartlett 2012-11-16 01:52:41 UTC
Yikes, I just realised what's wrong here.  You can't do that - manually modifying the backend database.   You must make your changes to sam.ldb or via LDAP, never the databases under sam.ldb.d/

As such, I'm marking invalid.