Connection to ldap in csharp – C# simple

Friday, May 5th, 2017 (0 Comment)

In your company, we want to connect to ldap and get username or some information if any, we have sample c# code connection to ldap in csharp.

Example: we develop a module login and authentication with ldap.

At first, in visual studio we must add some libraries, right click on References and add System.DirectoryServices, System.AccountManagement

1) Function login ldap in csharp

2) Function get all username or computer name of ldap in csharp

3) Function get all properties for one username of ldap in csharp

 

Tags: , , , ,

Related Posts

csharp
How to send mail csharp – C#
csharp
How to call lua in CSharp – C#
csharp
Convert object to json in CSharp – C# and vice versa
csharp
Encode and decode in CSharp – C#

Related Posts

csharp
How to send mail csharp – C#
csharp
How to call lua in CSharp – C#
csharp
Convert object to json in CSharp – C# and vice versa
csharp
Encode and decode in CSharp – C#

Leave a Reply

Your email address will not be published. Required fields are marked *