PDA

View Full Version : Install Service for Domain User Account



Jonathan Kay
03-28-2017, 07:58 AM
Hi,

We've had a customer request that our product (which is installed as a service) run under one of their domain accounts. They can do this themselves right now, but they also need to set various registry and file permissions. I'd like a dialog that allows them to select a domain user, supply the password and check the username/password are valid. Is this something you can consider for a future version?

Right now I think I'll just have to use a 'Custom Dialog' with entry controls for the username/password. I can then use these in 'Create Service'. Can you confirm 'Create Service' will fail if they enter invalid credentials? (I'd rather check earlier, but this will do for now.)

Thanks,
Jon.

linder
03-30-2017, 02:58 AM
Hi Jon,

The Windows CreateService API fails if the specified logon account is invalid. However, CreateService does not check the validity of the password. It also does not verify that the account has the logon as a service right on the local computer.

I'll see what can be done to display domain users in a dialog.

Friedrich

Jonathan Kay
04-05-2017, 09:20 AM
Ok, thanks.