windows - Active Directory VBScript Issue -


i'm creating script assign active directory user group want use text box input instead of predefining username. know i'm doing stupid here strusername predefined dim value @ top of code.

userpath = "ldap://cn=users" & "cn=" & strusername) & "cn=users,dc=domain......." 

you have spurious cn=users before username, spurious parenthesis after username, , must have commas between path segments.

userpath = "ldap://cn=" & strusername & ",cn=users,dc=example,dc=org" 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -