File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes memberOf attribute in LDAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "memberOf attribute in LDAP" Watch "memberOf attribute in LDAP" New topic
Author

memberOf attribute in LDAP

Madhav Kanneganti
Greenhorn

Joined: Jan 20, 2012
Posts: 25
I've been adding a member (cn=some name, ou=people,dc=xxx,dc=xxx) to a group directly, so far its good, but now onwards we need to check group before adding. i.e. we need to use the memberof operational attribute to check group membership.

Usually I simply use basic api to modify attributes, How do we use the memberof operational attribute in the above code? What is memberof attribute?
Madhav Kanneganti
Greenhorn

Joined: Jan 20, 2012
Posts: 25
Ok, I got clue on it.
memberOf is an attribute name which fetch the group names, i.e. If you give your id and search for memberOf attribute, you will get the list of groups associated to your id.
In my LDAP api, it is just normal search attribute, I thought its extra search other than normal search.

This puppy is in bed now..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: memberOf attribute in LDAP
 
Similar Threads
Ldap newbie
Modifying an attribute in LDAP using JNDI
How to Modify multivalued attribute in LDAP using java API?
LDAP on websphere app server 7 problem
Add user to ldap groups!!