Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] How to configure the server side negotiator/client side to work with my user manager
[CDO] How to configure the server side negotiator/client side to work with my user manager [message #686782] Wed, 18 May 2011 17:43 Go to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could get
this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in net4j
somewhere).

- I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
- in plugin.xml I have this:
<extension point="org.eclipse.net4j.util.elementProcessors">
<elementProcessor class="myGreat.ChallengeProcessor"/>
</extension>
- and in the repository tag I have this:
<userManager type="MyUserManager" description="MyUserManager"/>

my processor gets called and my user manager gets set in the negotiator.

On the client I have this:
IPasswordCredentialsProvider credentialsProvider = new
PasswordCredentialsProvider(new
PasswordCredentials(uid,pass.toCharArray()));
sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);


Am I missing something, on the client or server side?

--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686783 is a reply to message #686782] Wed, 18 May 2011 20:40 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
I think that looks not too bad. Have you tried it? I didn't use auth for a while and rely on the test *that* it works.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 18.05.2011 19:43, schrieb Martin Taal:
> Hi,
> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in net4j somewhere).
>
> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
> - in plugin.xml I have this:
> <extension point="org.eclipse.net4j.util.elementProcessors">
> <elementProcessor class="myGreat.ChallengeProcessor"/>
> </extension>
> - and in the repository tag I have this:
> <userManager type="MyUserManager" description="MyUserManager"/>
>
> my processor gets called and my user manager gets set in the negotiator.
>
> On the client I have this:
> IPasswordCredentialsProvider credentialsProvider = new
> PasswordCredentialsProvider(new
> PasswordCredentials(uid,pass.toCharArray()));
> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>
>
> Am I missing something, on the client or server side?
>


Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686784 is a reply to message #686782] Wed, 18 May 2011 20:48 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 18.05.2011 19:43, schrieb Martin Taal:
> Hi,
> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in net4j somewhere).
>
> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
Sorry, looking again, I'm a little confused. What negotiator are you referring to?

I have a vague feeling that you're messing up Net4j IConnector negotiation (valid for all IChannels of that IConnector) with CDOSession authentication (part of the CDO-specific protocol that is associated with a single IChannel). The latter is newer and usually preferred in CDO. You need no <negotiator> element nested in your <acceptor> element of your cdo-server.xml.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> - in plugin.xml I have this:
> <extension point="org.eclipse.net4j.util.elementProcessors">
> <elementProcessor class="myGreat.ChallengeProcessor"/>
> </extension>
> - and in the repository tag I have this:
> <userManager type="MyUserManager" description="MyUserManager"/>
>
> my processor gets called and my user manager gets set in the negotiator.
>
> On the client I have this:
> IPasswordCredentialsProvider credentialsProvider = new
> PasswordCredentialsProvider(new
> PasswordCredentials(uid,pass.toCharArray()));
> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>
>
> Am I missing something, on the client or server side?
>


Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686785 is a reply to message #686784] Wed, 18 May 2011 20:55 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Yes I think that I am confusing things also :-). I have a UserManager extending the RepositoryManager. I have it
correctly defined in the cdo-server.xml and it gets instantiated. What should I do on the client and server to make use
of this UserManager?

gr. Martin

On 05/18/2011 10:48 PM, Eike Stepper wrote:
> Am 18.05.2011 19:43, schrieb Martin Taal:
>> Hi,
>> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could
>> get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in
>> net4j somewhere).
>>
>> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
> Sorry, looking again, I'm a little confused. What negotiator are you referring to?
>
> I have a vague feeling that you're messing up Net4j IConnector negotiation (valid for all IChannels of that IConnector)
> with CDOSession authentication (part of the CDO-specific protocol that is associated with a single IChannel). The latter
> is newer and usually preferred in CDO. You need no <negotiator> element nested in your <acceptor> element of your
> cdo-server.xml.
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>> - in plugin.xml I have this:
>> <extension point="org.eclipse.net4j.util.elementProcessors">
>> <elementProcessor class="myGreat.ChallengeProcessor"/>
>> </extension>
>> - and in the repository tag I have this:
>> <userManager type="MyUserManager" description="MyUserManager"/>
>>
>> my processor gets called and my user manager gets set in the negotiator.
>>
>> On the client I have this:
>> IPasswordCredentialsProvider credentialsProvider = new
>> PasswordCredentialsProvider(new
>> PasswordCredentials(uid,pass.toCharArray()));
>> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>>
>>
>> Am I missing something, on the client or server side?
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686802 is a reply to message #686785] Thu, 19 May 2011 13:44 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Found it :-), the description attribute of the userManager tag in the cdo-server.xml needs to be the same as the
repository name....

