A sample app targetting netcoreapp2.0 that uses Novell.Directory.Ldap.NETStandard to search LDAP servers.
Works on Windows, Mac and Linux
- See ADSettings in appsettings.json
- Modify
search()
in src\adaddressbook\services\adsearchservice.cs to change the filter settings - Have fun!
"ADSettings": {
"host": "ldap.forumsys.com",
"port": 389,
"ssl": true,
"username": "cn=read-only-admin,dc=example,dc=com",
"password": "password",
"SearchBase": "dc=example,dc=com",
"ResultAttributes": [
"cn",
"mail"
]
}
MIT