You can use the DirectoryEntry
class in C# to retrieve the list of LDAP attributes for the employeeid
. Here's an example code snippet that demonstrates how to achieve this:
main.cs1420 chars43 lines
Note that you will need to replace the ldapPath
, username
, and password
values with the appropriate values for your environment. You may also need to modify the ldapQuery
and ldapAttributes
values to suit your needs.
gistlibby LogSnag