Process Mapping Logo

Process Mapping - Forums

Sharing 19 years of knowledge and experience

 
Metastorm BPM forums
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
agrawars

New Member
Registered:
Posts: 2
Reply with quote  #1 
Hi,

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.

Code snapshot.

              directoryEntry1 = new DirectoryEntry("LDAP://" + strDomain,"username","password");

              directorySearch1 = new DirectorySearcher(directoryEntry1);

              strFilter="(&(objectclass=user)(samaccountname="+ strUserName +"))";

              directorySearch1.Filter = strFilter;

              directorySearch1.PropertiesToLoad.Add("givenName");           

             //Not returning anything here. That's why searchResult1 is coming as 

              null.

              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.

 

Regards,

 

Agrawars


0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:


Create your own forum with Website Toolbox!