473,473 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Changing the password when it expires.

26 New Member
Hi,
We have developed a .net2.0 application using asp.net, vb.net and oracle9i. From the appl. we pass the datasource=;userid=;password=; to validate the username and password against the user_users table in oracle.
When the password is expired, We are forcing the user to change the password through a screen which uses...
ALTER USER <user> IDENTIFIED BY <newpassword> REPLACE <oldpassword>
But the moment this statement excecute in the appl, its throwing an error msg saying "your password has been expired" and not allowing the user to change the password.
The same password expired case, If I try to login using TOAD or SQLPlus, Its immediately throwing a dialog box to change the password.
Any idea how do I change my password when it expires ?

Thanks,
Renil.
Oct 24 '07 #1
4 4307
Shashi Sadasivan
1,435 Recognized Expert Top Contributor
Hi,
We have developed a .net2.0 application using asp.net, vb.net and oracle9i. From the appl. we pass the datasource=;userid=;password=; to validate the username and password against the user_users table in oracle.
When the password is expired, We are forcing the user to change the password through a screen which uses...
ALTER USER <user> IDENTIFIED BY <newpassword> REPLACE <oldpassword>
But the moment this statement excecute in the appl, its throwing an error msg saying "your password has been expired" and not allowing the user to change the password.
The same password expired case, If I try to login using TOAD or SQLPlus, Its immediately throwing a dialog box to change the password.
Any idea how do I change my password when it expires ?

Thanks,
Renil.
Are you using the same credentials to change the password?
As in, the same username and password to execute the stored procedure to change the password for that username?

Technically, if the password has expired, you may not be able to login to do any of that ! .. unless the oracle mannual has defined a way to do so
Oct 24 '07 #2
Renilkumar
26 New Member
Hi,

Since I am using ODP driver, I used connection.OpenWithNewPassword("new password") to reset my password. Here is the sample C# code..

try {

cn.Open();

return cn; }

catch {

cn.OpenWithNewPassword(newpwd);

return cn; }
Oct 29 '07 #3
radcaesar
759 Recognized Expert Contributor
Hi,
We have developed a .net2.0 application using asp.net, vb.net and oracle9i. From the appl. we pass the datasource=;userid=;password=; to validate the username and password against the user_users table in oracle.
When the password is expired, We are forcing the user to change the password through a screen which uses...
ALTER USER <user> IDENTIFIED BY <newpassword> REPLACE <oldpassword>
But the moment this statement excecute in the appl, its throwing an error msg saying "your password has been expired" and not allowing the user to change the password.
The same password expired case, If I try to login using TOAD or SQLPlus, Its immediately throwing a dialog box to change the password.
Any idea how do I change my password when it expires ?

Thanks,
Renil.

How can u login after the password has been expired ?
Oct 29 '07 #4
radcaesar
759 Recognized Expert Contributor
Sorry, Yours is right since you have used ALTER USER..

Just Close the connection perfectly after your ALTER Operation and Open a new one.

Am not sure this is the solution, just try.
Oct 29 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Lobang Trader | last post by:
Hi all, I am trying to create a username and a password class. I would like to know what are the RECOMMENDED minimum and maximum length for both fields? These fields will be something like...
4
by: ecPunk | last post by:
Hi, We have a web application where we want a user to be able to change his/her password if the password has expired but we are unable to do this with ASP (at the moment) because we can't log...
7
by: dlinetsky | last post by:
I have a C# web app that uses mixed mode authentication (windows integrated auth. together with formsAuthentication). I would like to have a form that allows users to change their windows...
2
by: Elroyskimms | last post by:
The form has two text fields... one called txtEmail and one called txtPassword. The username is the email address (txtEmail) and the password is txtPassword. Storing cookie using the following...
0
by: GregS | last post by:
We have a client that has a very large number of users that will be connecting back to the domain via VPN only. The problem is that the communications vendor can not pass the password expiration...
21
by: solomon_13000 | last post by:
I am using ms access database and asp 3.0 as my front end. In my database there is a table called account and a field called password. How do I protect the password stored in the database.
1
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data...
4
by: John Kotuby | last post by:
Hi all, I have a simple user-form which accepts contact and profile information for the user to edit and save. All the textboxes are working fine and displaying the expected data, both when the...
0
by: shashank kadge | last post by:
You can set it to integer, if u dont want to use ADS constant. 544 - to enable the user object 66048 - for Password never expires in addition to enabling user object. 66080 - for enabling user...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.