Last post Sep 11, 2017 09:08 AM by Jean Sun
Sep 06, 2017 01:31 PM|gimovid|LINK
Hi all, I am strugling to add users to a group i have created in my openldap server. users listed under ou=users,dc=.... and i have created ou call groups and sub group under groups call testusers then i have created new user cal test11 and trying to add
to group testusers.. I tried both way add memberuid in group attribute failed. then i tried add memberOf attribute in user to say user is memberof testusers....
then i tried member attribute bcos I have seen it some where in a forum. but that fails too.. anyone to help me on how to add members to groups?
Sep 06, 2017 01:36 PM|gimovid|LINK
I have copied the code here
string groupdn = "ou="+groupname+",ou=groups" + dc;
string userdn = "cn=" + username + usersdc ;
DirectoryAttributeModification addnewusertogroup = new DirectoryAttributeModification();
addnewusertogroup.Operation = DirectoryAttributeOperation.Replace;
addnewusertogroup.Name = "member";
ModifyRequest modifyreq = new ModifyRequest(userdn , addnewusertogroup);
add memberuid to group
string groupdn = "cn="+groupname +",ou=Groups" + dc;
string userdn = "cn=" + username + usersdc;
String attribVals = new String;
attribVals = userdn;
ModifyRequest modifyreq = new ModifyRequest(groupdn, DirectoryAttributeOperation.Add, "memberUid", attribVals);
Sep 07, 2017 07:20 AM|Jean Sun|LINK
I just replied on the older thread(https://forums.asp.net/t/2127524.aspx), please check.
Sep 07, 2017 12:41 PM|gimovid|LINK
jean, when i pulled out sample details of a windows AD user i can see memberOf attribute is there ... but i cannot user that in openldap user. is there anyway that i can add groups (array of groups) to a user ?
I am using inetorgPerson object class for user.
Sep 11, 2017 09:08 AM|Jean Sun|LINK
I have replied on your older thread, I suggest that we can keep tracking this issue in this new thread then.