Microsoft Content Management Server - Re: Automater Update Scripts

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > June 2005 > Re: Automater Update Scripts





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Automater Update Scripts
John Howard

2005-06-23, 5:55 pm

Thanks Chester,

in my import script I had:

pImportOptions.RightsOnReplace = 2
pImportOptions.RightsOnAdd = 3

which ignores the package rights and uses the destination rights.

Don't know how I missed it. :o|

Thanks again for your time.

John


"Chester Ragel" <Chesterr@Gmail.Com> wrote in message
news:ekvfoN$dFHA.584@TK2MSFTNGP15.phx.gbl...
> Hi John,
>
> I'm sure that I can understand what you are saying now. How you are saying
> that it is not exporting? Did you check the report? I checked it and it is
> exporting. May be there is a problem with your importing script. Can you
> post the script?
>
> Cheers,
> Chester.
>
> "John Howard" <john.howard@anite.com> wrote in message
> news:ucMXzt#dFHA.3012@tk2msftngp13.phx.gbl...
> Hi Chester,
>
> I have set ExportOptions.IncludeRightsGroups = 2 because I want to export
> the rights group but not it's members.
>
> -----
>
> I will try and explain the situation further.
>
> There are currently two CMS sites:
>
> Intranet - used for authoring and browsed on a secure internal network
> Extranet - used to distribute "some" of the Intranet channels to external
> users who must logon
>
> For example there are three channels:
>
> /channels/A/
> /channels/B/
> /channels/C/
>
> plus various sub channels.
>
> the site content is transferred from the Intranet to the Extranet using
> deployment scripts. Lets say that channels A & B are transferred and
> channel
> C should not be pushed to the extranet.
>
> Now, if the logon in the script using the COM API is an administrator thus
>
> ' authenticate as useruser.
> Call
> pCmsDeployExport.AuthenticateAsUser("domain\administrator","somepassword")
>
> which I must do to be able to be able to perform the export then the
> channel
> C object will be added to the SDO file provided it has changed since the
> last export. As I mentioned channel C must not be exported.
>
> However if I use a different user to logon in the scripts e.g.
> CMS_Exporter_User
>
> ' authenticate as useruser.
> Call
> pCmsDeployExport.AuthenticateAsUser("domain\CMS_Exporter_User","somepassword
> ")
>
> then I can control which channels and sub channels will be added to the
> SDO
> file by manipulating the CMS_Exporter_User's rights. This technique has
> the
> added benefit that if a new channel is created then channel can be
> published
> on the extranet just by changing the CMS_Export_User's rights.
>
> Ok that said there is one problem.
> As I understand it, when doing an incremental export (the 0 represents
> incremental)
>
> ' perform the export.
> strReportUrl = pCmsDeployExport.Export(strPackageFileName, 0, "")
>
> all objects that have changed since the last export are included in the
> SDO.
>
> This is fine if the object is a page. The content has changed and the page
> is added to the SDO.
> This is fine if the object is a resource. An item is added and is added to
> the SDO file.
> This is fine if the object is a channel IF it is a property such as it's
> name. The SDO file is effected.
>
> However, If the channel's property that is changed is a subscriber's
> rights
> to a channel (which the Channel Manager "CMS_Exporter_User" DOES have
> rights
> over for example user114 can now see /Channels/A/sub_channel2/) then this
> change is not included in the SDO file.
>
> Let me say that again. If a subscriber's rights on a channel changes this
> change is not included in the SDO.
>
> Phew.....
>
> Please can you tell me why this is and more importantly how I can ensure
> the
> user rights are always added to the SDO.
>
> If this is still unclear please mail me privately and I will either phone
> you or supply you with my number if this is ok etc. etc.
>
> Many thanks Chester
>
> John
>
> "Chester Ragel" <Chesterr@Gmail.Com> wrote in message
> news:eOcfsw9dFHA.3280@TK2MSFTNGP09.phx.gbl...
> uploaded
> and
> find
> what
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com