Re: Support Reference -- Import Script

[email protected] (mikespub)
Newsgroups gmane.comp.cms.xaraya.knowledge-base
Organization not much
Message-ID <[email protected]>
In article <b88ba7$92u$1-FogMEOs31dotat4ziPANHlKoq+OfwspIAL8bYrjMMd8@public.gmane.org>, "J. Cox" <[email protected]> wrote:
>...
>The problem was there was no matching admin names and its killing the perms
>on the article import.  Even when he created the same name on Xaraya that he
>used on PN, it was killing the perms.  I didn't dig into the code to far to
>investigate it quite yet;)
>

Weird - I'm really not doing anything magical with the import of users :

1. ignore the users with special meanings in PostNuke, i.e. the Anonymous
    and the (initial) admin account (uid <= 2)
2. don't delete any roles with special meanings in Xaraya, i.e. the minimum
    default roles and the initial admin account (uid <= 5)
3. import everything else into roles, keep track of the before->after mapping
   of uids, and assign them all to the default Users role (for now)

So unless one of the PN users (above uid 2) happens to have the same 
user name as one of the default roles, there should be no overlap. And if
there is an overlap, that should be blocked by the roles adminapi create 
function, and that user should simply not be created.

There should be no impact at all on the initial admin account of xaraya, or
on whatever privileges that are assigned to it...

What *can* mess things up is when you play with privileges, hooks or
user properties before doing the import, though. Don't do that :-)

Mike.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.