[yast-commit] r60070 - /branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc

Author: rhafer Date: Fri Dec 11 14:58:48 2009 New Revision: 60070 URL: http://svn.opensuse.org/viewcvs/yast?rev=60070&view=rev Log: workaround LDAPControl bug when initializing from char* (bnc#563955) Modified: branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc Modified: branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/ldap-s... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc (original) +++ branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc Fri Dec 11 14:58:48 2009 @@ -2270,7 +2270,8 @@ try{ // Simple LDAPSync Request Control (refreshOnly, no cookie) const char ctrl[] = { 0x30, 0x03, 0x0a, 0x01, 0x01 }; - LDAPCtrl syncCtrl( "1.3.6.1.4.1.4203.1.9.1.1", true, ctrl, sizeof(ctrl) ); + std::string ctrlStr(ctrl, sizeof(ctrl) ); + LDAPCtrl syncCtrl( std::string("1.3.6.1.4.1.4203.1.9.1.1"), true, ctrlStr ); LDAPControlSet cs; cs.add(syncCtrl); LDAPConstraints searchCons; -- 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