O
OMAF-Terry
I'm trying to create a web service in C# to populate a drop down list with
Active Directory users.
How do I return what's found (if possble please provide code)? Then from the
InfoPath side, I've seen a couple different ways to receive the data such as
http://support.microsoft.com/?id=826994
http://blogs.msdn.com/davfries/archive/2004/06/29/169043.aspx
or adding a data connection
What is the best method to receive the data retrived from web service?
=======================================
public string getAdUsers()
{
DirectoryEntry entryAllUsers = new
DirectoryEntry("LDAP://ou=people,ou=peeps,dc=gov,dc=on,dc=ca");
DirectorySearcher dsAllUsers = new DirectorySearcher(entryAllUsers);
string [] strAttrs = new
string[]{"givenName","sn","mail","telephoneNumber"};
dsAllUsers.Filter = "(objectClass=user)";
dsAllUsers.PropertiesToLoad.AddRange(strAttrs);
return "???????";
}
}
}
Active Directory users.
How do I return what's found (if possble please provide code)? Then from the
InfoPath side, I've seen a couple different ways to receive the data such as
http://support.microsoft.com/?id=826994
http://blogs.msdn.com/davfries/archive/2004/06/29/169043.aspx
or adding a data connection
What is the best method to receive the data retrived from web service?
=======================================
public string getAdUsers()
{
DirectoryEntry entryAllUsers = new
DirectoryEntry("LDAP://ou=people,ou=peeps,dc=gov,dc=on,dc=ca");
DirectorySearcher dsAllUsers = new DirectorySearcher(entryAllUsers);
string [] strAttrs = new
string[]{"givenName","sn","mail","telephoneNumber"};
dsAllUsers.Filter = "(objectClass=user)";
dsAllUsers.PropertiesToLoad.AddRange(strAttrs);
return "???????";
}
}
}