[Bug 541819] New: yast2-ldap-server: segfault while loading kerberos.ldif as schema file
http://bugzilla.novell.com/show_bug.cgi?id=541819 Summary: yast2-ldap-server: segfault while loading kerberos.ldif as schema file Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 7 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: rhafer@novell.com ReportedBy: mc@novell.com QAContact: jsrain@novell.com Found By: Development - Create a new ldap server and try to load the kerberos schema file - I selected the kerberos.ldif => # yast2 ldap-server YaST got signal 11 at YCP file ldap-server/tree_structure.ycp:234 /sbin/yast2: line 454: 13904 Segmentation fault $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS (Loading kerberos.schema works, but I think loading the ldif should display an error and should not end up in the segfault) y2log does not say much about this error: 2009-09-24 17:17:08 <1> vigor10(13904) [YCP] ldap-server/tree_structure.ycp:218 current_item is 'schema' 2009-09-24 17:17:48 <1> vigor10(13904) [agent-slapdconfig] SlapdConfigAgent.cc(Write):128 Path .schema.addFromLdif Length 2 2009-09-24 17:17:48 <1> vigor10(13904) [agent-slapdconfig] SlapdConfigAgent.cc(Write):142 Schema Write 2009-09-24 17:17:48 <1> vigor10(13904) [agent-slapdconfig] SlapdConfigAgent.cc(WriteSchema):1432 Path .addFromLdif Length 1 2009-09-24 17:17:48 <1> vigor10(13904) [agent-slapdconfig] SlapdConfigAgent.cc(WriteSchema):1434 WriteSchema 2009-09-24 17:17:48 <1> vigor10(13904) [agent-slapdconfig] SlapdConfigAgent.cc(WriteSchema):1443 adding Ldif File: /usr/share/doc/packages/krb5/kerberos.ldif 2009-09-24 17:17:48 <1> vigor10(13904) [agent-slapdconfig] SlapdConfigAgent.cc(WriteSchema):1459 adding <cn=schema> to SchemaList 2009-09-24 17:17:48 <1> vigor10(13904) [libslapdconfig] slapd-config.cpp(OlcSchemaConfig):1280 OlcSchemaConfig::OlcSchemaConfig(const LDAPEntry &e) : OlcConf igEntry(e) /var/log/messages say: Sep 24 17:17:48 vigor10 kernel: [ 4709.727176] y2base[13904]: segfault at 8 ip 00007f39af54efd0 sp 00007fff1a7d3d68 error 4 in libldapcpp.so.1.0.2[7f39af51b000+3f000] Sep 24 17:17:48 vigor10 slapd[13706]: connection_read(14): no connection! Sep 24 17:17:48 vigor10 slapd[13706]: connection_read(14): no connection! Sep 24 17:18:37 vigor10 slapd[13706]: connection_read(14): no connection! Sep 24 17:18:37 vigor10 slapd[13706]: connection_read(14): no connection! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=541819 User rhafer@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=541819#c1 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED --- Comment #1 from Ralf Haferkamp <rhafer@novell.com> 2009-09-24 09:44:34 MDT --- Ugh, the kerberos.ldif from krb5-plugin-kdb-ldap is actually meant to be loaded into eDir it doesn't work for OpenLDAP. I agree though, that yast2-ldap-server shouldn't crash on it :). As a workaround you can you kerberos.schema. yast2-ldap-server converts that on the fly to ldif and should load it successfully. We should probably have a kerberos-openldap.ldif as well and preferably rename kerberos.ldif to kerberos-edir.ldif to make the problem more obvious. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=541819 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |542165 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=541819 User rhafer@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=541819#c2 Ralf Haferkamp <rhafer@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Milestone 8 --- Comment #2 from Ralf Haferkamp <rhafer@novell.com> 2009-09-25 08:16:37 MDT --- Submitted fixed yast2-ldap-server and ldapcpplib to Factory. Created a clone of this report as a reminder for SLE11-SP1. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=541819 User mc@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=541819#c3 --- Comment #3 from Michael Calmer <mc@novell.com> 2009-09-28 02:12:30 MDT --- (In reply to comment #1)
We should probably have a kerberos-openldap.ldif as well and preferably rename kerberos.ldif to kerberos-edir.ldif to make the problem more obvious.
Is there a simple way to create a kerberos-openldap.ldif from kerberos.schema. Than I can put a generation command it into the spec file. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=541819 User rhafer@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=541819#c4 --- Comment #4 from Ralf Haferkamp <rhafer@novell.com> 2009-09-28 07:06:28 MDT --- Created an attachment (id=320093) --> (http://bugzilla.novell.com/attachment.cgi?id=320093) Simple schema to LDIF tool I'll add the attached script the openldap2-client package. Usage: /usr/sbin/schema2ldif <schemafile> the LDIF is printed to stdout. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=541819 User rhafer@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=541819#c5 --- Comment #5 from Ralf Haferkamp <rhafer@novell.com> 2009-09-28 08:10:42 MDT --- Package submitted to factory. Contains a slightly enhanced version of the above script that should preserve comment lines. I guess it's best to open a separate request for krb-plugin-kdb-ldap to make use of the tool, I'll take care of that. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=541819 User rhafer@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=541819#c6 --- Comment #6 from Ralf Haferkamp <rhafer@novell.com> 2009-09-28 10:19:05 MDT --- Using perl was a bad idea actually, converted the script to awk. Usage is the same. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=541819 http://bugzilla.novell.com/show_bug.cgi?id=541819#c7 --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (541819) was mentioned in https://build.opensuse.org/request/show/21096 Factory / ldapcpplib https://build.opensuse.org/request/show/21249 Factory / openldap2 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com