Jump to content

Recommended Posts

Posted

I now have my network VLANs working fine, with MAC based VLAN assignment. I have successfully created the 300 or so users in the AD which are checked against and VLANs assigned accordingly. However, all of these have their Remote Access Permissions set to 'Deny Access'.

 

I've looked at vbscript and have come up short - does anyone know of a quick and easy way of scripting the enabling of access?

 

I know I can likely do it in c# but don't want to go into so much hassle as to write an entire program just to do this... And I don't want to go clicking my way through the AD either.

 

Ideas?

Posted

The Dial-in Remote Access Permission can be be set to allow or deny by setting the LDAP attribite msNPAllowDialin to TRUE or FALSE respectively in the user object.

 

For example using vbscript:

Set objUser=GetObject("LDAP://")
objUser.Put "msNPAllowDialin", TRUE
objUser.SetInfo

 

Obviously you'll need to wrap that in code to iterate through the required users.

 

Hope that is of some help,

 

Iain.

Posted

UPDATE: Well, it does seem to have worked actually... I checked directly on each AD server and none of them were reflecting any changes... but checking again now, they all are.

 

So, patience was the key.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...