473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Change passwd programatically?

Ian

The CONNECT statement allows users to change their password:

CONNECT TO DB USER user USING password NEW new_pass CONFIRM new_pass
Is it possible to do this via an application (JDBC, .NET or ODBC)?

I have been looking through the docs, but none of the properties
for the JDBC getConnection() method or the .NET
DB2Connection.ConnectionString property do not look like they have
any kind of support for this functionality.
Thanks -
Ian

Nov 12 '05 #1
3 1633
ODBC (CLI): Use the NEWPWD attribute. For details, see uder SQLDriverConnect
in the DB2 CLI Functions.

Recommendation: Don't use passwords, use integrated authentication via
Kerberos and maintain credentials using the features of the underlying
operating system.

"Ian" <ia*****@mobileaudio.com> wrote in message
news:Pi**************************************@sidi .phx.dataproxy.com...

The CONNECT statement allows users to change their password:

CONNECT TO DB USER user USING password NEW new_pass CONFIRM new_pass
Is it possible to do this via an application (JDBC, .NET or ODBC)?

I have been looking through the docs, but none of the properties
for the JDBC getConnection() method or the .NET
DB2Connection.ConnectionString property do not look like they have
any kind of support for this functionality.
Thanks -
Ian

Nov 12 '05 #2
Ian
On Fri, 17 Jun 2005, Mark Yudkin wrote:
ODBC (CLI): Use the NEWPWD attribute. For details, see uder SQLDriverConnect
in the DB2 CLI Functions.
I found this after posting -- and actually was able to test it
(successfully) using ADO, which surprised me (since it's not documented
for ADO).

Recommendation: Don't use passwords, use integrated authentication via
Kerberos and maintain credentials using the features of the underlying
operating system.


Ahh, utopia.

Nov 12 '05 #3
"Ian" <ia*****@mobileaudio.com> wrote in message
news:Pi**************************************@sidi .phx.dataproxy.com...
On Fri, 17 Jun 2005, Mark Yudkin wrote:
ODBC (CLI): Use the NEWPWD attribute. For details, see uder
SQLDriverConnect
in the DB2 CLI Functions.
I found this after posting -- and actually was able to test it
(successfully) using ADO, which surprised me (since it's not documented
for ADO).


Actually, it should work for ADO. I can't answer your question with JDBC
though.
Recommendation: Don't use passwords, use integrated authentication via
Kerberos and maintain credentials using the features of the underlying
operating system.


Ahh, utopia.


Not really, it's what we do. It made things easy when we went to SmartCard
logons too.

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: dave | last post by:
Hello, I've got a php script that is trying to authenticate a user against a rh9 /etc/passwd file. The passwd file has permissions of 444 but when i try to log in i am being redirected to my error...
3
by: Max | last post by:
Hi, What is the best way to change passwords via php? I was first thinking of using the chpasswd function, but even though I added an entry for apache to be able to run chpassword vi visudo,...
1
by: Kempniu | last post by:
Hi there, I was wondering how do all the "free web space" services etc. work - when one fills in a form, he/she is automatically added to the system's userlist. How does this work? I mean, how...
0
by: Dan Hartshorn | last post by:
VS.NET 2003, C#, Windows Server 2003. I have a datagrid and I want the last column to be either an EditCommandColumn or a template column, depending on a value I have. The value changes for each...
2
by: rengaraj | last post by:
Hello. How can i manage that every user must change their password at the first login? With Suse 9.1 it works: "passwd -e user" But I use REDHAT 9.0 ... Kernel 2.4! here a flag like "-e"...
3
by: Rocky Zhou | last post by:
Today I found a problem, when I wrote a section of PHP code like this: <?php $fp = fopen("/etc/passwd","r"); if($fp) { echo 'ok!'; $result = fread($fp, 8192); return $result;
8
by: sathyashrayan | last post by:
Dear group, For a log-in page I have created a mysql db and user registers with a user name and password. The password field is encrypted with $passwd = sha1($_REQUEST); I insert the...
9
by: KDawg44 | last post by:
Hi, I am brand new to Python. In learning anything, I find it useful to actually try to write a useful program to try to tackle an actual problem. I have a syslog server and I would like to...
2
by: aliwarid | last post by:
Hi All, Can any one tell me how can i make changes in /etc/passwd file ? Is it right way to make changes with "vi" command in solaris ? Or Is there any other procedure or command like for LOCKING...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.