<userManager type="MyUserManager" description="repo1"/>

gr. Martin

On 05/18/2011 10:55 PM, Martin Taal wrote:
> Yes I think that I am confusing things also :-). I have a UserManager extending the RepositoryManager. I have it
> correctly defined in the cdo-server.xml and it gets instantiated. What should I do on the client and server to make use
> of this UserManager?
>
> gr. Martin
>
> On 05/18/2011 10:48 PM, Eike Stepper wrote:
>> Am 18.05.2011 19:43, schrieb Martin Taal:
>>> Hi,
>>> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could
>>> get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in
>>> net4j somewhere).
>>>
>>> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
>> Sorry, looking again, I'm a little confused. What negotiator are you referring to?
>>
>> I have a vague feeling that you're messing up Net4j IConnector negotiation (valid for all IChannels of that IConnector)
>> with CDOSession authentication (part of the CDO-specific protocol that is associated with a single IChannel). The latter
>> is newer and usually preferred in CDO. You need no <negotiator> element nested in your <acceptor> element of your
>> cdo-server.xml.
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>> - in plugin.xml I have this:
>>> <extension point="org.eclipse.net4j.util.elementProcessors">
>>> <elementProcessor class="myGreat.ChallengeProcessor"/>
>>> </extension>
>>> - and in the repository tag I have this:
>>> <userManager type="MyUserManager" description="MyUserManager"/>
>>>
>>> my processor gets called and my user manager gets set in the negotiator.
>>>
>>> On the client I have this:
>>> IPasswordCredentialsProvider credentialsProvider = new
>>> PasswordCredentialsProvider(new
>>> PasswordCredentials(uid,pass.toCharArray()));
>>> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>>>
>>>
>>> Am I missing something, on the client or server side?
>>>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686806 is a reply to message #686802] Thu, 19 May 2011 16:09 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 19.05.2011 15:44, schrieb Martin Taal:
> Found it :-), the description attribute of the userManager tag in the cdo-server.xml needs to be the same as the repository name....
From the perspective of the (generic) IManagedContainer the description attribute distinguishes and identifies container elements that have the same product group and factory type.

From the perspective of the identified container element (or better its IFactory) the description attribute maybe used in an arbitrary way to influence the element creation process.

>
> <userManager type="MyUserManager" description="repo1"/>
Yes, because in your case the IUserManager (== product group) is a subclass of RepositoryUserManager (== factory type), which interprets and uses the decsription as the name of the target repository ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> gr. Martin
>
> On 05/18/2011 10:55 PM, Martin Taal wrote:
>> Yes I think that I am confusing things also :-). I have a UserManager extending the RepositoryManager. I have it
>> correctly defined in the cdo-server.xml and it gets instantiated. What should I do on the client and server to make use
>> of this UserManager?
>>
>> gr. Martin
>>
>> On 05/18/2011 10:48 PM, Eike Stepper wrote:
>>> Am 18.05.2011 19:43, schrieb Martin Taal:
>>>> Hi,
>>>> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could
>>>> get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in
>>>> net4j somewhere).
>>>>
>>>> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
>>> Sorry, looking again, I'm a little confused. What negotiator are you referring to?
>>>
>>> I have a vague feeling that you're messing up Net4j IConnector negotiation (valid for all IChannels of that IConnector)
>>> with CDOSession authentication (part of the CDO-specific protocol that is associated with a single IChannel). The latter
>>> is newer and usually preferred in CDO. You need no <negotiator> element nested in your <acceptor> element of your
>>> cdo-server.xml.
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://www.esc-net.de
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
>>>> - in plugin.xml I have this:
>>>> <extension point="org.eclipse.net4j.util.elementProcessors">
>>>> <elementProcessor class="myGreat.ChallengeProcessor"/>
>>>> </extension>
>>>> - and in the repository tag I have this:
>>>> <userManager type="MyUserManager" description="MyUserManager"/>
>>>>
>>>> my processor gets called and my user manager gets set in the negotiator.
>>>>
>>>> On the client I have this:
>>>> IPasswordCredentialsProvider credentialsProvider = new
>>>> PasswordCredentialsProvider(new
>>>> PasswordCredentials(uid,pass.toCharArray()));
>>>> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>>>>
>>>>
>>>> Am I missing something, on the client or server side?
>>>>
>>
>>
>
>


Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686956 is a reply to message #686782] Wed, 18 May 2011 20:40 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
I think that looks not too bad. Have you tried it? I didn't use auth for a while and rely on the test *that* it works.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 18.05.2011 19:43, schrieb Martin Taal:
> Hi,
> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in net4j somewhere).
>
> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
> - in plugin.xml I have this:
> <extension point="org.eclipse.net4j.util.elementProcessors">
> <elementProcessor class="myGreat.ChallengeProcessor"/>
> </extension>
> - and in the repository tag I have this:
> <userManager type="MyUserManager" description="MyUserManager"/>
>
> my processor gets called and my user manager gets set in the negotiator.
>
> On the client I have this:
> IPasswordCredentialsProvider credentialsProvider = new
> PasswordCredentialsProvider(new
> PasswordCredentials(uid,pass.toCharArray()));
> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>
>
> Am I missing something, on the client or server side?
>


Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686957 is a reply to message #686782] Wed, 18 May 2011 20:48 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 18.05.2011 19:43, schrieb Martin Taal:
> Hi,
> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in net4j somewhere).
>
> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
Sorry, looking again, I'm a little confused. What negotiator are you referring to?

