?
Solved

Checking passwords in Novell 4.11

Posted on 1999-01-22
5
Medium Priority
?
131 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

800 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