Microsoft Dynamics AX user log in

By default AX logs you into AX using the windows username.  Can you change AX on a server level to require a username and password?  I have a client that has floor machine that several users use at the same time and do not want to have to log out of windows every time they need to switch AX users.  Or can I make AX prompt them for a password for specific things like deleting inventory.
LVL 1
Shawnp3533Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

quale-kaizenCommented:
There are several options.

One option would be to use a third-party application to log-in the users with the
appropriate credentials. I guess you can write such a program yourself.

OR

If you already have something like Citrix or Terminal Server, you can use it instead.
Without Terminal Server you can connect upto 2+1 remote desktop users.

When it comes to modifying the standard behavior of AX, yes you can do pretty much
anything you want. I can provide you with sample X++ code if you need to.

Regards,
QK
0
Shawnp3533Author Commented:
That would be great.  Basically I need to have the ability to have a generic login for windows and specific log-ins for AX (The computers are windows XP pro).
0
quale-kaizenCommented:
The simplest possible solution is to force the users to log-in with remote desktop on a machine with AX client installed. This would guarantee each user would use different AD account.

Is this an option for you?

Regards,
QK
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Shawnp3533Author Commented:
NO Because that is would take to long to log into windows (remotely) let it come up and then log into AX.  Each time a differant User logged in.  I need to be able to have a generic Windows login and then Individual log in's for ax. We could setup the individual users in ad so AX could pull them to add them to the account but AX can't pull the log in info from the user logged into windows.
0
quale-kaizenCommented:
The 2nd best option (in my opinion) would be to have a starter application, in order to impersonate the users trying to run AX. Here is how it works:

1) The client machine is logged in the domain as a user who has restircted  rights (or no rights at all)  in AX. The point is, users should use the strater application in order to start AX.

2) There is  a different  Active Directory user for each user trying to access AX. In AX you can use security groups to setup group permissions, so this shouldn't be a problem.

3)  The users on the client machine run the starter application, and everytime they try to run AX,  they are asked for AD username & password. In this way you can reuse the standard security framework of AX.

On the downside users should close the AX client when they finish their work (you can setup a timeout in AX as well).

The advantage of this solution is that you reuse the standard AX security framework.
And what's more, this saves you the extra time and effort to implement and maintain a parallel user authentication  & security system in AX.
0
Shawnp3533Author Commented:
How would I do the starter application?
0
quale-kaizenCommented:
I can compile one for you (tomorrow).
0
Shawnp3533Author Commented:
Thanks look forward to it.
0
quale-kaizenCommented:
Now that I have AX in front of me, it turns out you don't really need the starter application:
the users can right-click on the AX icon and use the "run as..." option.
This way they can login as different users in AX without resetting their windows session.


PS:

This below is the C# source code for the AX starter application, I promissed yesterday.
For some reason I can't attach the entire project to my expert-exchange post.
If you need the entire project you can email me (see my profile) and I will send you the project.


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Configuration;
using System.Security;
using System.Diagnostics;
 
 
namespace impersonateForm
{
    public partial class ImpersonateForm : Form
    {
        public ImpersonateForm()
        {
            InitializeComponent();
        }
 
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            try
            {
                String path = "ax32.exe";
                String user = textBoxUser.Text;
                String userDomain = textBoxDomain.Text;
 
                SecureString password = new SecureString();
 
                foreach (char ch in textBoxPassword.Text)
                {
                    password.AppendChar(ch);
                }
 
                System.Diagnostics.ProcessStartInfo myProcess = new ProcessStartInfo(path);
                myProcess.Domain = userDomain;
                myProcess.UserName = user;
                myProcess.Password = password;
                myProcess.UseShellExecute = false;
 
                Process.Start(myProcess);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }         
        }
 
        private void ImpersonateForm_Load(object sender, EventArgs e)
        {
            textBoxDomain.Text = System.Environment.UserDomainName;            
        }
    }

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shawnp3533Author Commented:
Thanks I think the run-as will work but I will also email becuase I would like to see the starter appilcation.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Dynamics

From novice to tech pro — start learning today.