Hi Andrey,

Thanks for getting back to me. I'll try it in the next days.
As a workaround (in production) I have added the option 
 -Dsecurity.maxCachedUsers=0 in server.sh
 

On Thursday, June 5, 2014 9:28:21 PM UTC+1, Andrey Lomakin wrote:
>
> Hi Fabrizio,
> Sorry for that it is already fixed in 1.7.2-SNAPSHOT.
>
> Could you try it ?
>
>
> On Thu, Jun 5, 2014 at 10:41 PM, Fabrizio Fortino <[email protected] 
> <javascript:>> wrote:
>
>> Hi guys,
>>
>> I noticed a pretty critical problem with OrientDB 1.7
>>
>> Basically, my application creates a database using the Java API and then 
>> changes the admin password with the code below:
>>
>> OUser oUser = security.getUser("admin");
>> oUser.setPassword("mypassword"); 
>> oUser.addRole("admin"); 
>> oUser.save(); 
>>
>>
>> If I try to access the database using "mypassword" it does not work (User 
>> or password not valid for database: mydb). Same error from console.
>>
>> Using the default password ('admin') it works. 
>>
>> If I restart the server I have to use 'mypassword' to connect to the 
>> database.
>>
>> I think this problem is related to the introduction of the User cache 
>> feature (https://github.com/orientechnologies/orientdb/issues/2196).
>>
>> How can I completely disable the cache to sort the problem out?
>>
>> Cheers,
>>
>> F.
>>  
>> -- 
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "OrientDB" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Best regards,
> Andrey Lomakin.
>
> Orient Technologies
> the Company behind OrientDB
>
>  

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to