spring security ldap additional attributes -


i add few additional ldap attributes (actually one) userdetail object. seems way override usercontextmapper classes involves extending person class , essence class within it. seems little work add additional attributes. before pursuing route wanted make sure there isnt easier way accomplish this.

basically have attribute called "collections" in ldap have available on principal object within application.

thanks

you don't have extend internal classes if don't want to. thing userdetailscontextmapper requires object return mapuserfromcontext implements userdetails.

so should able read attributes want (including "collections") ldap context object (the dircontextoperations) , use these create instance.


Comments

Popular posts from this blog

c# - HttpResponseMessage System.InvalidOperationException -

sql - Postgresql error: "failed to find conversion function from unknown to text" -