I'm trying to get a user out of Active directory using their username and password. Does anyone know how to do this in C# in addition to getting the security group they belong to?
Edit: This problem got more complicated (the requirements changed on me after a meeting). The security groups are nested within AD.
...
If you have a method that needs to be tested that takes a list of SearchResults
public virtual void ProcessResults(IList<SearchResult> list)
{
//Code to tests here
}
How do you mock up that list of SearchResult?
Note: No low-level injection frameworks (eg TypeMock) allowed.
...
I am trying to retrieve data about groups on LDAP. As I need to paginate results, I need to run range queries. My setup uses JNDI to connect to LDAP. I am trying to run this query
(&(objectclass=group)(range=1-500))
What am I doing wrong? I know there are range based queries for LDAP,how do I modify this query for get the same?
...
I'm looking for an example scenario where this function could be used. MSDN documentation is non-existent.
TIA
...
I am working on a system architecture for a fund/pension manager. We are providing two ASP.NET MVC web applications; one to allow members of the pension fund to login and check their balances, manage their investment, etc and another to allow employers to make contributions to the fund on the employees (members) behalf. There are also in...
Suppose i have a following LDAP query:
Base DN: OU=Groups,DC=office,DC=domain,DC=org
Filter: (member:1.2.840.113556.1.4.1941:=CN=adam smith,OU=Users,DC=office,DC=domain,DC=org)
How can I execute it under Delphi(2007)? Examples using ADO seem to have SQL'ish syntax and I do not now how to convert it?
...
Hi,
I have set the ActiveDirectoryMembershipProvider connectionProtection attribute to secure, according to MSDN documentation states that when this is set to secure the following holds:
"The ActiveDirectoryMembershipProvider class will attempt to connect to Active Directory using SSL. If SSL fails, a second attempt to connect to Activ...
I'm working on a plug-in to one of our products (an RMS) that will allow customers to import employee information stored in their LDAP directory into a corresponding Person record in our application.
Our RMS allows Person records to have multiple names and addresses (it's a public safety system: this feature is for supporting persons wi...
I want to add some rules to SSP Audiences and I can't access to Active Directory Groups in this rules.
When you want to add a rule you have 2 option: 1-User, 2-Property. I am using User option so I have to choose "Reports Under" or "Member of".
When I choose Reports Under I can't find any AD Group in search popup.
I tried Full Import ...
How do I retrieve the users in a given AD group?
Do I start by instantiating a PrincipalContext with a domain, username and password?
...
Background
I am in the process of creating an application (referred to as MyApp) which must read data out from a SQL Server database handled by Navision. Navision users should to be able to use my application, without modifying permissions in the database.
Navision's handling of permissions seems to be on the application layer. It perf...
Hello,
I want to search every computer known to LDAP and list all accounts on each computer which are Administrators.
I'm familiar with LDAP queries, I just don't know if this is possible, and if it is - what the syntax would be.
Thanks in advance,
Jim
...
It seems that the changes are not saving within ActiveDirectory despite me using the CommitChanges function. Am I using the correct approach to solve this issue?
static void Main(string[] args)
{
//Test OU Group: OU=First Group,OU=Domain Users,DC=DOMAIN,DC=com
String userName, password;
Console.Write("Userna...
Currently building a WPF app that will run in an environment where the user logs into Windows PC which is on a domain (DC). The app will ask the user to enter their login and password again when it starts up, and the login/password will be verified against Active Directory (forgive me if my terminology is not correct here).
The login i...
I am writing the following methods to add and remove users from active directory in C#.
void AddUserToGroup(string userId, string groupName);
void RemoveUserFromGroup(string userId, string groupName);
How best to implement these methods?
Here is some code from CodeProject. I can't see where the AD server is specified in these example...
I need to look for an example of a web application, preferably ASP.NET but any otherweb language will do, that lets Mac and Windows users change their AD password.
Any technique, application, or source code will be great.
P.S: our Macs are not connected to AD and we also have Windows users.
Thanks!
...
Hi to all,
My application creates a SharePoint site and an Active Directory group from user input. Special characters that are mentioned in http://www.webmonkey.com/reference/Special_Characters becomes a big problem in my application. Application creates group names differently and application can't access them from name property. I wan...
Recently, while putting together some code to page Active Directory results beyond sizeLimit=1000, we ran into a strange behavior/bug of AD. Specifically, if we had an OU with a space in the search base, it caused an error:
String base = "OU=Area X,OU=myserver,DC=my,DC=ad,DC=myserver,DC=com";
env.put(Context.PROVIDER_URL, "ldap://my.ad....
Hi,
I am reading this article on how to work with AD via C#. Half way through the article, the below code is presented.
The user account properties are checkboxes. Does anyone have any idea what the below line of code will return for a checked checkbox? What if more than 1 checkbox is checked? I'd have thought a bool being returned wou...
I have a method AddUserToGroup to add a user to an active directory group.
I am invoking the method on a machine not attached to the domain controller containing the user and group.
When group.Save() is invoked an PrincipalOperationException is thrown:
"Information about the domain could not be retrieved (1355)."
Does AD prevent modi...