?
Solved

Checking passwords in Novell 4.11

Posted on 1999-01-22
5
Medium Priority
?
135 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 600 total points
ID: 1470037
Ok, Thanks!

M

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

850 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