Directory Studio
  1. Directory Studio
  2. DIRSTUDIO-485

Provide default IAuthHandler and IReferralHandler to be used in connections core without connections ui

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.5.0
    • Component/s: studio-connection
    • Labels:
      None

      Description

      (FYI: this was already discussed on the dev mailing list)

      I want to reuse the connections sub-component in a custom rcp.
      Problem: When connections ui is not loaded yet, connections core will fail to operate, since it needs a IAuthHandler.

      In my case, I did the following (as suggested by Stefan Seelman) just before connections core is used:
      ---8<-----
      IAuthHandler ah = ConnectionCorePlugin.getDefault().getAuthHandler();

      if ( ah == null ) {
      ah = new IAuthHandler() {
      public ICredentials getCredentials(
      ConnectionParameter params )

      { return new Credentials( params.getBindPrincipal(), params.getBindPassword(), params ); }

      };
      }

      ConnectionCorePlugin.getDefault().setAuthHandler( ah );
      ---8<-----

      Of course, this works only if user already set up a valid connection through the new connection wizard.

      connections core needs to be operable without ui.

        Activity

        Erdal Karaca created issue -
        Hide
        Stefan Seelmann added a comment -

        I added "and IReferralHandler" to the summary because it is very similar problem.

        Show
        Stefan Seelmann added a comment - I added "and IReferralHandler" to the summary because it is very similar problem.
        Stefan Seelmann made changes -
        Field Original Value New Value
        Summary Provide default IAuthHandler to be used in connections core without connections ui Provide default IAuthHandler and IReferralHandler to be used in connections core without connections ui
        Assignee Stefan Seelmann [ seelmann ]
        Fix Version/s 1.5.0 [ 12313682 ]
        Affects Version/s 1.4.0 [ 12313402 ]
        Hide
        Stefan Seelmann added a comment -

        Added a default auth handler and referral handler:
        http://svn.apache.org/viewvc?rev=768052&view=rev

        Show
        Stefan Seelmann added a comment - Added a default auth handler and referral handler: http://svn.apache.org/viewvc?rev=768052&view=rev
        Stefan Seelmann made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Pierre-Arnaud Marcelot added a comment -

        Apache Directory studio version 1.5.0 has been released.

        Show
        Pierre-Arnaud Marcelot added a comment - Apache Directory studio version 1.5.0 has been released.
        Pierre-Arnaud Marcelot made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Stefan Seelmann
            Reporter:
            Erdal Karaca
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development