From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

LDAP User Authorize and authenticate users.

Code and Documents

Attachment

Overview

 

This simple example will allow a user to check a users details via Lightweight Directory Access Protocol, or LDAP. To access a network's LDAP services, your computer must first log in to a server that supports the protocol, a process called authentication.

 

Description

 

Many company use LDAP and from time to time as a developer you must create applications that support users. Managing Passwords and users is better left to the corporation and using LDAP and a simple internal database a application can query a users details in the Active directory. 

 

LDAP.PNG

 

 

Hardware and Software Requirements 

LabVIEW 2015 or Greater.

 

Steps to Implement or Execute Code

 

 Open VI Enter the Username, Password and Domain Select Run and Note the Access_OK Boolean.

 

Additional Information or References

 

See Authorize-and-authenticate-users-with-AD by Leonardo Pessoa for concepts and Code in C# adapted to LabVIEW via .net pallet. 

 

Test Engineer @ Valeo Ireland

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
DougFerguson
Member
Member
on

I am trying to use this code, but am not sure how to formulate the syntax. Can you give an example of how to specify the domain and user?

Doug Ferguson

www.southerndaqsolutions.com
Contributors