Solved

Checking passwords in Novell 4.11

Posted on 1999-01-22
5
128 Views
Last Modified: 2008-03-06
I'm writing a program which forces users to change their password (I work in education and students would rather ask our helpdesk to do this for them).  I need something which checks their old password before I run the code to change it to something new.

Any ideas
0
Comment
Question by:bigc
  • 3
  • 2
5 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1470033
You *CANNOT* read the existing password in Novell. The system just has no way to read this info back to an app. You can OVERRIDE the password with an ADMIN account, but this will *NOT* tell you the current password.

I just build an icon that triggers SETPASS.EXE in a child DOS window. I set the properties of the batch so that the window doesn't shut automatically to give the user a chance to see the response in case the change failed for any reason.

If you need to bulk reset accounts, It's easy enough to force in passwords, but then you still have to notify the users of their *NEW* passwords. You can't use email to do it as they can't get into the LAN to get their new passwords without first knowing their new passwords.

M

0
 

Author Comment

by:bigc
ID: 1470034
I know I can't read it.  My problem is that if I put a batch file like that in, they simply press enter enough times to go through it, and still don't change their password - basically I need something idiotproof so they are forced to change it.

Does setpass produce error codes which could be read, and so loop back to the beginning if they tried to evade changing their password?
0
 
LVL 12

Expert Comment

by:mark2150
ID: 1470035
Yes. Setpass will return an errorlevel >0 if unsuccessful and =0 if Ok. You can code a batch:

@ECHO OFF
:RETRY
SETPASS
IF ERRORLEVEL=1 GOTO RETRY

Although I found a *much* easier way to motivate my users to change their passwords on time. When payday comes around I wouldn't let got of the envelope until I saw the user change their password!

M

0
 

Author Comment

by:bigc
ID: 1470036
Thanks.

Unfortunately as my users are students, nothing much motivates apart from free drink or casual sex - neither of which I'm prepared to offer them.

I think you need to put it in as an answer, as I can't give you the points from a comment.
0
 
LVL 12

Accepted Solution

by:
mark2150 earned 200 total points
ID: 1470037
Ok, Thanks!

M

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question