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

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -