Associate Ldap user to a group with Java

前端 未结 4 746
闹比i
闹比i 2021-01-05 17:25

I\'m having problems to find how to associate a #Ldap user to a given group.

That is what I have tried:

    Attributes attrs = new BasicAttributes();         


        
4条回答
  •  一整个雨季
    2021-01-05 17:49

    The value of the memberOf attribute is wrong. The memberOf attribute is probably a distinguished name. LDAP clients should consult the schema (the base DN of which might be available in the root DSE) when in doubt about the syntax, ordering, or matching rules of an attribute.

提交回复
热议问题