Solved

Checking passwords in Novell 4.11

Posted on 1999-01-22
5
125 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DIR issue 7 48
Excel VBA, find a string in a column, update a cell 7 51
How to make an ADE file by code? 11 42
Spell Check in VB6 13 53
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now