Is it possible to use Windows Authentication to logon to Axapta 4 (or 5) in a Website/webservice

Posted by rdkleine on Stack Overflow See other posts from Stack Overflow or by rdkleine
Published on 2009-09-04T09:50:59Z Indexed on 2010/03/22 4:01 UTC
Read the original article Hit count: 475

Filed under:
|

Using this code I can not create a connection using IIS 7 with Windows Authentication.

        try
        {
            Axapta axapta = new Axapta();
            axapta.Logon("", "", "", "");
            //Or this> axapta.Logon("COMPANY", "NL-nl", "OBJECTSERVER", "");
            System.Diagnostics.Debug.WriteLine("yep");
            axapta.Logoff();
        }
        catch (Exception ex)
        {
            System.Diagnostics.Debug.WriteLine(ex.ToString());
        }

When changing App Pool Identity to a user with rights in Axapta then I can create a connection. So it seems like the App Pool Identity is used.

Is it even possible to get this do without using the LogonAs method? Is there some other way short of asking the user for they're credentials?

Appreciate any help on this,

Ralf

© Stack Overflow or respective owner

Related posts about axapta

Related posts about iis