Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
Dim dirEntry As New DirectoryEntry()
Dim dirEntrySsop As New DirectoryEntry()
dirEntry.Path = "LDAP://ServerName/ou=resources,o=lwsnrmdata,o=LawProd"
dirEntrySsop.Path = "LDAP://ServerName/ou=resources,o=lwsnrmdata,o=SSOP"
Dim adUsers As DirectoryEntries = dirEntry.Children
Dim newUser As DirectoryEntry
Dim deSearch As DirectorySearcher = New DirectorySearcher()
'search if account exists
deSearch.Filter = "(&(objectClass=zzlwsnobjPeople) (cn=" & Row.EMPLOYEE & "))" '(cn=25759))" (cn=" & Row.EMPLOYEE & "))"
deSearch.SearchRoot = dirEntry
Dim results As SearchResultCollection = deSearch.FindAll()
If results.Count = 0 Then
'add the new user
newUser = adUsers.Add("cn=" & Row.EMPLOYEE, "zzlwsnobjPeople")
newUser.Properties("cn").Value = Row.EMPLOYEE
newUser.CommitChanges()
newUser.Invoke("SetPassword", "")