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
Chester Ragel

2005-06-23, 7:50 am

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...
> Hi John,
>
> Still I'm bit confused. Do you want to export the rights group and members
> when you export? Then you must set ExportOptions.IncludeRightsGroups = 3.
>
> Cheers,
> Chester.
>
>
> "John Howard" <john.howard@anite.com> wrote in message
> news:OWqQed9dFHA.1408@TK2MSFTNGP10.phx.gbl...
> Hi Chester,
>
> When creating the SDO I must authenticate the user as in
>
> ' authenticate as useruser.
> Call pCmsDeployExport. AuthenticateAsUser(strUserLogon,strUserP
wd)
>
> so that I can perform the export (after setting the export options).
>
> ' perform the export.
> strReportUrl = pCmsDeployExport.Export(strPackageFileName, 0, "")
>
> If I wanted to take the whole site I would login as an MCMS admin (in the
> script). But I do not want to take the entire site so I login as a Channel
> Manager (CMS_Exporter) who has only a specific set of rights. This way the
> eventual site administrator can control which areas of the site are

uploaded
> to the extranet by controlling the rights of the CMS_Exporter user.
>
> The problem is that when I change the Subscriber permissions on channels
> that are uploaded to the extranet they are not taken. If I change the page
> content it is taken.
>
>
> Hope this is a little clearer.
>
> Many thanks,
>
> John
>
>
> "Chester Ragel" <Chesterr@Gmail.Com> wrote in message
> news:%23s1SkO8dFHA.220@TK2MSFTNGP12.phx.gbl...
and[vbcol=seagreen]
> you
find[vbcol=seagreen]
> via
what[vbcol=seagreen]
> administrator
> channel
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com