Access into the Employee Portal as an anonymous user

SanekSanek Member Posts: 6
edited 2007-07-13 in Navision e-Commerce
Hi all,

I try to get access into the Employee Portal as an anonymous user. I have made settings in IIS and SharePoint to allow access for anonymous user. SharePoint opens well, but a Web Part for Navision doesn't show any information and indicates the message that "user is not in a group". I have added the user «IUSR_MachineName» into the Employee Portal group, but it doesn’t work still. Do you have any idea how to set up an access into the Employee Portal as an anonymous user?

Comments

  • ArhontisArhontis Member Posts: 667
    Hello,

    I was messing around with EP and came with an idea that might help you...

    There is a function GetUserID in the EP Decode XML codeunit that returns the user that has been login to sharepoint.
    GetUserID(VAR XMLDocStatic : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 3.0:{F6D90F11-9C73-11D3-B32E-00C04F990BB4}:'Microsoft XML, v3.0'.DOMDocument";VAR UserID : Code[50])
    Procedure 1000000002 
    // Get the UserID from static Value Part of the document
    XMLNode := XMLDocStatic.documentElement;
     
    WITH XMLDOMMgt DO BEGIN
      IF FindNode(XMLNode,'USERID',XMLNodeFound) THEN
        IF STRLEN(XMLNodeFound.text) > 0 THEN
          UserID := XMLNodeFound.text;
    END;
    
    Maybe you could add some code at the end to change the UserID and make it something like UserID := 'DEFAULT'; and then insert that user to the groups and treat him as the anonymous user.

    It is just an idea, but it might do the trick...
    :)

    EDIT:
    Since you are working with EP too, can you do me a favor?
    I need the name and subtype of the CheckSum automation local variable in the function BuildKeyCheckSum in codeunit 6815 EP Support Functions

    Can you design the cu and see in that procedure the local variable and copy paste the subtype of the checksum variable? What I have is:
    Name DataType Subtype Length
    CheckSum Automation Unknown Automation Server.Unknown Class
Sign In or Register to comment.