Questions tagged [linq-to-ldap]

LINQ to LDAP is a LINQ provider built on top of System.DirectoryServices.Protocols for querying and updating LDAP servers.

LINQ to LDAP is a LINQ provider built on top of System.DirectoryServices.Protocols for querying and updating LDAP servers.

Homepage

Nuget

12 questions
2
votes
3 answers

Use of unassigned local variable LinqToLdap

I want to get list of users in my MVC. Visual Studio keeps saying that I'm "Use of unassigned local variable 'model' ". I've tried different methods but can't fix the error. Can anyone tell me where I'm doing wrong?. public ActionResult…
Kasra
  • 59
  • 6
2
votes
1 answer

LDAP to a mainframe environment

Possible Duplicate: Querying an LDAP in C# I'm currently transposing some old ASP code from VBScript to C# and have gotten stuck on a piece that uses LDAP to connect to our IBM Top Secret environment. Any one know of some documentation /…
AA11oAKas
  • 809
  • 1
  • 11
  • 23
1
vote
3 answers

C# Query Language for building LDAP queries

does anyone know of any strongly typed language for building LDAP queries in C#? I'd like to move away from (&(|(objectClass=user)(objectClass=group)(objectClass=computer)(objectClass=contact))((objectGUID={0}))) and preferably have a fluid api for…
hoetz
  • 2,368
  • 4
  • 26
  • 58
1
vote
0 answers

LINQ to LDAP: lockoutTime is set to 0 on update if user is locked out

We're developing a portal where administrators can manage user and group object in Active Directory without having access to the server itself. Whenever a user is locked out by policies, updating the user will always unlock the user even though we…
PBX_g33k
  • 851
  • 1
  • 6
  • 12
1
vote
0 answers

Using LINQ to LDAP to query the Active Directory, how to define DirectorySchema?

I want to query the Active Directory with LDAP for groups that contain part of a string and then display how many users are in each group. To do this I was looking into LINQ to LDAP since I enjoy using the LINQ syntax. For querying with this method…
user2609980
  • 10,264
  • 15
  • 74
  • 143
1
vote
1 answer

Authenticate user using LinqtoLDAP

I'm using Linq to LDAP, and was wondering if there's a way to authenticate against the AD using Linq to LDAP, Maybe something to the effect of this var user = context.Query().FirstOrDefault(u => u.SAMAccountName == "user123" && u.Password ==…
Null Reference
  • 11,260
  • 40
  • 107
  • 184
0
votes
1 answer

Mapping LDAP Data to .NET Classes (LINQ)

I've been using several different tuts in order to build a LINQ-to-LDAP model. I've just about got it complete, but I'm running into some issues trying to bind the data returned to a class. I do the reverse part by assigning custom attributes to…
regex
  • 3,585
  • 5
  • 31
  • 41
0
votes
0 answers

Why does my filter not return results when I exclude AD groups?

I am using linq to ldap to generate a list of active Active Directory users. In this case what I have done is exclude useless users(devices and generic users) from the list. However when I do that my search/filter no longer returns results. Here is…
Skullomania
  • 2,225
  • 2
  • 29
  • 65
0
votes
1 answer

Using Castle Windsor with LinqToLDAP

I downloaded the LinqToLdap GIT example project that uses SimpleInjector as the Inversion of Control container and translated the code accross to Castle Windsor. My config code looks like this: container.Register(Component.For() …
Ian Barrett
  • 106
  • 4
0
votes
0 answers

Calculated attributes in model results in The requested attribute does not exist

Having trouble update users in AD My Model: public class UserModel { .... [ScaffoldColumn(false)] [DisplayName("Fødselsdag")] [DataType(DataType.Date)] [NotMapped] public DateTime extensionAttribute1_date { get …
0
votes
1 answer

LinqToLdap query multiple namingContexts

I'm using LinqToLdap. I've been successful to search users from within one namingContext (ie, this is a particular OU within the AD). What I want to do is add another namingContext and be able to query both of them at once. Do you know how I can…
dotnethaggis
  • 1,000
  • 12
  • 26
0
votes
1 answer

Linq to ldap User Model resturns Server instead of user

I am using LinqToLdap and tried to find all users from our AD by using the example provided by LinqToLdap. But with no success. First I tried to modify the Model to better fit our AD [DirectorySchema("DC=corp,DC=intern", ObjectClass =…
JJR
  • 773
  • 2
  • 13
  • 32