Multiple properties of the same name

Jul 1, 2014 at 9:48 PM
Understand that this LDAP is very poorly built...

I am working on looking up a group and getting the "members" of the group. How would i query this group that has many "member" attributes?

cn
TEST_WS
description
TEST_WS
member
cn=pjwensel,ou=Utilisateurs,o=algeco,c=com
cn=manceau,ou=Utilisateurs,o=algeco,c=com
objectClass
top
groupOfNames
owner
cn=manceau,ou=Utilisateurs,o=algeco,c=com
cn=pjwensel,ou=Utilisateurs,o=algeco,c=com

I did something like this but it obviously didn't work:
[DirectorySchema("ou=GroupesUtilisateurs,o=algeco,c=com", ObjectClass = "top")]
class TestWS
{
    [DirectoryAttribute("description", ReadOnly = true)]
    public string Description { get; set; }

    [DirectoryAttribute("member", ReadOnly = true)]
    public List<string> Member { get; set; }
}
var z = context.Query<TestWS>().Where(u => u.Description == "TEST_WS");
Coordinator
Jul 13, 2014 at 5:21 AM
I'm not sure I follow. Your mapping looks correct for a group. What didn't work when you queried for the group?