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

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -