0 Replies Latest reply on Nov 23, 2011 8:30 AM by terrafant

    LdapIdentityStore and parameters from components.properties

    terrafant Newbie

      I have configured my application to use LDAP. It works fine. But now I need to add popup for user before login (I do it in the derived Identity class method login). Unfortunately ldap configuration data from components.properties for LdapIdentityStore is not yet loaded. Of course I can load this configuration as usual file, but maybe there is a better solution.
      Here is code from components.xml.


       <security:ldap-identity-store startup="true" scope="APPLICATION" 
                                        name="myLdapIdentityStore"
                                        class="xxx.xxx.MyLdapIdentityStore"
                                        server-address="@server-address@"
                                        server-port="@server-port@"
                                        first-name-attribute="@first-name-attribute@"
                                        last-name-attribute="@last-name-attribute@"
                                        bind-DN="@bind-DN@"
                                        bind-credentials="@bind-credentials@"
                                        user-DN-prefix="@user-DN-prefix@"
                                        user-name-attribute="@user-name-attribute@"
                                        user-DN-suffix="@user-DN-suffix@"
                                        user-context-DN="@user-context-DN@"
                                        role-DN-prefix="@role-DN-prefix@"
                                        role-name-attribute="@role-name-attribute@"
                                        role-object-classes="@role-object-classes@"
                                        role-DN-suffix="@role-DN-suffix@"
                                        role-context-DN="@role-context-DN@"
                                        user-role-attribute="@user-role-attribute@"
                                        user-object-classes="@user-object-classes@"
                                        role-attribute-is-DN="@role-attribute-is-DN@"/>