You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Erdal Karaca (JIRA)" <ji...@apache.org> on 2009/04/20 09:32:47 UTC
[jira] Created: (DIRSTUDIO-485) Provide default IAuthHandler to be
used in connections core without connections ui
Provide default IAuthHandler to be used in connections core without connections ui
----------------------------------------------------------------------------------
Key: DIRSTUDIO-485
URL: https://issues.apache.org/jira/browse/DIRSTUDIO-485
Project: Directory Studio
Issue Type: Improvement
Components: studio-connection
Reporter: Erdal Karaca
(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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DIRSTUDIO-485) Provide default IAuthHandler and
IReferralHandler to be used in connections core without connections ui
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seelmann updated DIRSTUDIO-485:
--------------------------------------
Affects Version/s: 1.4.0
Fix Version/s: 1.5.0
Assignee: Stefan Seelmann
Summary: Provide default IAuthHandler and IReferralHandler to be used in connections core without connections ui (was: Provide default IAuthHandler to be used in connections core without connections ui)
I added "and IReferralHandler" to the summary because it is very similar problem.
> Provide default IAuthHandler and IReferralHandler to be used in connections core without connections ui
> -------------------------------------------------------------------------------------------------------
>
> Key: DIRSTUDIO-485
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-485
> Project: Directory Studio
> Issue Type: Improvement
> Components: studio-connection
> Affects Versions: 1.4.0
> Reporter: Erdal Karaca
> Assignee: Stefan Seelmann
> Fix For: 1.5.0
>
>
> (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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DIRSTUDIO-485) Provide default IAuthHandler and
IReferralHandler to be used in connections core without connections ui
Posted by "Pierre-Arnaud Marcelot (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre-Arnaud Marcelot closed DIRSTUDIO-485.
--------------------------------------------
Apache Directory studio version 1.5.0 has been released.
> Provide default IAuthHandler and IReferralHandler to be used in connections core without connections ui
> -------------------------------------------------------------------------------------------------------
>
> Key: DIRSTUDIO-485
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-485
> Project: Directory Studio
> Issue Type: Improvement
> Components: studio-connection
> Affects Versions: 1.4.0
> Reporter: Erdal Karaca
> Assignee: Stefan Seelmann
> Fix For: 1.5.0
>
>
> (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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (DIRSTUDIO-485) Provide default IAuthHandler and
IReferralHandler to be used in connections core without connections ui
Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DIRSTUDIO-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seelmann resolved DIRSTUDIO-485.
---------------------------------------
Resolution: Fixed
Added a default auth handler and referral handler:
http://svn.apache.org/viewvc?rev=768052&view=rev
> Provide default IAuthHandler and IReferralHandler to be used in connections core without connections ui
> -------------------------------------------------------------------------------------------------------
>
> Key: DIRSTUDIO-485
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-485
> Project: Directory Studio
> Issue Type: Improvement
> Components: studio-connection
> Affects Versions: 1.4.0
> Reporter: Erdal Karaca
> Assignee: Stefan Seelmann
> Fix For: 1.5.0
>
>
> (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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.