← Back to team overview

touch-packages team mailing list archive

[Bug 1314859] Re: segfault in slapd when using ldapadd

 

Hello,

I can't reproduce this bug in precise.

I added an entry with slapadd:

# slapadd << eof
dn: uid=a,ou=b,dc=example,dc=com
objectClass: account
^D
Error, entries missing!
  entry 3: ou=b,dc=example,dc=com

then started slapd, then tried to add the parent entry:

# ldapadd -x -D cn=admin,dc=example,dc=com -W
Enter LDAP Password:
dn: ou=b,dc=example,dc=com
objectClass: organizationalUnit

adding new entry "ou=b,dc=example,dc=com"
ldap_add: Already exists (68)

slapd did not crash.

If you still experience this bug, can you provide more detailed steps
for reproducing this, starting from a newly installed (or dpkg-
reconfigure'd) slapd?

** Changed in: openldap (Ubuntu)
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to openldap in Ubuntu.
https://bugs.launchpad.net/bugs/1314859

Title:
  segfault in slapd when using ldapadd

Status in openldap package in Ubuntu:
  Incomplete

Bug description:
  I am using ubuntu 12.04 with slapd/ldap-utils at version
  2.4.28-1.1ubuntu4.4. When using ldapadd type command, I am getting
  segfault and slapd process crashing(killing the ldap server).

  Apr 30 23:44:44 spine2core slapd[12720]: is_entry_objectclass("", "2.16.840.1.113730.3.2.6") no objectClass attribute
  Apr 30 23:44:44 spine2core kernel: [25247.781818] slapd[12838]: segfault at 7f01e1e69710 ip 00007f01e1bc5d07 sp 00007f01d8a8f0e0 error 7 in slapd[7f01e1b41000+128000]


  This only happens on a particular scenario whereby I load up a DN
  whilst slapd is stopped using slapadd/ldif file, this DN is an orphan
  object with parent not in directory (or ldif file). Example:

  dn: uniqueidentifier=a, uid=b, ou=People, o=xyz

  
  First, we setup ou=People, o=xyz, then the ldif file has the above DN only but the parent dn: uid=b, ou=People, o=xyz does not exist in the ldif file.  So slapadd inserts this orphan object in LDAP with warning. When I try to insert the parent object dn: uid=b, ou=People, o=xyz using ldapadd, it throws the seg fault and crashes (doing the same offline again using slapadd works fine).

  Any ideas please?

  Thanks,

  Azhar

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/1314859/+subscriptions