I have a vague feeling that you're messing up Net4j IConnector negotiation (valid for all IChannels of that IConnector) with CDOSession authentication (part of the CDO-specific protocol that is associated with a single IChannel). The latter is newer and usually preferred in CDO. You need no <negotiator> element nested in your <acceptor> element of your cdo-server.xml.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> - in plugin.xml I have this:
> <extension point="org.eclipse.net4j.util.elementProcessors">
> <elementProcessor class="myGreat.ChallengeProcessor"/>
> </extension>
> - and in the repository tag I have this:
> <userManager type="MyUserManager" description="MyUserManager"/>
>
> my processor gets called and my user manager gets set in the negotiator.
>
> On the client I have this:
> IPasswordCredentialsProvider credentialsProvider = new
> PasswordCredentialsProvider(new
> PasswordCredentials(uid,pass.toCharArray()));
> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>
>
> Am I missing something, on the client or server side?
>


Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686958 is a reply to message #686784] Wed, 18 May 2011 20:55 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Yes I think that I am confusing things also :-). I have a UserManager extending the RepositoryManager. I have it
correctly defined in the cdo-server.xml and it gets instantiated. What should I do on the client and server to make use
of this UserManager?

gr. Martin

On 05/18/2011 10:48 PM, Eike Stepper wrote:
> Am 18.05.2011 19:43, schrieb Martin Taal:
>> Hi,
>> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could
>> get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in
>> net4j somewhere).
>>
>> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
> Sorry, looking again, I'm a little confused. What negotiator are you referring to?
>
> I have a vague feeling that you're messing up Net4j IConnector negotiation (valid for all IChannels of that IConnector)
> with CDOSession authentication (part of the CDO-specific protocol that is associated with a single IChannel). The latter
> is newer and usually preferred in CDO. You need no <negotiator> element nested in your <acceptor> element of your
> cdo-server.xml.
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>> - in plugin.xml I have this:
>> <extension point="org.eclipse.net4j.util.elementProcessors">
>> <elementProcessor class="myGreat.ChallengeProcessor"/>
>> </extension>
>> - and in the repository tag I have this:
>> <userManager type="MyUserManager" description="MyUserManager"/>
>>
>> my processor gets called and my user manager gets set in the negotiator.
>>
>> On the client I have this:
>> IPasswordCredentialsProvider credentialsProvider = new
>> PasswordCredentialsProvider(new
>> PasswordCredentials(uid,pass.toCharArray()));
>> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>>
>>
>> Am I missing something, on the client or server side?
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686977 is a reply to message #686785] Thu, 19 May 2011 13:44 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Found it :-), the description attribute of the userManager tag in the cdo-server.xml needs to be the same as the
repository name....

<userManager type="MyUserManager" description="repo1"/>

gr. Martin

