I have a small vb.net app that is used to create new users on our
domain. All works well until I try to change it to allow them access
to VPN in (Remote Access Permission). Our server is in mixed mode, so
setting the property msNPAllowDialin does not work. According to MS,
I need to get a user object and set dialinPrivilege to true. When I
try to do this I get a Cannot create ActiveX component. I have the
ActiveDS referenced in the project. Any ideas on how to fix this, or
better yet do this with directoryServices?
Dim usr As ActiveDs.IADs
usr = getObject("winnt://domain/cn=user,cn=users,dc=domain,dc=com)
usr.dialinprivilege = True 'error occurs here!
usr.setinfo()