Andrew Davis

Greenhorn
+ Follow
since Jul 06, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Andrew Davis

Howdy folks,
I'm trying to have my applet pass my personal client certificate (.p12) that I loaded via the Java Control Panel to the server.
I also supplied these Java Applet Runtime Settings via the Java Control Panel:

-Djavax.net.ssl.keyStore=<local path to .p12>

-Djavax.net.ssl.keyStorePassword=<password>

I'm trying to load the client cert in the applet by doing:

KeyStore ks = KeyStore.getInstance("JKS"); ks.load(new FileInputStream(System.getProperty("javax.net.ssl.keyStore"), System.getProperty("javax.net.ssl.keyStorePassword").toCharArray());

I can't access those properties from within the applet. I'm pretty sure that I need to sign my applet to get those properties.
But is it possible to load the client cert without needing the call to:
System.getProperty("javax.net.ssl.keyStorePassword")
If I loaded the client certificate in the Java Control Panel, do I still need to use the Runtime Settings to get the client cert?
Seems like there should be another way to get the client certificate, without having to access the local filesystem.
I'm using JRE 1.6.0_10.
Thanks!
15 years ago
so how do you get those operational attributes explicitly?

thanks,
ad
18 years ago
Ok. Let me rephrase all of this. I'm trying to determine the amount of time until a user's password
expires. This information is stored in an Oracle Internet Directory
LDAP.

I need to get the password expiration time, which is the
pwdMaxAge attribute in
"cn=PwdPolicyEntry,cn=Common,cn=Products,cn=OracleContext"
I can do this fine.

Next I need to get the timestamp of a particular user's password.
According to this:

http://www.lc.leidenuniv.nl/awcourse/oracle/network.920/a96574/pwdpol...
"In addition, the object class top contains these operational
attributes, to maintain the user-password state information for each
user entry."

pwdChangedTime contains a password timestamp.

pwdChangedTime is one of those attributes in the object class
'top.' How do I read this value for a single user such as
"uid=mojoe,ou=People,o=myserver.com" ?

I know enough about jndi to read attributes from mojoe, like the
uid,etc. But I can't read those inherited from 'top.' Also, this
is probably more of an Oracle/OID question, but do I have to configure
the ldap to store the value for pwdChangedTime, or is the timestamp
automatic?

Is there an easier way to get a notice that the password has expired,
like through "pwdExpirationWarned"? (I have no idea how to get jndi
to work with pwdExpirationWarned.)

This is a tough question, and all help would be appreciated!
Thank you.
[ July 07, 2005: Message edited by: Andrew Davis ]
18 years ago
Hello.
I've been going through the JNDI docs from sun and some javaworld tutorials to read/write/update/delete from the LDAP I'm using (OID). Now I'm trying to retrieve the password policy attributes from the LDAP server, specifically the password expiry time. Does anyone have a solution for this? I've searched this forum and found some good links.

Thanks.
AD
18 years ago