Bug 239765

Summary: Allow mimimum schema in ds_newinst.pl
Product: [Community] 389 Reporter: Andrew Bartlett <abartlet>
Component: Install/UninstallAssignee: Nathan Kinder <nkinder>
Status: CLOSED CURRENTRELEASE QA Contact: Viktor Ashirov <vashirov>
Severity: medium Docs Contact:
Priority: low    
Version: 1.1.0betaCC: rmeggins
Target Milestone: ---Keywords: VerifiedUpstream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-07 11:51:50 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 427409    
Attachments:
Description Flags
Patch to add an option for installing partial/full schema
none
Revised patch for install_full_schema
none
cvs commit log none

Description Andrew Bartlett 2007-05-11 03:01:39 EDT
Description of problem:
The inf file supplied to setup/ds_newist.pl should allow the user to load only
the minimum schema (00core.ldif)

Version-Release number of selected component (if applicable):
1.1 CVS

How reproducible:
Every time

Steps to Reproduce:
1. provision a DS instance with ds_newinst
2. note that a very large amount of schema is loaded
3. 
  
Actual results:
Lots of schema loaded, conflicting with AD-like schema

Expected results:
Ability to say 'just the bare minimum'

Additional info:
This would simplify Samba4 setup against Fedora DS.
Comment 1 Andrew Bartlett 2007-05-21 00:13:43 EDT
Created attachment 155069 [details]
Patch to add an option for installing partial/full schema

This patch implements a new configuration option
[slapd]
install_full_schema= 1

Setting this to 0 will only install 00core.ldif
Comment 2 Andrew Bartlett 2007-05-27 19:54:18 EDT
Created attachment 155526 [details]
Revised patch for install_full_schema

This patch has been more extensivly tested, and in particular fixes an issue
with any variable = 0 (it would not be sent to the ds_newinst-bin 'server').
Comment 3 Noriko Hosoi 2007-05-29 12:57:00 EDT
Thank you for adding the logic.  Your new diff looks good to me.
Comment 4 Rich Megginson 2007-06-07 17:26:00 EDT
Created attachment 156515 [details]
cvs commit log

Fix Description: Fixed by abartlet.  Add a new configuration param to
create_instance - install_full_schema.	By default this is 1, meaning the
traditional behavior of installing all of the schema.  If set to 0, this will
only install the 00core.ldif schema file.  This also required enhancements to
ds_newinst.pl as well as a bug fix to allow passing in a 0 value.
Reviewed by: nhosoi, rmeggins