2

In my .net application for authentication i use Oracle LDAP (Oracle Identity Directory). And authorisation can be user base or role base. I can take user roles from LDAP. But i cant add user to a group. How can i do that?

1 Answer 1

1

If u can enter to odsm u'll see, users are in group with "uniquemember" attribute. So if u need that s the solution;

//Connect LDAP
var request = new ModifyRequest { DistinguishedName = roleDn };
var dirmod = new DirectoryAttributeModification{Operation = DirectoryAttributeOperation.Add,Name = "uniquemember"};
dirmod.Add(userDn);
request.Modifications.Add(dirmod);
var response = (ModifyResponse)ldapConnection.SendRequest(request); 
//Check response.ResultCode
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.