Sunday, 4 January 2015

Creating credential vault slot for syndication

Overview :- To create a syndicator using which we can get all libraries from configured system.

Step1 :- Navigate till portal server bin and save below xml as CreateSyndSlot.xml

<?xml version="1.0" encoding="UTF-8"?>
<request
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="PortalConfig_8.0.0.xsd"
    type="update" create-oids="true">

    <!-- Sample for creating a new credential vault slot. This script creates a     -->
    <!-- credential vault resource and a shared slot in the Default Admin Segment   -->
    <portal action="locate">
         <credential-segment action="locate" adapter-type="default" name="DefaultAdminSegment"
             user-mapped="false">
             <description>Default Admin Segment</description>
             <credential-slot action="update" active="false" name="syndication-slot"
                 resource="syndication-resource" secrettype="userid-password" system="true">
                 <localedata locale="en">
                     <description>used for syndicator and subscriber pair</description>
                 </localedata>
                 <password-secret action="create" external-id="padmin"
                     user="padmin">padmin</password-secret>
             </credential-slot>
         </credential-segment>
    </portal>
</request>

Step2 :- Execute below command
xmlaccess.bat -in CreateSyndSlot.xml -out slot-out.xml -url http://localhost:10039/wps/config -user wpsadmin -password wpsadmin

Step3 :- Now navigate to portal administration click on subscribers and click on subscriber then enter the syndicator url , select above credential slot click ok then select the library you want to syndicate. Then select allitems then click ok.

Step4 :- After completing all these click on refresh button syndication will become active when it will become idle syndication is done.


No comments:

Post a Comment

Custom single threaded java server

 package com.diffengine.csv; import java.io.*; import java.net.*; import java.util.Date; public class Server { public static void main(Str...