HI Expert
I have created a DummySSLSocketFactory" to allow me to connect via SSL and changes my script but now when I change the password I get this error
javax.naming.NamingExcepti
Main Topics
Browse All TopicsGood Day Experts
I need assiatnce with a SSL conection to Ldap Service. Firstly to start I has a conenction to a 2003 service but not via SSL and it worked 100%, now we have a 2008 and it must connect via SSL and I am geetin the Error
javax.naming.Communication
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
HI Expert
I have created a DummySSLSocketFactory" to allow me to connect via SSL and changes my script but now when I change the password I get this error
javax.naming.NamingExcepti
Hi Experts
I have manage to change the password but I have a few issues
1. When I change the password its still holds the old pass and new password
2. When I try and change a user password that's not direct under the base but under a folder (CN=Users) it does not allow me. What troubles me is that by scope is set to SUBTREE_SCOPE.
I will await any replies.
My New Code is posted below
>>When I change the password its still holds the old pass and new password
Where does it hold it? You mean that you end up with two different attributes with the same name?
>>2. When I try and change a user password that's not direct under the base but under a folder (CN=Users) it does not allow me. What troubles me is that by scope is set to SUBTREE_SCOPE.
What is the error in this case? I suspect permission issues - that's why I ask.
Hi
>>When I change the password its still holds the old pass and new password
Meaning I can use the old password and the new password. Hope this make sense
>>2. When I try and change a user password that's not direct under the base but under a folder
I have created a user called javaldaptest3 under the base with member of only (Domain Users) Then I created a user called (ABooysen2) under a folder called Users with member of only (Domain Admins & Domain Users). I can use the javaldaptest3 account to authenticate but not the ABooysen2.
Hope this help
Many Thanks
Yeah - sounds like keeping both properties which soudsn familar but I need to try to remember where I had seen this happening.
Can you login with ABooysen2 from an ldap browser? Or change password using some other type of connection (let's eliminate the Java and see if the LDAP is not blocking you). Do you see an error message?
Hi
There was something wrong with ABooysen2 i created a javaldaptest6 under cn=Users with the same memeber list as ABooysen2 and it works 100%. So that means that somehow ABooysen2 was corrupted.
So now it's just the this issue that I need assistance/help with
>>When I change the password its still holds the old pass and new password
Meaning I can use the old password and the new password. Hope this make sense
Hi
When I put
ModificationItem mods[] = new ModificationItem[2];
mods[0] = new ModificationItem(DirContex
mods[1] = new ModificationItem(DirContex
I am getting a Error
javax.naming.directory.NoS
0: 00002085: DSID-0319067C, problem 1001 (NO_ATTRIBUTE_OR_VAL), data 0, Att 9005a (unicodePwd):len 30
Sorry here the rest of the Error message
remaining name 'cn=javaldaptest4,cn=Users
at com.sun.jndi.ldap.LdapCtx.
at com.sun.jndi.ldap.LdapCtx.
at com.sun.jndi.ldap.LdapCtx.
at com.sun.jndi.ldap.LdapCtx.
at com.sun.jndi.toolkit.ctx.C
at com.sun.jndi.toolkit.ctx.P
at com.sun.jndi.toolkit.ctx.P
at javax.naming.directory.Ini
at beans.Setpass.main(Setpass
Is this with the user that have 2 passwords now?
OK.. that's because you login with one user and try to change the password of another. Which is a reset. So you do not remove/replace; just replace Do you know the password of the user you try to change the password for? If you do -- use the method above. If you do not, it should not be saving it as a second password.
Need to run on a meetinng. Please see http://forums.sun.com/thre
Business Accounts
Answer for Membership
by: ablsysadminPosted on 2009-03-23 at 01:21:09ID: 23955516
Hi
Also how to I check from my side if SSL/TLS is enabled