I am trying to search user using jscript.net
When I am doing this thing from Integration Wizard using LDAPSearch method. It is working fine. But when I am trying to do the same thing using DirectoryServices class. It is not returning the result.
directoryEntry1 = new DirectoryEntry("LDAP://" + strDomain,"username","password");
directorySearch1 = new DirectorySearcher(directoryEntry1);
strFilter="(&(objectclass=user)(samaccountname="+ strUserName +"))";
directorySearch1.Filter = strFilter;
//Not returning anything here. That's why searchResult1 is coming as
searchResult1 = directorySearch1.FindOne();
directoryEntrySearch = searchResult1.GetDirectoryEntry();
This code is running fine in C# and out of Metastorm in JScript.net
Is this using any metastorm account for firing this query.
Can any budy help?
Thanks in advance.