FR: Improving Active Directory integration
tomer953 opened this issue · comments
Feature Request
Create ActiveDirectory Module for a better integration \ use with AD.
Hi,
I just found that your library suits most of my cases, and for years I used a lot of workarounds that now can be achieved in few lines of codes - so first - huge thanks!
anyway, I'm using activedirectory2 package,
which is very old, but does the work.
the thing is that we need to pass the username and password to the package config, so I prefer using your solution in order to avoid that.
therefore, I have some feature requests for improving the AD integration:
- create some common functions like in
activedirectory2
ie:
- findUser(username)
- findGroup(groupName)
- isUserMemberOf(user, group)
etc..
- custom entity parser same as
activedirectory2
- allowing us to grab the buffer fromthumbnailPhoto
property, which now returnsundefined
- better typing for the AD results, ie maybe we can pass an object with our AD properties with description, and insert this typing dynamiclly to the result of the AD User result
- pack into AD module or something easier than:
const { getUser } = require("node-expose-sspi/dist/sso/userdb");
Thank you for your hard work.
I forgot to indicate that node-expose-sspi exposes all ActiveDirectory API. It is called Win32 ADSI. You have it in node in this library.
Look at the test file regarding ADSI.
https://github.com/jlguenego/node-expose-sspi/blob/master/test/adsi.spec.ts
Sounds about right.
Thanks