try { domain = textBoxDomain.Text; uid = textBoxUserID.Text; pwd = textBoxPassword.Text; NetworkCredential credentials = new NetworkCredential(uid, pwd, domain); SystemService systemService = new SystemService(); systemService.Credentials = credentials; systemService.Url = baseURL + "SystemService"; systemService.PreAuthenticate = true; MessageBox.Show("Welcome " + uid.ToString()); } catch (Exception ex) { MessageBox.Show(ex.ToString()); }
Comments
i need this too
thanks
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
but i cant authenticate
because we cant check domain password from NAV or C#
We no need to check domain password. We need to check login user is authenticate or not. And we can't check user id is wrong or password is incorrect. What we can do it, we can check login user is authenticate or not. Here is sample
Best Regards,
Yukon