10-03-2018 06:56 AM
hello guys, I'm new to the LabVIEW. so can anyone help me with an easiest method to check username and password?
Thanks a lot :-))
10-03-2018 07:28 AM
User name and password for what? Your application? Windows? TestStand?
How important is security?
10-03-2018 07:35 AM
i just want to write a code to check username and password in labview
10-03-2018 07:53 AM
Have you searched the forums? This question has come up several times before.
10-03-2018 08:24 AM
Here
10-03-2018
08:32 AM
- last edited on
01-28-2025
09:56 AM
by
Content Cleaner
Crossrulz is right to bring up security. I know you likely are just playing around but it is important to actually lock out users you should look into doing this the right way. My first recommendation is to use Windows like Paul has shown. You can query the logged in user, and what groups they are a member of and to enable parts of the code based on who is logged in. Then you don't need to worry about password expiration, or password strength, these will all be controlled by the domain controller, or group policy.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000PACwSAO&l=en-US
If you don't like Windows, you can also use DSC which is a toolkit from NI. It has several other features but user login is one of them.
https://www.ni.com/en-us/shop/product/labview-datalogging-and-supervisory-control-module.html
Other than that there are examples of making custom dialogs, like this one, but again this is the least desirable method.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-03-2018 10:12 AM
I used Windows Authentication method a few year ago.
There is a flawed: it works only for those users who don't have admin privilege.
10-03-2018 10:33 AM
Do not mean to hijack thread, but for some Windows computers there are "no user names nor passwords", for example I have to log in with a smart card. Is there a .NET method for that? Or a .NET method for face id?
Thanks
mcduff
10-03-2018 10:50 AM
Using DSC would be a good option. However if you are using Labview 2016 (I am not sure of the latest ones), you won't be able to programmatically add users with the built-in VI's.
There is however a work around. You can launch the Domain Account Manager executable and proceed with adding users, but this would look a little different from your actual application.
10-03-2018 08:28 PM
I think we need more information on what you want to do exactly.
There is infinite possibility of user name and password check.
What is your project exactly?
Benoit