Author: rhafer Date: Fri Nov 6 11:03:13 2009 New Revision: 59363 URL: http://svn.opensuse.org/viewcvs/yast?rev=59363&view=rev Log: Set cn=config doesn't return a "suffix" 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-server/src/agent/SlapdConfigAgent.cc?rev=59363&r1=59362&r2=59363&view=diff ============================================================================== --- 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 Nov 6 11:03:13 2009 @@ -554,7 +554,14 @@ { continue; } - ymap.add( YCPString("suffix"), YCPString((*i)->getSuffix()) ); + if ( (*i)->getSuffix().empty() && (*i)->getType() == "config" ) + { + ymap.add( YCPString("suffix"), YCPString("cn=config") ); + } + else + { + ymap.add( YCPString("suffix"), YCPString((*i)->getSuffix()) ); + } ymap.add( YCPString("type"), YCPString((*i)->getType()) ); ymap.add( YCPString("index"), YCPInteger((*i)->getEntryIndex()) ); dbList.add(ymap); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org