Logon to Domain

Dragos

New Member
Joined
Jun 13, 2011
Messages
5
Hello.

I want to get from the user - in MS Access - Username, Password and Domain name, then check if these credentials are accepted on that domain. Maybe get the user's Fullname thereafter, but this is not mandatory.
I have no problem dealing with the required form but the domain things..:mad:

Please, does anyone have any idea on what API's can I use to accomplish this?

Thanks...
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You can look to use something called the Environ function. There are a number of variables within it that might assist you.

Here is a link to a website that list them. Also not the code at the bottom to run into the Debug window (Immediate Window).

http://www.utteraccess.com/forum/Environ-Function-List-t693880.html

The most common one is getting the username

debug.print Environ("UserName")
 
Upvote 0
Thanks alot.

I do not want to use environment, there is still a "chance" that environment variables could be modified by applications and so on.

In addition, I can get the user name of the currently logged in user (GetUserNameA function from advapi32.dll), but I don't know what to use to check that the user is really logged on teh domain that he/she enetered in the "Domain" textbox or just on the machine itself.
 
Upvote 0

Forum statistics

Threads
1,215,191
Messages
6,123,553
Members
449,108
Latest member
rache47

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top