On 05/18/2011 10:55 PM, Martin Taal wrote:
> Yes I think that I am confusing things also :-). I have a UserManager extending the RepositoryManager. I have it
> correctly defined in the cdo-server.xml and it gets instantiated. What should I do on the client and server to make use
> of this UserManager?
>
> gr. Martin
>
> On 05/18/2011 10:48 PM, Eike Stepper wrote:
>> Am 18.05.2011 19:43, schrieb Martin Taal:
>>> Hi,
>>> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could
>>> get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in
>>> net4j somewhere).
>>>
>>> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
>> Sorry, looking again, I'm a little confused. What negotiator are you referring to?
>>
>> I have a vague feeling that you're messing up Net4j IConnector negotiation (valid for all IChannels of that IConnector)
>> with CDOSession authentication (part of the CDO-specific protocol that is associated with a single IChannel). The latter
>> is newer and usually preferred in CDO. You need no <negotiator> element nested in your <acceptor> element of your
>> cdo-server.xml.
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
>>> - in plugin.xml I have this:
>>> <extension point="org.eclipse.net4j.util.elementProcessors">
>>> <elementProcessor class="myGreat.ChallengeProcessor"/>
>>> </extension>
>>> - and in the repository tag I have this:
>>> <userManager type="MyUserManager" description="MyUserManager"/>
>>>
>>> my processor gets called and my user manager gets set in the negotiator.
>>>
>>> On the client I have this:
>>> IPasswordCredentialsProvider credentialsProvider = new
>>> PasswordCredentialsProvider(new
>>> PasswordCredentials(uid,pass.toCharArray()));
>>> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>>>
>>>
>>> Am I missing something, on the client or server side?
>>>
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [CDO] How to configure the server side negotiator/client side to work with my user manager [message #686982 is a reply to message #686802] Thu, 19 May 2011 16:09 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 19.05.2011 15:44, schrieb Martin Taal:
> Found it :-), the description attribute of the userManager tag in the cdo-server.xml needs to be the same as the repository name....
From the perspective of the (generic) IManagedContainer the description attribute distinguishes and identifies container elements that have the same product group and factory type.

From the perspective of the identified container element (or better its IFactory) the description attribute maybe used in an arbitrary way to influence the element creation process.

>
> <userManager type="MyUserManager" description="repo1"/>
Yes, because in your case the IUserManager (== product group) is a subclass of RepositoryUserManager (== factory type), which interprets and uses the decsription as the name of the target repository ;-)

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> gr. Martin
>
> On 05/18/2011 10:55 PM, Martin Taal wrote:
>> Yes I think that I am confusing things also :-). I have a UserManager extending the RepositoryManager. I have it
>> correctly defined in the cdo-server.xml and it gets instantiated. What should I do on the client and server to make use
>> of this UserManager?
>>
>> gr. Martin
>>
>> On 05/18/2011 10:48 PM, Eike Stepper wrote:
>>> Am 18.05.2011 19:43, schrieb Martin Taal:
>>>> Hi,
>>>> To get the authentication working I have to have a negotiator tag in my cdo-server.xml. I was wondering how I could
>>>> get this to work so that the negotiator would use my user manager. I tried the below but it did not work (get npe in
>>>> net4j somewhere).
>>>>
>>>> - I extended the ChallengeNegotiatorConfigurer and in this subclass I set my own usermanager in the Negotiator
>>> Sorry, looking again, I'm a little confused. What negotiator are you referring to?
>>>
>>> I have a vague feeling that you're messing up Net4j IConnector negotiation (valid for all IChannels of that IConnector)
>>> with CDOSession authentication (part of the CDO-specific protocol that is associated with a single IChannel). The latter
>>> is newer and usually preferred in CDO. You need no <negotiator> element nested in your <acceptor> element of your
>>> cdo-server.xml.
>>>
>>> Cheers
>>> /Eike
>>>
>>> ----
>>> http://www.esc-net.de
>>> http://thegordian.blogspot.com
>>> http://twitter.com/eikestepper
>>>
>>>
>>>> - in plugin.xml I have this:
>>>> <extension point="org.eclipse.net4j.util.elementProcessors">
>>>> <elementProcessor class="myGreat.ChallengeProcessor"/>
>>>> </extension>
>>>> - and in the repository tag I have this:
>>>> <userManager type="MyUserManager" description="MyUserManager"/>
>>>>
>>>> my processor gets called and my user manager gets set in the negotiator.
>>>>
>>>> On the client I have this:
>>>> IPasswordCredentialsProvider credentialsProvider = new
>>>> PasswordCredentialsProvider(new
>>>> PasswordCredentials(uid,pass.toCharArray()));
>>>> sessionConfiguration.getAuthenticator().setCredentialsProvider(credentialsProvider);
>>>>
>>>>
>>>> Am I missing something, on the client or server side?
>>>>
>>
>>
>
>


Previous Topic:(no subject)
Next Topic:Keeping different in-memory instances of same model synchronized
Goto Forum:
  


Current Time: Fri Apr 26 16:24:48 GMT 2024

Powered by FUDForum. Page generated in 0.05183 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top