Guest_imported
New member
- Jan 1, 1970
- 0
After readin an article in Windows .net magazine (Easy Active Directory Scripting for Systems Administrators) i created a html form and posted it's reponses to an asp page to create users. I am having a problem setting 1 variable and making it work.
Dim strUser
Dim oUser
Dim strCuser
Dim strContainer
strUser = "Judy Schneider"
strContainer = "LDAP://cn=users,dc=test,dc=com"
Set strCuser = GetObject(strContainer)
Set oUser = strCuser.Create("user","cn=""&struser&"""
oUser.Put "sAMAccountName", strUser
oUser.SetInfo
The next line is my problem.
Set oUser = strCuser.Create("user","cn=""&struser&"""
How do I write this.
Any help would be greatly appreciated.
Thanks in advance!!
Dim strUser
Dim oUser
Dim strCuser
Dim strContainer
strUser = "Judy Schneider"
strContainer = "LDAP://cn=users,dc=test,dc=com"
Set strCuser = GetObject(strContainer)
Set oUser = strCuser.Create("user","cn=""&struser&"""
oUser.Put "sAMAccountName", strUser
oUser.SetInfo
The next line is my problem.
Set oUser = strCuser.Create("user","cn=""&struser&"""
How do I write this.
Any help would be greatly appreciated.
Thanks in advance!!