Issue 8111 - Re-ordering schema attributeTypes crashes slapd
Summary: Re-ordering schema attributeTypes crashes slapd
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-22 16:12 UTC by zach@puppetlabs.com
Modified: 2015-08-29 02:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description zach@puppetlabs.com 2015-04-22 16:12:09 UTC
Full_Name: Zach Leslie
Version: 2.4.40-1
OS: Debian Wheezy
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (192.69.65.15)


I have a custom schema that contains a handful of attributeTypes and a few
objectClasses.  If I add a new attributeType to the existing schema, and then
attempt to reorder that type, slapd crashes.  Starting the service again, slapd
seems to behave normally, and the schema looks intact as it did prior to the
attempted order modification.
Comment 1 zach@puppetlabs.com 2015-04-22 16:35:32 UTC
Below is the attempted ldif modification.


dn: cn={5}puppet,cn=schema,cn=config
changetype: modify
replace: olcAttributeTypes
olcAttributeTypes: {1}( 1.3.6.1.4.1.34380.556 NAME ('github' 'githubUsername')
    DESC 'github'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsMatc
 h   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {2}( 1.3.6.1.4.1.34380.558 NAME ('pronoun' 'preferredPronou
 n')   DESC 'prefered gender pronoun'   EQUALITY caseIgnoreMatch   SUBSTR case
 IgnoreSubstringsMatch   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {3}( 1.3.6.1.4.1.34380.560 NAME 'skills' DESC 'skills, lang
 uages, specialties'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsM
 atch   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {4}( 1.3.6.1.4.1.34380.562 NAME 'onCall' DESC 'whether they
  are oncall or not that week'   EQUALITY booleanMatch   SYNTAX 1.3.6.1.4.1.14
 66.115.121.1.7 )
olcAttributeTypes: {5}( 1.3.6.1.4.1.34380.563 NAME 'googleGroups' DESC 'email 
 groups they are in'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsM
 atch   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {6}( 1.3.6.1.4.1.34380.566 NAME 'projects' DESC 'ownership 
 of projects'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsMatch   
 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {7}( 1.3.6.1.4.1.34380.569 NAME 'interestingFact' DESC 'int
 eresting fact from first all hands'   EQUALITY caseIgnoreMatch   SUBSTR caseI
 gnoreSubstringsMatch   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {8}( 1.3.6.1.4.1.34380.570 NAME ('twitterHandle' 'twitter')
  DESC 'twitter handle'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstrin
 gsMatch   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {9}( 1.3.6.1.4.1.34380.571 NAME ('ircNickname' 'irc') DESC 
 'irc nickname'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsMatch 
   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {10}( 1.3.6.1.4.1.34380.572 NAME 'shirtSize' DESC 'shirtsiz
 e'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsMatch   SYNTAX 1.3
 .6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {11}( 1.3.6.1.4.1.34380.573 NAME 'dietaryRestrictions'   DE
 SC 'carnivore, omnivore, veg, vegan, glutenfree, soyfree, air free'   EQUALIT
 Y caseIgnoreMatch   SUBSTR caseIgnoreSubstringsMatch   SYNTAX 1.3.6.1.4.1.146
 6.115.121.1.15 )
olcAttributeTypes: {12}( 1.3.6.1.4.1.34380.567 NAME 'steamAccount'   DESC 'ste
 amaccount for games'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstrings
 Match   SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {13}( 1.3.6.1.4.1.34380.801 NAME 'bribeMeWith'   DESC 'thin
 gs I like'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsMatch   SY
 NTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {14}( 1.3.6.1.4.1.34380.802 NAME 'languages'   DESC 'what d
 o you speak'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsMatch   
 SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {15}( 1.3.6.1.4.1.34380.574 NAME 'x-kvm-access'   DESC 'kvm
  access level'   EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch   
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: {2}( 1.3.6.1.4.1.34380.557 NAME ('forge' 'forgeUsername')  
  DESC 'forge'   EQUALITY caseIgnoreMatch   SUBSTR caseIgnoreSubstringsMatch  
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
-

-- 
Zach Leslie :: Puppet Labs

Comment 2 zach@puppetlabs.com 2015-04-22 22:09:43 UTC
I should have noted that this is in a mutli master replication setup
where all databases are being replicated, including cn=config.

-- 
Zach Leslie :: Puppet Labs

Comment 3 Howard Chu 2015-04-23 05:14:59 UTC
zach@puppetlabs.com wrote:
> Below is the attempted ldif modification.
>
>
> dn: cn={5}puppet,cn=schema,cn=config
> changetype: modify
> replace: olcAttributeTypes

For completeness' sake, so we can reproduce this, what was the original 
content of this schema?

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 4 Howard Chu 2015-04-23 05:15:41 UTC
zach@puppetlabs.com wrote:
> Full_Name: Zach Leslie
> Version: 2.4.40-1
> OS: Debian Wheezy
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (192.69.65.15)
>
>
> I have a custom schema that contains a handful of attributeTypes and a few
> objectClasses.  If I add a new attributeType to the existing schema, and then
> attempt to reorder that type, slapd crashes.  Starting the service again, slapd
> seems to behave normally, and the schema looks intact as it did prior to the
> attempted order modification.

Did you get a stack trace from the crash?

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Comment 5 Ryan Tandy 2015-07-18 00:35:11 UTC
Hi Zach,

I just pushed a patch for another ITS that reminded me of this one.

Assuming you can still reproduce this, would you please try the patch 
mentioned at the end of http://www.openldap.org/its/?findid=8199 and let 
us know whether it resolves your crash?

Comment 6 zach@puppetlabs.com 2015-08-18 16:49:10 UTC
On Fri, Jul 17, 2015 at 05:35:11PM -0700, Ryan Tandy wrote:
>Hi Zach,
>
>I just pushed a patch for another ITS that reminded me of this one.
>
>Assuming you can still reproduce this, would you please try the patch 
>mentioned at the end of http://www.openldap.org/its/?findid=8199 and 
>let us know whether it resolves your crash?

I've upgraded to 2.4.41.1 from the LTB packages an no longer have the 
issue.

-- 
Zach Leslie :: Puppet Labs
Comment 7 Howard Chu 2015-08-19 16:50:51 UTC
changed notes
changed state Open to Test
moved from Incoming to Software Bugs
Comment 8 Ryan Tandy 2015-08-29 00:24:30 UTC
changed notes
changed state Test to Closed
Comment 9 OpenLDAP project 2015-08-29 02:24:37 UTC
Fixed in master
Fixed in RE25
Fixed in RE24 (2.4.42)
Comment 10 Quanah Gibson-Mount 2015-08-29 02:24:37 UTC
changed notes