[yast-commit] r48592 - in /trunk/ldap-server/src: agent/SlapdConfigAgent.cc lib/backConfigTest.cpp
Author: rhafer Date: Fri Jun 27 15:56:48 2008 New Revision: 48592 URL: http://svn.opensuse.org/viewcvs/yast?rev=48592&view=rev Log: Adapted to reflect changes in the Ldif-API Modified: trunk/ldap-server/src/agent/SlapdConfigAgent.cc trunk/ldap-server/src/lib/backConfigTest.cpp Modified: trunk/ldap-server/src/agent/SlapdConfigAgent.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/agent/SlapdConfigAgent.cc?rev=48592&r1=48591&r2=48592&view=diff ============================================================================== --- trunk/ldap-server/src/agent/SlapdConfigAgent.cc (original) +++ trunk/ldap-server/src/agent/SlapdConfigAgent.cc Fri Jun 27 15:56:48 2008 @@ -75,8 +75,8 @@ if ( path->component_str(0) == "initFromLdif" ) { std::istringstream ldifstream(arg->asString()->value_cstr()); - LdifReader ldif(&ldifstream); - while ( ldif.readRecord() == LDAPMsg::SEARCH_ENTRY ) + LdifReader ldif(ldifstream); + while ( ldif.readNextRecord() ) { LDAPEntry currentEntry = ldif.getEntryRecord(); y2milestone( "EntryDN: %s", ldif.getEntryRecord().getDN().c_str() ); @@ -261,7 +261,7 @@ std::ostringstream ldif; ldif << globals->toLdif(); ldif << schemaBase->toLdif(); - LdifWriter writer(&ldif); + LdifWriter writer(ldif); writer.writeIncludeRecord("/etc/openldap/schema/core.ldif"); writer.writeIncludeRecord("/etc/openldap/schema/cosine.ldif"); writer.writeIncludeRecord("/etc/openldap/schema/inetorgperson.ldif"); Modified: trunk/ldap-server/src/lib/backConfigTest.cpp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-server/src/lib/backConfigTest.cpp?rev=48592&r1=48591&r2=48592&view=diff ============================================================================== --- trunk/ldap-server/src/lib/backConfigTest.cpp (original) +++ trunk/ldap-server/src/lib/backConfigTest.cpp Fri Jun 27 15:56:48 2008 @@ -464,7 +464,7 @@ std::string OlcConfigEntry::toLdif() const { std::ostringstream ldifStream; - LdifWriter ldif(&ldifStream); + LdifWriter ldif(ldifStream); ldif.writeRecord( m_dbEntryChanged ); return ldifStream.str(); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rhafer@svn.opensuse.org