Mailinglist Archive: yast-commit (1224 mails)

< Previous Next >
[yast-commit] r59363 - /branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc
  • From: rhafer@xxxxxxxxxxxxxxxx
  • Date: Fri, 06 Nov 2009 10:03:13 -0000
  • Message-id: <E1N6Lf0-0003fE-16@xxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages