Changing expired password from a JS page
Hi,
We are developing an application in which one JS page will be used to login to the database using database user id and password. If the database user id has expired then the JS page will display another JS page to change the password. While displaying the change password page can be accomplished by trapping the ORA-28001 error, can anybody tell me how actually to go about in changing the password for the user. I am not allowed to hardcode any userid and password in the JS pages for achieving this.
Thanks in advance.
Cheers,
Lala
By JS page, I'm assuming you mean JSP (Javaserver Page?)
The answer greatly depends on the middle-tier technology you are using.. For example straight JDBC, BC4J etc..
If you give more info on your middle tier technology we could probably help out better..
-Chris
Similar Messages
-
Is it possible to change expired password from JDBC 2.0?
By JS page, I'm assuming you mean JSP (Javaserver Page?)
The answer greatly depends on the middle-tier technology you are using.. For example straight JDBC, BC4J etc..
If you give more info on your middle tier technology we could probably help out better..
-Chris -
Changing expired password on a cbckend database from a frontend database
I have a split database with an Oracle backend (BE) and MS Access frontend (FE). My question is how to reset an expired password on the BE from the FE.
If I log on to the backend via sqlplus an error ORA-28001 (Password expired) occurs and the system immediately prompts for a new password before completing the login process.
If I log on from the frontend I get the same ORA error from the BE, but as far as I can tell, I can't reset the password from the FE.
I can capture the error fine at the FE and I am thinking that I could use this to open a dialog to reset the password and change it over the ODBC connection. The problem is that I need to get a connection to the BE database before sending a command to change the password from the FE, but since login cannot be completed from the FE, because of the expired password, I can't get an ALTER USER statement to execute on the BE to reset the password.
Is there a way to change a pre-expired password on an Oracle backend database from a frontend database? I don't see this as an Oracle/Access problem but as a problem that exists for any split database.I have thought about this a little and I am thinking about keeping a table of password update information. I can use this to create a "soft" expired password, using an expiration date in the table for each account. If the password is expired by the database then we can just update it with sqlplus or one of the other options.
As far as getting the organization to change it is waaaay to big and stupid to change their policy. -
Resetting expired password from JDBC
Hi All,
I would like to know if it is possible to change an expired password from a java client that uses JDBC (classes12.zip) "thin client" to connect to oracle database (8.1.7.4).
Can we capture the "password expired" exception from the client and change the expired password from within the java client.
The current connect string is --->
Connection conn;
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection("jdbc:oracle:thin:@host:port:sid",user,pass);
Is it possible to do something like this ???
try {
conn = DriverManager.getConnection("jdbc:oracle:thin:@host:port:sid",user,pass);
catch ( SQLException sqle ) {
if ( sqle.getErrorCode() == 28001 ) // i.e. passwd expired
//1. ask user to enter the new passwd &
//2. change it in the database.
Is there any other way of doing this ??
Thanks in advance
ArunI haven't tried this, but there some things to think about.
1) Have you tried to capture the Exception? Is it a problem?
2) Have you tried to alter a password through JDBC? Is it a problem? To execute other DDL you have to use executeUpdate() I would assum that if you can do this it will also require an executeUpdate().
Now assuming #1 and #2 are OK
3) How are you going to change a password when the you cannot connect because the password has expired? Are you going to hard code another non-expired userid/password in the code (bad idea). Are you going to ask the user to enter some type of administrative userid/password that will allow them to change their password?
Just some thoughts, sorry I cannot help more... -
802.1X cannot change expired password at login
Hi all,
I'm trying to roll out 802.1X authentication for wifi access at my company, however there's one major problem I can't for the life of me figure out. I'm not able to get the Macs to prompt for a password change when the password has expired at login.
On Windows when you log in it will prompt you to change your password when it's expired. However on OSX when you're on the workstation login screen, you can see the wireless icon briefly connect, then it will think for a bit and the user cannot log in at all.
OSX can definitely can change expired passwords via 802.1X, as if I log into a local account and connect to the wifi with the user whose password has expired, it will prompt to change it, and changes it successfully.
I'm using NPS for RADIUS authentication against AD, and using Profile Manager in OSX Server to create the 802.1X profile.
Does anyone have any experience with OSX and using WPA Enterprise/802.1X Profiles?
Thanks!Hi,
Can you post a screenshot for this situation?
Sometimes, the third party credential provider would lead to some issue like this, I suggest you check the
current credential provider via the following path:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData\x\LastLoggedOnProvider
You should compare the result with the values in the following path:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\credential providers
If the current value is third party credential provider, try to disable it:
To disable the provider add a REG_DWORD value "Disabled"=1 to that provider’s CLSID subkey.
The provider will be disabled on the next session creation (sessions are created when you log off, switch users, or reboot.
If you have any feedback on our support, please click
here
Alex Zhao
TechNet Community Support -
How can Siri still tweet and post to Facebook if I just changed my password from the respective websites, with out the iphone "knowing" I changed my passwords?
If you buy an iLife '11 install DVD (eBay, Amazon) you could upgrade your iPhoto right away. The earlier iPhoto '11 versions are compatible with MacOS X 10.6.8.
but I can't until I upgrade from OS X 10.6.8. Trying to figure out how to do that...
To upgrade to Mt. Lion see here: You can buy it and download it from the appStore, if your mac is compatible:
http://www.apple.com/osx/how-to-upgrade/ -
Changing OD Password from 10.4 client
Hi,
I'm wondering if I overlook something, but I cannot find a way for 10.4 clients to change their OD-password on an 10.5 server.
Scenario is as follows: We are migrating to new server hardware and have exported /reimported our OD users and groups to a brandnew 10.5 Xserve which caused us to loose our users' passwords.
We decided to set up a default password and have the users to change the default to a personal choice on first login.
However on 10.4. clients there is no "change password" item in AppleShare's login dialog. With 10.5 client there is as well as in 10.4 client logging into 10.4 server.
Am I missing something or isn't it possible to change OD passwords from 10.4 cliant on 10.5 server?
And from Windows clients?Hi
On 10.4 Client you can use the Kerberos application located in /System/Library/CoreServices. If you see a ticket listed destroy it and click New. Supply LDAP user account name Kerberos Realm name and you should be able to select the gearwheel in the bottom left hand corner of that window. From there you have two options: Ticket Options and Change Password.
For Windows Users? I'm not sure? I will have to get back to you on that one as I've not had chance to test this yet.
Tony -
I can't update my apps, I think that the problem is that I've change my password from my ID Apple but they have not change from the telephone configuration. Any idea? Thanks
Hi skippy2012trev,
Welcome to the Apple Support Communities!
I understand that you updated your Apple Id and password but now you are being prompted for the old information in iCloud. You are on the right track by changing the Apple ID back to the previous email address temporarily so that you can sign out. You should not need to verify the email address. After you edit the Apple ID back to the old email address and then sign out of iCloud on your iPhone, edit the Apple ID back to the address you would currently like to use. There is no need to change the password again, only the email address, unless you prefer to update the password again.
If you're asked for the password to your previous Apple ID when signing out of iCloud - Apple Support
Change your Apple ID temporarily
If signing out and back in to iMessage or FaceTime didn't help, try these steps:
Change your Apple ID to the Apple ID you used previously. You shouldn't need to verify the email address.
Tap Settings > iCloud. Complete these steps only if the Find My [Device] setting is turned on:
Scroll down and tap Sign Out, then tap Sign Out to confirm. If you're using iOS 7 or earlier, tap Delete Account, then tap Delete to confirm.
Tap Keep on My [Device] or Delete from My [Device]. In either case, your data remains in iCloud and will be updated on your device when you sign in to iCloud again.
Enter the password for your previous Apple ID.
Change your Apple ID to the new email address that you want to use. You'll need to verify the email address.
Return to Settings > iCloud and sign in with your new Apple ID.
Cheers,
Joe -
Trying to Change AD Password from GW2014 failing
Hello,
I've got the Caledonia books by Danita and I am preparing to upgrade / move our GW2012 edirectory system to 2014, then migrating that to AD. In preparation, I have set up a test GW2014 server and set it to authenticate LDAP against AD. I was easily able to get a user to sync and login to both the 2014 client and webaccess. However, when I try to change the password for this user through either client, the attempt fails with the following error in the POA:
17:10:43 4233 Error: LDAP failure detected [D06B] User:gw2014test (gw2014test)
The closest TID I have seen on this is for GW 2012 where it says that LDAP passwords in GroupWise were designed to work with eDirectory so the function does not work in other LDAP servers?!
Any help would be much appreciated!
ThanksI don't believe there is a way to check for expired pwd. I'll check with developers though.
--Morris
>>> davearre<[email protected]> 8/1/2014 4:36 AM >>>
Hi, Morris,
Awesome, thank you that worked!! After I posted my question I tried to
do the SSL but got LDAP error 81 on the POA because I exported the DC's
certificate and not the CA's. Once I followed your steps and exported
the CA certificate I was able to login and change the password without
error in both the client and webaccess.
One more question, I tried to do a "user must change their password on
next login", which is what we do now with eDirectory with new teachers
especially in the summertime, they can change passwords from home before
they arrive. With edir and an expired password, Webaccess puts up a page
for them to change their password. It also does this at password
expiration time. When I set the user must change password in AD, I could
no longer log into webaccess at all, it acted like the password was
incorrect. Is there a trick to get the change password page prompt in
Webaccess or is this something not available with AD as the
authentication source?
Thanks for your quick help!
mblackham;2327566 Wrote:
> You can change your AD password via the GW 2014 client, however, due to
> requirements of AD, the LDAP session must be SSL'ized to do so. So
> you'll have to export the CA cert that your AD LDAP process is using and
> import it in to the AD directory configuration in GW Admin Console.
> Here are the high level steps to getting the AD cert:
>
>
>
>
> •Run MMC on the Domain Controller
>
> •Add the “Certificates” Snap-In for the Computer account. (File |
> Add/Remove Snap-Ins)
>
> •Find the certificate issued to the domain controller in the
> “Personal/Certificates” folder.
>
> •View the certification path for the certificate, locate the CA and
> view it’s properties.
> Export the CA certificate as a DER or PEM file
>
>
> --Morris
>
>
>
> >>> davearre<[email protected]> 7/31/2014 3:36 PM >>>
>
>
>
>
> Hello,
>
> I've got the Caledonia books by Danita and I am preparing to upgrade /
> move our GW2012 edirectory system to 2014, then migrating that to AD.
> In
> preparation, I have set up a test GW2014 server and set it to
> authenticate LDAP against AD. I was easily able to get a user to sync
> and login to both the 2014 client and webaccess. However, when I try to
> change the password for this user through either client, the attempt
> fails with the following error in the POA:
>
> 17:10:43 4233 Error: LDAP failure detected [D06B] User:gw2014test
> (gw2014test)
>
> The closest TID I have seen on this is for GW 2012 where it says that
> LDAP passwords in GroupWise were designed to work with eDirectory so
> the
> function does not work in other LDAP servers?!
>
> Any help would be much appreciated!
>
> Thanks
>
>
> --
> davearre
> ------------------------------------------------------------------------
> davearre's Profile: https://forums.novell.com/member.php?userid=14696
> View this thread: https://forums.novell.com/showthread.php?t=478544
davearre
davearre's Profile: https://forums.novell.com/member.php?userid=14696
View this thread: https://forums.novell.com/showthread.php?t=478544 -
Changing expired password in forms 6.0
I'm trying to offer a possibility to users to change their passwords.
in forms they user is prompt to change is password, but after changes an validation the message FRM-10201 Impossible de changer le mot de passe (unable to change the password)
When i try it on sql plus i got this :
SQL> connect ntci/ntci@post
ERREUR:
ORA-28001: le mot de passe est expiré
Modification de mot de passe pour ntci
Ancien mot de passe : *****
Erreur du système d'exploitation (Operating system error, password not modified)
Mot de passe non modifié
I dont know what is happening.
Would you mind helping meThank you for replying to my message.
I've read in doc 52718.1 that from forms release 6.0 it is possible to handle this situation.
After expiring the password an trying a connection, the system first prompt that the password is expired and ask for a password replacement but this never reach (the operating system error is raised).
I'm using Forms 6.0 against Database 9.0.2..on windows XP client
Maybe this could explain moore
thank you once again -
Changing expired password with OCIPasswordChange
I know that ODP.NET has a option to open a connection with a new password when the old one has expired. I'm using System.Data.OracleClient from .Net instead of ODP because I'm using the Instant Client, which does not seem to work with ODP. Can somebody tell me how to call OCIPasswordChange?
Hi,
OCIPasswordChange is an OCI call. You'd have to write a complete OCI application in C to be able to use that, and OCI coding isnt for the faint of heart.
I do have a complete OCI sample that does it though.. here you go.
Cheers,
Greg
This sample demonstrates the use of OCIPasswordChange once the
password has expired, which requires setting the session into
the service context. Tested with oci 8.1.5, vc++ 6.0 sp3.
first create the user with expired password:
SQL> create user testuser identified by oldpass password expire;
SQL> grant create session to testuser;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <oci.h>
static OCIEnv *p_env;
static OCIError *p_err;
static OCIServer *p_srv;
static OCISession *p_ses;
static OCISvcCtx *p_svc;
void main()
int rc;
char errbuf[100];
int errcode;
// Step 1: Initialize OCI
rc = OCIInitialize((ub4) OCI_DEFAULT, (dvoid *)0,
(dvoid * (*)(dvoid *, size_t)) 0,
(dvoid * (*)(dvoid *, dvoid *, size_t))0,
(void (*)(dvoid *, dvoid *)) 0 );
// Step 2: Initialize the OCI evironment
rc = OCIEnvInit( (OCIEnv **) &p_env, OCI_DEFAULT, (size_t) 0, (dvoid **) 0 );
// Step 3: Initialize the OCI handles
rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_err, OCI_HTYPE_ERROR,
(size_t) 0, (dvoid **) 0);
rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_svc, OCI_HTYPE_SVCCTX,
(size_t) 0, (dvoid **) 0);
rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_srv, OCI_HTYPE_SERVER,
(size_t) 0, (dvoid **) 0);
rc = OCIHandleAlloc((dvoid *) p_env, (dvoid **)&p_ses, (ub4) OCI_HTYPE_SESSION,
(size_t) 0, (dvoid **) 0);
// Step 4: Connect using a mutli-session connect
rc = OCIServerAttach( p_srv, p_err,
(text *)"local", 5, 0);
// Create a server context
rc = OCIAttrSet( (dvoid *) p_svc, OCI_HTYPE_SVCCTX,
(dvoid *)p_srv, (ub4) 0,
(ub4) OCI_ATTR_SERVER, (OCIError *) p_err);
// Create a session context
rc = OCIAttrSet((dvoid *) p_ses, (ub4) OCI_HTYPE_SESSION,
(dvoid *) "testuser", (ub4) 8,
(ub4) OCI_ATTR_USERNAME, p_err);
rc = OCIAttrSet((dvoid *) p_ses, (ub4) OCI_HTYPE_SESSION,
(dvoid *) "oldpass", (ub4) 7,
(ub4) OCI_ATTR_PASSWORD, p_err);
rc = OCIAttrSet((dvoid *) p_svc, (ub4) OCI_HTYPE_SVCCTX,
(dvoid *) p_ses, (ub4) 0,
(ub4) OCI_ATTR_SESSION, p_err);
// Open the session on the server
rc = OCISessionBegin ( p_svc, p_err, p_ses, OCI_CRED_RDBMS,
(ub4) OCI_DEFAULT);
// This is a generic error checking routine
if (rc != 0)
OCIErrorGet((dvoid *)p_err, (ub4) 1, (text *) NULL, &errcode,
(text*)errbuf, (ub4) sizeof(errbuf), OCI_HTYPE_ERROR);
printf("Error - %.*s\n", 512, errbuf);
// If the error is a 28001, change the password.
if(errcode==28001)
// You need to set the Session into the service context
// before you can call OCIPasswordChange(), and you also need
// to allocate both the session and service context handles
// before hand. Then you can call OCIPasswordChange.
rc = OCIAttrSet((dvoid *)p_svc, OCI_HTYPE_SVCCTX,
(dvoid *)p_ses,0,OCI_ATTR_SESSION, p_err);
rc = OCIPasswordChange(p_svc, p_err, "testuser",8,
"oldpass",7, "newpass",8, OCI_DEFAULT);
if(rc != 0) printf("Password change failed.\n");
else printf("Password successfully changed.\n");
// Step 10: Disconnect from the server and free the
rc = OCIServerDetach( p_srv, p_err, OCI_DEFAULT );
rc = OCIHandleFree((dvoid *) p_srv, OCI_HTYPE_SERVER);
rc = OCIHandleFree((dvoid *) p_svc, OCI_HTYPE_SVCCTX);
rc = OCIHandleFree((dvoid *) p_err, OCI_HTYPE_ERROR);
printf("Disconnected.\n\n");
return;
} -
Change email password from Outlook
Hi all,
We are running instance of messaging 6.2 (Q12005).
Using the Messanger Express, users are able to change their email account passwords using the "Options" --> >"Password".
How can the users change their password using the MS-Outlook ? We are using the IMAP connection type for all the users.
RegardsUsing IMAP from Outlook, you cannot change passwords.
Using the Outlook Connector, you can use the Outlook change password feature. It'll take you to the same web page you can use now. -
How to change user password from default realm programaticaly
Hello,
I would like to know if there are any ways to change a users password from a file
realm through java classes ie . programaticaly.Thank you for the support.
After looking at the code, I noticed RealmManager is not documented in the BEA
Javadocs. Am I missing something or is it not documented. Lot of other methods
also not documented. Do you have the latest Javadocs?
Thanks
John
"Tom Moreau" <[email protected]> wrote:
>
See message #4589 - it posts the code magic needed
to change the password. The caller doesn't have to
be aware of which realm is being used - that's taken
care of for you.
-Tom
"John M" <[email protected]> wrote:
Hello,
I would like to know if there are any ways to change a users passwordfrom
a file
realm through java classes ie . programaticaly. -
How do I change a file from pdf to pages or word so I can edit it?
How do I change a pdf file to word/pages so I can edit it?
You can extract the text from most PDF's by selecting it and copying it to a document in an editor, though it may come out garbled. Anything more than that would require third-party software, if it can be done at all. PDF is not designed to be editable.
-
I changed the password from the root user - now: no booting up
Hey guys. Im a new "unix user" and I learned a lot about using terminal and stuff and a few days ago I changed my password and I forget it after. So I changed my password over the following steps: when it booted up, i pressed apple + s to go into terminal as "root" and than i did that after a online toturial .. Bad idea. The first time, when i tried it i did the following:
/sbin/fsck -fy
/sbin/mount -uw /
/passwd root
I think, that that /sbin/fsck -fy not important is, in order to change a password. But after i changed it a few times, my mac is not booting up anymore. If I exit terminal right out of the open terminal window (I type in exit) it starts something. And then it does a few things i will write them down here, that you an see:
i type in exit and than:
logout
jettisoning kernel linker.
resetting IOCatalogue.
Matching service count = 0
Matching service count = 1
Matching service count = 1
Matching service count = 1
Matching service count = 1
Matching service count = 1
Matching service count = 4
PowerBook5,8: stalling for module
Matching service count = 1
Dec 31 16:07:18 localhost directoryService[22]: Launched version 5.8.1 (v514.28)
UniEnet: Ethernet address 00:14:51:2f:8a
AirPort_Brcm43xx: Ethernet address 00:14:51;86:48:89
Dec 31 16:07:35 Ther-Rieken com.Apple.Launchd[1] (com.apple.mDNSResponder[27]): posix_spawnp("/usr/sbin/mDSNResponder", ...): No such file or directory
Airport: Link Down on en1
Airport: Linmk up on en1
Dec 31 16:07:35 Ther-Rieken com.Apple.Launchd[1] (com.apple.mDNSResponder[27]): posix_spawnp("/usr/sbin/mDSNResponder", ...): No such file or directory
Dec 31 16:07:35 Ther-Rieken com.Apple.Launchd[1] (com.apple.mDNSResponder[27]): posix_spawnp("/usr/sbin/mDSNResponder", ...): No such file or directory
Dec 31 16:07:35 Ther-Rieken com.Apple.Launchd[1] (com.apple.mDNSResponder[27]): posix_spawnp("/usr/sbin/mDSNResponder", ...): No such file or directory
Dec 31 16:07:35 Ther-Rieken com.Apple.Launchd[1] (com.apple.mDNSResponder[27]): posix_spawnp("/usr/sbin/mDSNResponder", ...): No such file or directory
...and so on ...
Thats it. Sometimes, it shows me the following error..
Error: apple8021Associate() failed -6
So I have to say something else, too. I did, because i was so scared a command, also from youtube, to restore your mac. I cant remember, how that goes. Something with applesetupdone and stuff. But That resets the Mac to factory settings. And my Mac used to run Tiger, i upgraded it. I thing, that caused a error in the system. Can i fix it ?? Im in really big kaka .. haha. I hope, somebody ere has experiences with that stuff. I hope, somebody is able to help me.
cheers!
TheoKind of what were were saying in [http://discussions.apple.com/message.jspa?messageID=13168794#13168794]
Maybe you are looking for
-
Need help with NULL values in Crosstables
Hello everybody, I need some help with NULL values and crosstables. My issue is the following: I have a query (BW - MDX-Query) that gives me turnover measures for each month. In Crystal Reports I choose crosstable to display this whereby I put all mo
-
2 Question: Check mail on launch/Save Attachments
Hello all. I have 2 Questions about Mail 2.0.5 in Tiger: 1.Start Checking Mail upon Launch I have set Mail to check for new mail every 5 minutes, but everytime when I first launch Mail, I have to manually click on 'Get Mail' for the 1st email check,
-
Accidentally deleted trash folder
Hello, I have searched everywhere trying to find a solution. I had one folder on my desktop that had several subfolders inside of it. I was deleting some desktop items and accidentally deleted this folder as well and then I emptied the trash folder
-
How can I copy a file with filebrowser
When I select a file on my network pc the file opens by I want to copy it to my iPad. I am à new Apple user.
-
Can't access creative cloud from safari on iPad
Hi, I just signed up for a trial on Creative Cloud after downloading several adobe apps on my iPad. When I try to log in via safari I just get a blank screen. Any advice welcomed. IPad air running latest iOS