Announcement Announcement Module
Collapse
No announcement yet.
Dynamic setting of the DN Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dynamic setting of the DN

    Hi all,

    I'm relatively new to spring so I hope this isn't a dumb question.

    I am building a web app backed by an LDAP repository. The app is to be used by external organisations. I need to build the DN dynamically to include the organisation name which I extract from a digital certificate that the organisation uses to authenticate. I am not using autowiring of my dao beans with an LdapTemplate because I want to specify the DN in the constructor of the dao object.
    This has the advantage of ensuring that no leakage of data occurs between orgnisations.

    Alternatively, I was thinking I could use a beanpreprocessor in my dao to set the DN getting the value from a session object containing the orgName extracted from the certificate. If I choose this option I could autowire both the dao bean with an LdapTemplate and autowire the setter to get the orgName.

    Is there a preferred approach using Spring? Has anyone had a similar issue?

    Thanks in advance.
Working...
X