How to change password programaticaly in LDAP server
Hi
Can anyone give suggestion how to change the password programatically in the
LDAP server using JNDI.
Thanks
You'll likely need to see what programmatic interfaces your LDAP provider
offers. You can use that to make invocations to change your user passwords.
Michael Girdley
BEA Systems
Learning WebLogic? http://learnweblogic.com
Buy the only book covering J2EE & WebLogic 6:
http://www.amazon.com/exec/obidos/ASIN/0130911119/learnweblogic/103-9227026-
4636613
"Suresh Done" <[email protected]> wrote in message
news:3b732f57$[email protected]..
Hi
Can anyone give suggestion how to change the password programatically inthe
LDAP server using JNDI.
Thanks
Similar Messages
-
How to change password of LDAP admin :cn=Directory Manager ?
How to change password of LDAP admin :cn=Directory Manager ?
Thanks!Try this, on the console log in as "cn=Directory Manager", open the Directory Server console and select the "Configuration" tab. You should see a "Settings" tab inside "Configuration" There you can find the fields for Directory Manager's new password.
Regards. -
How to change password for a user in WLS 7.0 embedded ldap in code?
I asked the similar question before but don't have an answer yet.
I need to change password for a user in my Java code. Any help will be
appreciated.
Here is my stack trace:
c:\Test>java -classpath . testEmbeddedLdap
attribute: uid
attribute: description
attribute: objectclass
attribute: wlsMemberOf
attribute: sn
attribute: cn
javax.naming.NoPermissionException: [LDAP: error code 50 - Insufficient
Access Rights]; remaining name
'uid=myRegularUser,ou=people,ou=myrealm,dc=mydomain'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:2872)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2810)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2616)
at com.sun.jndi.ldap.LdapCtx.c_modifyAttributes(LdapCtx.java:1374)
at
com.sun.jndi.toolkit.ctx.ComponentDirContext.p_modifyAttributes(ComponentDir
Context.java:255)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Partial
CompositeDirContext.java:172)
at
com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.modifyAttributes(Partial
CompositeDirContext.java:161)
at
javax.naming.directory.InitialDirContext.modifyAttributes(InitialDirContext.
java:146)
at testEmbeddedLdap.main(testEmbeddedLdap.java:30)
Here is my testing code:
<PRE>
import java.util.*;
import javax.naming.*;
import javax.naming.directory.*;
public class testEmbeddedLdap {
public static void main(String[] argv) {
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://localhost:7001");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "uid=myAdministrator, ou=people,
ou=myrealm, dc=mydomain");
env.put(Context.SECURITY_CREDENTIALS, "myAdministrator");
try {
DirContext ctx = new InitialDirContext(env);
String
sUser="uid=myRegularUser,ou=people,ou=myrealm,dc=mydomain";
String sOldPassword="myRegularUser";
String sNewPassword="newpassword";
for (NamingEnumeration ae = ctx.getAttributes(sUser).getAll();
ae.hasMore(); ) {
Attribute attr = (Attribute)ae.next();
System.out.println("attribute: " + attr.getID());
ModificationItem[] mods = new ModificationItem[2];
Attribute mod0 = new BasicAttribute("userpassword",
sOldPassword);
mods[0] = new ModificationItem(DirContext.REMOVE_ATTRIBUTE,
mod0);
Attribute mod1 = new BasicAttribute("userpassword",
sNewPassword);
mods[1] = new ModificationItem(DirContext.ADD_ATTRIBUTE, mod1);
ctx.modifyAttributes(sUser, mods);
ctx.close();
} catch (NamingException e) {
e.printStackTrace();
</PRE>
"Neil Smithline" <[email protected]> wrote in message
news:[email protected]...
Two things. First, I'm not exactly sure what password you are trying to
change. The LDAP server's password or a user's password in the LDAP
server. Second, could you please post a stack trace.
Thanks - Neil
K Wong wrote:
I am using (javax.naming.directory.DirContext.modifyAttributes) to
change
password to our development Weblogic 7.0 embedded LDAP.
I login as the system administrator (a user in the administratorsgroup),
but always gets the javax.naming.NoPermissionException - InsufficientAccess
Rights.
What user should I use? Any help will be appreciated.Hai,
This condition based execution requires - javascript coding.
In miscelleaneous tools bar, you have an option of SCRIPT_ITEM writer tool, drag the tool into your WAD layout, and select the properties , choose the editor option and paste your coding. that's it.
Alternate option :
in your web application design layout , you will fine XHTML coding editor , there you need to write coding and execute the same.
Hope this will help to you.
Assign Points if its really useful.
Cheers !!!
Bye
Regards,
Giri -
How can we update data in LDAP server using PL/SQL.
Hi,
How can we update data in LDAP server using PL/SQL program.
Is there any sample code for refrence.
Thanks,
TarunHi Justin,
Thanks for your help. You got my correct requirements.
Tim's example returning all the attributes of current user which is admin user. Please correct me if I am wrong.
I have the following information:
the admin user and password,server info , port and ldap_base for admin.
I have uid and password for regular user, I am trying find the ldap_base for regular user, which may be different from adminuser.
Please help me.
Thanks,
Edited by: james. on Jan 12, 2009 5:39 PM -
How to change password "Sharing Accounts"
How to change passwords of Sharing Accounts especially when they wre created in the File Sharing of the Preference panel. They are not account comunig from the Address book but were just created a virtual account for genric sharing. Easy to set up, esay to create a passwaord BUT HOW TO CHANGE IT or reset it ?
Try http://www.microsoft.com/mac/search.mspx?qu=active+directory and the appropriate server forums.
-
How to change password with commadmin command?
I am using JES 2004Q2, Directory shema2.
HOw to change password for email account ?
Email account created in identity server with commadmin comand.
I can't find this information in :
"Sun Java System Communications Services 6 2004Q2 User Management Utility Administration Guide"http://docs.sun.com/source/817-5703/commcli_ref.html#wp1021656
commadmin doesn't seem to offer a password modify/replace option.
You can use the Directory Console to replace a password, or ldapmodify, or webmail/comms express. -
How to change password for XELSYSADM user in OIM?
Hello Gurus and Experts!
How to change password for XELSYSADM user in OIM?
Your help is appreciated.Follow the undermentioned steps to change the password:
1) Change the password from oim Design Client as usual.
2) Open xlconfig.xml present in <XL_HOME>\xellerate\config folder.
3) This step is optional and should only be used if you have a <XLPassword encrypted> tag in the <Scheduler> section. In the scheduler section, change the encrypted="true" to encrypted="false" and replace existing encrypted password with new clear text password, as shown below:
<Scheduler>
<XLUserName>xelsysadm</XLUserName>
<XLPassword encrypted="false">NEW_PASSWORD</XLPassword>
</Scheduler>
4) Restart server.
Now login with the new password. -
How to change password in the default realm programtically?
Hello,
Does any one have experience in how to change password in the default realm programtically in WebLogic 8.1?
Thanks.
Bimal PatelHi again;
Please also check previous thread about same question:
Forum Password
Change password on forum
How to change the password of the site/forum ?
Re: change password for this forum
I belive you can find answer in those thread more easly ;)
Regard
Helios -
How to Change Password throgh ABAP
Hi All,
Could you please tell me How to change password Through SU01 without having role.
When i am going to click change password button it giving error message you are not authorize to change password.
How to change through Debug mode.
Regards,
ArifHi,
Firstly ,you are not supposed to do something that you are not authorised to do.
But still you need access by bypassing the Authorization then here is the way.
Create a Breakpoint in FM RS_TRANSACTION_TEST at line no - 34 .
1.Go to tcode SE93.
2,Enter Tcode as 'SU01'
3.start the debugger by putting '/h' in the command line and then execute.
4.You debugger will stop at line no 34 of FM RS_TRANSACTION_TEST.
5.the value of sy-subrc will be '4' at that point...CHnage the value of su-subrc to '0'. and then execute.
OR use FM - BAPI_USER_CHANGE
Regards,
Vikas -
How to change password for itunes
HELP PLEASE!
DOES ANYBODY KNOW HOW TO CHANGE PASSWORD FOR ITUNES?Follow the instructions here.
Apple ID: Changing your password -
How to change password for BtOpenZone?
Hi,
Does anyone know how to change password for BtOpenZone? I have tried the following link and it is not working with me....
http://www.btinternet.com/new/content/mybti
Last time I have to ring BT to change the password, but I want to do via some control panel.
Thanks
Kam
Solved!
Go to Solution.If you're a BT Total Broadband customer and you want to change the password, you can go to btyahoo.com, log in there and change your password. The primary email account and the FON/OZ logins are linked. if you change your email password, your FON/OZ password will also change.
if you're an Openzone only customer, you can log into your control panel on the main page and change your password there. -
How to change password for sidadm user on HP-UX
Hello
How to change password for <sidadm> user on HP-UXHello Jan,
1. Log on to the operating system with the <sid>adm user.
2. Open a shell.
3. Enter the command passwd.
4. Enter the old and new passwords
Rohit -
How to change password for apple user id
how to change password for apple user id
If you can't remember your current password then you should be able to get it reset via this page : http://iforgot.apple.com
If you know your current password then on your phone you can try tapping on your id in Settings > Store and you might be able to change it on your account's screen, or on your computer's iTunes you can log into your account via the Store > View Account menu option and change it on there -
How to change password on iOS7?
How to change password on iOS7? With thanks to all respondents -
Settings > General > Passcode
Hope this helps. -
How to change password for parental controls
how to change password for parental control on macbook pro
If you can't remember your current password then you should be able to get it reset via this page : http://iforgot.apple.com
If you know your current password then on your phone you can try tapping on your id in Settings > Store and you might be able to change it on your account's screen, or on your computer's iTunes you can log into your account via the Store > View Account menu option and change it on there
Maybe you are looking for
-
Repost of the deleted complaint
To Whom It May Concern, I'm curious if there could be some questions answered regarding a situation I have been faced with over the last three days? I have been a customer for several years and have spent hard earned money being that loyal customer.
-
Hidden, Visible and back to Hidden using a radio button
Ok this might be really simple for someone to answer. I have a radio button I'm using to toggle between two list boxes with multiple lines of text (hidden and then visible). Here's the problem, when I toggle the radio button back and forth I have bot
-
Hiding relationship cat. in BP transaction
Hi, I have a requirement to hide one of the relationship categories, while creating a BP as "Prospect". Anyone having any idea how to do it? I checked in config, there is no option to hide a relationship category.
-
How do I transfer contact from outlook on a pc to new I-phone s without i-Cloud
I just bought a personal i-phone 5s and want to transfer my personal contacts in Outlook on a PC to my personal phone without using i-cloud. Is there a way to do this?
-
Error when I download an application
Hello, I connect my BlackBerry Curve 8520 to the PC via USB cable an try to download a certain application to my BlackBerry, but I click on download button I receive the following error message " App World Web Plugin Error: An error has occurred comm