473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

dialinPrivilege w/ VB.NET

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()
Nov 21 '05 #1
0 1209

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.