Author: rhafer Date: Fri Nov 6 11:03:19 2009 New Revision: 59365 URL: http://svn.opensuse.org/viewcvs/yast?rev=59365&view=rev Log: Read/Write serverids (probably needed for replication) 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=59365&r1=59364&r2=59365&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:19 2009 @@ -531,6 +531,17 @@ ymap.add(YCPString("crlFile"), YCPString( tls.getCrlFile() ) ); return ymap; } + if ( path->component_str(0) == "serverIds" ) + { + YCPList resList; + StringList serverIds = globals->getStringValues("olcserverid"); + for ( StringList::const_iterator i = serverIds.begin(); + i != serverIds.end(); i++ ) + { + resList.add(YCPString(*i)); + } + return resList; + } } return YCPNull(); } @@ -1145,6 +1156,18 @@ globals->setTlsSettings(tls); return YCPBoolean(true); } + if ( path->component_str(0) == "serverIds" ) + { + YCPList ycpServerIds = arg->asList(); + StringList values; + for ( YCPListIterator i = ycpServerIds.begin(); + i != ycpServerIds.end(); i++ ) + { + values.add( (*i)->asString()->value_cstr() ); + } + globals->setStringValues("olcServerId", values); + } + } return YCPBoolean(false); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org