魏昕路 | 1 Feb 12:50
Picon

SecureStorage: Can not get the password after system user password has been changed

Hello,
 
I'm using secure storage to store my password. I changed my system password by the prompt that I'm getting from the windows logon screen as a reminder that my password expired. After that, the password can not be read and it can not be stored again. It only occurs on some of my Winodws machines.
 
I'm thinking about solve the problem by removing the secore_storage file in C:\Documents and Settings\Administrator\.eclipse\org.eclipse.equinox.security when get exception when reading the password. However, there's only one internal method "InternalExchangeUtils.defaultStorageDelete()". I'm not supposed to use that internal method although it did solve the problem.
 
I also tried to use my own secure_storage file. The code I used to open and delete my secure preference is:
 
root = SecurePreferencesFactory.open(storeUrl, null);
passwordNode = ibgRoot.node(PASSWORD_NODE);
 
public static void clearStore() {
{
    ....
    passwordNode.clear();
    passwordNode = null;
    ....
    File file = new File(storeUrl.getPath());
    file.delete();
}
 
But still I can't store the password. There'll be a StorageException when:
 
passwordNode.put(PASSWORD_KEY, password, true); 
 
I think something should have been missed in clearStore(). (maybe close() ?)
Is there any one in the list can help me?  Thank you!
魏昕路 | 1 Feb 13:17
Picon

Re: SecureStorage: Can not get the password after system user password has been changed

Make the question simpler:

How to delete the secure storage when the system user password has been changed?
 
2010/2/1 魏昕路 <appleren214-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Hello,
 
I'm using secure storage to store my password. I changed my system password by the prompt that I'm getting from the windows logon screen as a reminder that my password expired. After that, the password can not be read and it can not be stored again. It only occurs on some of my Winodws machines.
 
I'm thinking about solve the problem by removing the secore_storage file in C:\Documents and Settings\Administrator\.eclipse\org.eclipse.equinox.security when get exception when reading the password. However, there's only one internal method "InternalExchangeUtils.defaultStorageDelete()". I'm not supposed to use that internal method although it did solve the problem.
 
I also tried to use my own secure_storage file. The code I used to open and delete my secure preference is:
 
root = SecurePreferencesFactory.open(storeUrl, null);
passwordNode = ibgRoot.node(PASSWORD_NODE);
 
public static void clearStore() {
{
    ....
    passwordNode.clear();
    passwordNode = null;
    ....
    File file = new File(storeUrl.getPath());
    file.delete();
}
 
But still I can't store the password. There'll be a StorageException when:
 
passwordNode.put(PASSWORD_KEY, password, true); 
 
I think something should have been missed in clearStore(). (maybe close() ?)
Is there any one in the list can help me?  Thank you!



--
魏昕路
email: appleren214-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
MSN: xinlu_wei-KN7UnAbNpbg@public.gmane.org
Oleg Besedin | 1 Feb 16:07
Picon
Gravatar

Re: Re: SecureStorage: Can not get the password after system user password has been changed


Window -> Preferences -> General -> Security -> Secure Storage, switch to the "Contents" tab; press "Delete".

That said, regular changing of the Windows password should not invalidate the secure storage. There are some situations described here:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=274128

that can cause that to happen; most notably it happens when administrator resets user's password.

Sincerely,
Oleg Besedin


From: 魏昕路 <appleren214 <at> gmail.com>
To: equinox-dev <at> eclipse.org
Date: 02/01/2010 07:19 AM
Subject: [equinox-dev] Re: SecureStorage: Can not get the password after        system user password has been changed
Sent by: equinox-dev-bounces <at> eclipse.org




Make the question simpler:

How to delete the secure storage when the system user password has been changed?
 
2010/2/1 魏昕路 <appleren214 <at> gmail.com>
Hello,
 
I'm using secure storage to store my password. I changed my system password by the prompt that I'm getting from the windows logon screen as a reminder that my password expired. After that, the password can not be read and it can not be stored again. It only occurs on some of my Winodws machines.
 
I'm thinking about solve the problem by removing the secore_storage file in C:\Documents and Settings\Administrator\.eclipse\org.eclipse.equinox.security when get exception when reading the password. However, there's only one internal method "InternalExchangeUtils.defaultStorageDelete()". I'm not supposed to use that internal method although it did solve the problem.
 
I also tried to use my own secure_storage file. The code I used to open and delete my secure preference is:
 
root = SecurePreferencesFactory.open(storeUrl, null);
passwordNode = ibgRoot.node(PASSWORD_NODE);
 
public static void clearStore() {
{
    ....
    passwordNode.clear();
    passwordNode = null;
    ....
    File file = new File(storeUrl.getPath());
   file.delete();
}
 
But still I can't store the password. There'll be a StorageException when:
 
passwordNode.put(PASSWORD_KEY, password, true);
 
I think something should have been missed in clearStore(). (maybe close() ?)
Is there any one in the list can help me?  Thank you!



--
魏昕路
email: appleren214 <at> gmail.com
MSN: xinlu_wei <at> 126.com_______________________________________________
equinox-dev mailing list
equinox-dev <at> eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


魏昕路 | 1 Feb 20:15
Picon

Re: SecureStorage: Can not get the password after system user password has been changed

Thanks! Is it possilbe to delete it by programming? I tried InternalExchangeUtils.defaultStorageDelete():
 
try {
passwordNode.get(PASSWORD_KEY, null);
   } catch (...) {
   InternalExchangeUtils.defaultStorageDelete();
  }
 
The secure_storage will be deleted. New file will be generated when save the password again. That's what I want to do.
Can I do the same thing with the external methods? I haven't found a method to use...
Thomas Watson | 2 Feb 00:19
Picon
Favicon

Equinox tagged for next Helios Integration build

The map file has been updated for the following Bug changes:
+ Bug 279215. Equinox Aspects does not work with Servlet Bridge (FIXED)
+ Bug 299657. Ranking property for Servlet Filter (FIXED)
+ Bug 299921. DefaultClassLoader.getResources() can erroneously return null (FIXED)
+ Bug 299922. Equinox should not use new ClassLoader(null) (FIXED)
+ Bug 301319. Compiler warnings in I20100129-1300 (FIXED)
+ Bug 301440. Race condition between refreshPackages and ServiceTracker.open() (FIXED)

The following projects have changed:
org.eclipse.equinox.http.servlet
org.eclipse.equinox.supplement
org.eclipse.equinox.servletbridge
org.eclipse.osgi.tests
org.eclipse.osgi

Tom

Thomas Watson | 5 Feb 22:49
Picon
Favicon

Clients of (misspelled) MemoryEventContants

Users of org.eclipse.equinox.events.MemoryEventContants please read on; otherwise you can ignore this message.

In bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=284061 we added a new constants class org.eclipse.equinox.events.MemoryEventContants. Notice the misspelling of "Constants". Next week's Eclipse project integration build will have a correctly spelled constants class org.eclipse.equinox.events.MemoryEventConstants. Please change your code to start using the correctly spelled constants class. I plan to delete the misspelled constants class after next weeks integration build to allow folks to change to the correct one.

Sorry for the inconvenience and let me know if you have any issues with this. Thanks.

Tom

Thomas Watson | 9 Feb 00:07
Picon
Favicon

Equinox tagged for the next Helios Integration build.

The map file has been updated for the following Bug changes:
+ Bug 178927. [launcher] [plan] way to pass arguments from launcher to a running application instance (ASSIGNED)
+ Bug 276763. [launcher] launcher fails to use OpenJDK-based VM when -vm is specified (FIXED)
+ Bug 292273. [launcher] new launcher needed for linux gtk ppc 64 (FIXED)
+ Bug 295957. Exception handling for org.eclipse.core.runtime.preferences initializers (FIXED)
+ Bug 298416. BundleContext.installBundle is not atomic (ASSIGNED)
+ Bug 300775. FileNotFoundException on each shutdown (FIXED)
+ Bug 300911. Disabling tracing does not notify listeners (FIXED)
+ Bug 300912. Launcher fails on Solaris Sparc and Solaris x86 (CLOSED)
+ Bug 301033. [launcher] --launcher.openFile does not work with "Open With..." on Windows (FIXED)
+ Bug 301257. MemoryEventConstants is misspelled (ASSIGNED)
+ Bug 301262. [publisher] NPE running headless app on non-main thread (FIXED)
+ Bug 301502. Tracing: no version number in files that were rotated (FIXED)
+ Bug 301735. Tracing: pipes in messages result in corrupt trace file (FIXED)
+ Bug 301783. Tracing: session and file header timestamps seem to be out-of-sync sometimes (FIXED)
+ Bug 301974. Race with unregister and ungetService can cause NullPointerException (FIXED)
+ Bug 302011. Should provide causing exception where possible (FIXED)
+ Bug 302097. org.eclipse.equinox.executable does not respect user CC, CFLAGS and LDFLAGS (NEW)

The following projects have changed:
org.eclipse.equinox.launcher.releng
org.eclipse.equinox.launcher.win32.win32.ia64
org.eclipse.equinox.launcher.carbon.macosx
org.eclipse.equinox.app
org.eclipse.osgi.tests
org.eclipse.equinox.launcher.gtk.linux.ppc64
org.eclipse.osgi
org.eclipse.equinox.launcher.cocoa.macosx.x86_64
org.eclipse.equinox.ds
org.eclipse.equinox.launcher.motif.hpux.ia64_32
org.eclipse.equinox.launcher
org.eclipse.equinox.launcher.cocoa.macosx
org.eclipse.equinox.launcher.gtk.solaris.sparc
org.eclipse.equinox.launcher.gtk.solaris.x86
org.eclipse.equinox.launcher.motif.aix.ppc
org.eclipse.equinox.launcher.win32.win32.x86_64
org.eclipse.equinox.launcher.gtk.linux.ppc
org.eclipse.equinox.launcher.motif.solaris.sparc
org.eclipse.equinox.launcher.motif.linux.x86
org.eclipse.equinox.launcher.gtk.linux.x86_64
org.eclipse.equinox.launcher.wpf.win32.x86
org.eclipse.equinox.executable
org.eclipse.equinox.launcher.win32.win32.x86
org.eclipse.equinox.preferences
org.eclipse.equinox.supplement
org.eclipse.equinox.common
org.eclipse.equinox.launcher.gtk.linux.x86

Tom

Swapnil Patil | 15 Feb 14:27
Picon

How to add whole directory in classpath and how to controll osgi console log

 

Hi all,

 

 

1. OSGi setting equivalent to java runtime option -Djava.ext.dirs=c:/jars

 

My plugin need few 3rd party jars in classpath.

In my MANIFEST.MF I have following entry

 

Bundle-ClassPath: .,

 jars/a1.jar,
 jars/b1.jar,
 jars/c1.jar,
...

 

Is there a way I can define  like jars/*.jar .

Actually I am looking for OSGi setting equivalent to java runtime option -Djava.ext.dirs=c:/jars

 


2. Controlling OSGi log file.

 

Is there any way of controlling logs generated in workspace directory of OSGi container.

 

Over the time log file is consuming considerable amount of hard drive space. Is there any way of control this log file.  Typically I would like to created multiple log files of predefined size and then over-writing oldest file log file. ... similar to setting provided by Log4j library

 

 

 

Sorry if this is not the right forum to ask these kind of questions,

I will appreciate if somebody can point my to right mailing list.


--
Thanks & Regards
Swapnil Patil.
Ali Naddaf | 15 Feb 14:43
Picon

Re: How to add whole directory in classpath and how to controll osgi console log

Swapnil ,

OSGi framework doesn't provide any direct way to "write" the log into the file system; the OSGi log service is in-memory, so what mechanism are you using to write to the file system? Once that is cleared up, one can see how you can go about achieving (2).

Ali

On 2/15/2010 7:27 AM, Swapnil Patil wrote:

 

Hi all,

 

 

1. OSGi setting equivalent to java runtime option -Djava.ext.dirs=c:/jars

 

My plugin need few 3rd party jars in classpath.

In my MANIFEST.MF I have following entry

 

Bundle-ClassPath: .,

 jars/a1.jar,
 jars/b1.jar,
 jars/c1.jar,
...

 

Is there a way I can define  like jars/*.jar .

Actually I am looking for OSGi setting equivalent to java runtime option -Djava.ext.dirs=c:/jars

 


2. Controlling OSGi log file.

 

Is there any way of controlling logs generated in workspace directory of OSGi container.

 

Over the time log file is consuming considerable amount of hard drive space. Is there any way of control this log file.  Typically I would like to created multiple log files of predefined size and then over-writing oldest file log file. ... similar to setting provided by Log4j library

 

 

 

Sorry if this is not the right forum to ask these kind of questions,

I will appreciate if somebody can point my to right mailing list.


--
Thanks & Regards
Swapnil Patil.
_______________________________________________ equinox-dev mailing list equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org https://dev.eclipse.org/mailman/listinfo/equinox-dev
Chun Ling Li | 15 Feb 15:01
Picon
Favicon

AUTO: Chun Ling Li is out of the office (returning 02/21/2010)

I am out of the office until 02/21/2010.




Note: This is an automated response to your message "[equinox-dev] How to add whole directory in classpath and how to controll osgi console log" sent on 2/15/10 21:27:08.

This is the only notification you will receive while this person is away.


Gmane