|
Re: [CDO] : Authentification and userID [message #720865 is a reply to message #720837] |
Wed, 31 August 2011 11:59 |
Erdal Karaca Messages: 854 Registered: July 2009 |
Senior Member |
|
|
You would probably want to use this instead:
<repository name="prod">
<property name="overrideUUID" value="prod" />
<property name="supportingAudits" value="false" />
<property name="supportingBranches" value="false" />
<property name="ensureReferentialIntegrity" value="true" />
<userManager type="file" description="_database/repo1.users" />
You may register your own user manager, too.
[Updated on: Wed, 31 August 2011 12:00] Report message to a moderator
|
|
|
Re: [CDO] : Authentification and userID [message #720911 is a reply to message #720837] |
Wed, 31 August 2011 13:27 |
|
Hi Nathalie,
There have been several similar questions i nthis newsgroup. Citing one of my previous answers:
Using the IConnector based authentication is not the recommended way anymore. The new CDOSession based approach envolves
setting an IUserManager into the ISessionManager of the IRepository [This can be done via the XML config file as Erdal
pointed out]. On the client side you need to set an ICredentialsProvider into the CDOAuthenticator of the
CDOSessionConfiguration. Both the IUserManager and the ICredentialsProvider can be the same implementations that you
used with the Net4j based approach before.
I hope that helps
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Am 31.08.2011 12:18, schrieb Nathalie Lepine:
> Hi,
>
> I am connecting to CDO server with user name and password. For that, i follow the documentation
> http://wiki.eclipse.org/Use_CDO_Net4J_Authentification#CDO_4.0 and
>
> - create the PasswordCrendentialsProvider before the connection to the server is establish which happens in the
> TCPUtil.getConnector()
>
> - the server configuration defines an acceptor and negotiator
> <acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
> <negotiator type="challenge" description="_database/repo1.users"/>
> </acceptor>
>
> The connection is working (i have no exceptions) but after the connection, my CDOSession still have a null userId. Do
> i miss something ? or the userID is set elsewhere ?
>
> Thanks.
>
> Nathalie Lepine.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03169 seconds