Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LDAP queries using UWP on Windows 10 IoT

After several hours of searching it appears that there is no way to query a local LDAP directory (Microsoft Active Directory or otherwise) from a UWP app.

This seems like a rather bizarre hole in the UWP offering, and so I'm hopeful that I'm just missing the obvious.

What (if anything) is the functional equivalent of System.DirectoryServices in the Universal Windows Platform world?

like image 525
Ralph Shillington Avatar asked Sep 26 '16 11:09

Ralph Shillington


2 Answers

This thread is a little older, but you have 3 options today:

  1. Use the Windows Compatibility Pack for .NetCore.

  2. Use the Desktop Bridge to create a .Net component that does your LDAP queries. See this for more information.

  3. If you can, move to the Microsoft Graph - link to samples.

Hope this helps.

like image 186
Adam Braden - MSFT Avatar answered Oct 17 '22 03:10

Adam Braden - MSFT


System.DirectoryServices is not available in the UWP, but if you are using sideloading for your app then you can use Brokered windows component to get or create the details required through a endpoint in it.

You can get it here.

like image 44
Ipsit Gaur Avatar answered Oct 17 '22 02:10

Ipsit Gaur