[Pkg-openldap-devel] Bug#599235: slapcat fails to load rootDSE

Ryan Tandy ryan at nardis.ca
Sun Jul 13 20:56:40 UTC 2014


retitle 599235 slapcat fails with olcRootDSE using external schema
tags 599235 + confirmed upstream
found 599235 2.4.39-1
thanks

Hi,

On 28/10/10 01:33 AM, Mathieu Parent wrote:
>> str2entry: invalid value for attributeType objectClass #0 (syntax
>> 1.3.6.1.4.1.1466.115.121.1.38)
>> root_dse_read_file: could not parse entry (file="/etc/kolab/rootDSE.ldif"
>> line=3)
>
> Probably the "kolab" objectClass was not known at this time. But it
> should as the kolab.schema was included before the upgrade.
>
> To pkg-openldap people: Do you have any idea?

I don't, but I can confirm that this still happens in unstable:

# apt-get install ldap-utils slapd
[…]
# ldapadd -H ldapi:// -QY EXTERNAL -f kolab2.ldif
adding new entry "cn=rfc2739,cn=schema,cn=config"

adding new entry "cn=kolab2,cn=schema,cn=config"

# ldapmodify -H ldapi:// -QY EXTERNAL
dn: cn=config
add: olcRootDSE
olcRootDSE: /home/rtandy/rootDSE.ldif

modifying entry "cn=config"

# ldapsearch -H ldap:// -x -LLL -s base -b '' objectClass
dn:
objectClass: top
objectClass: OpenLDAProotDSE
objectClass: kolab

# service slapd restart
[ ok ] Stopping OpenLDAP: slapd.
[ ok ] Starting OpenLDAP: slapd.
# ldapsearch -H ldap:// -x -LLL -s base -b '' objectClass
dn:
objectClass: top
objectClass: OpenLDAProotDSE
objectClass: kolab

# service slapd stop
[ ok ] Stopping OpenLDAP: slapd.
# sudo -u openldap slapcat -F /etc/ldap/slapd.d -b cn=config
53c2e7a5 str2entry: invalid value for attributeType objectClass #0 (syntax 1.3.6.1.4.1.1466.115.121.1.38)
53c2e7a5 root_dse_read_file: could not parse entry (file="/home/rtandy/rootDSE.ldif" line=3)
53c2e7a5 olcRootDSE: value #0: <olcRootDSE> could not read file /home/rtandy/rootDSE.ldif
53c2e7a5 config error processing cn=config: <olcRootDSE> could not read file
slapcat: bad configuration directory!

The same happens with unmodified upstream git sources: slapd runs, but 
slapcat does not work.

I think you are right about slapcat missing the schema. Using the 
built-in objectClass "extensibleObject", slapcat 2.4.39-1 does work.

thanks,
Ryan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rootDSE.ldif
Type: text/x-ldif
Size: 24 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20140713/d4a95d6c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kolab2.ldif
Type: text/x-ldif
Size: 15513 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-openldap-devel/attachments/20140713/d4a95d6c/attachment-0001.bin>


More information about the Pkg-openldap-devel mailing list