penawils
3rd December 2001, 16:41
Hi Everybody. Someone have a procedure to notify a user when his password is going to expire.

Thanks for your Help.

JamesV
3rd December 2001, 19:46
Check out the below thread from the OS and Database forum. Also, I would try doing a search on the keyword password and see if that helps clarify your issues.

Password Aging Thread (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=295)

There has been a lot of discussion on this point as the call for a password expiration has to occur when they are logged into Baan, but some sites do not want to give shell access to accounts, etc.

I am interested to see what people are doing for password expiration notification ...

BTW -- what platform are you running on?

-- Jim

penawils
3rd December 2001, 20:23
James:

We are runnig AIX 4.3.3. , Oracle 8.0.5, and BaaN IVC2


Thanks

Praveen
4th December 2001, 02:07
Our adminstrator Steve Johnson posted this on Baanfans:

THERE IS AN ANSWER!
(See some of the other preceeding repsonses.)

Each Unix installation has some sort of routine that will allow a user to list attributes of of a user ID. At our installation it is called "xpasswd", a locally grown network version of passwd.

Given that capability above, a script can be written (pass.check.sh in the example below) that simply finds the expiration date of a user ID, compares with today's date (date/time) and pushes a formatted message to the LOGGED ON Baan user (bshcmd6.1 or 6.2) that their password will expire in in x-days and y-hours, if and only if the expiration date/time is within a threshold. In our facility that threshold is 5 days.
Note: send a message to the logged on user. That is accomplished by invoking the above script as a background process in the bshell script pointed at by ipc_info.

The normal $BSE/lib/ipc_info entry just points to bshell6.1/6.2 (an object). But you can point it to a Bourne shell script that invokes the bshel6.1/6.2 as the last thing:

#!/bin/sh
# Set site env user variables...
#
# Set other site specific env variables
#
/.../pass.check.sh &
$BSE/bin/bshell6.2 $*

The magic here is the ampersand on the password checking command: it says to run in the background and continue processing. The pass.check.sh script has a "go to sleep for 5 seconds" command as its first executable command. It then wakes up, does the check, sends the message to the (now) logged on user if required and then exits. Because it is a backgound process, when it ends it will be in a process state of . This is OK and will stay there until the Baan session (the parent process) ends.

Happy day. Users love it. It can also be used as an adminstative tool.


This works pretty good for us.

henryt
4th December 2001, 10:45
ls,

in Baan5.0 ERP b (Grieg) en c (Corelli) Baan made passwordaging available by the BW-client

First you have to set password aging on Unix. Here we have SUNOS and we make it work by typing 'passwd -x 30 -w 4' where x is period password aging and w is the warn time in days to change the password.
On AIX you can change it by smit(tty) as far as i know.

Then you set password aging in Baan. change owner of ${BSE}/bin/badmin6.2 to root and set the sticky bit on it:
# chown root badmin6.2
# chmod u+s badmin6.2
Add session ttstppwdaging to session BMS Mask Data (ttadv4188m000) and run the convert to runtime in special menu.


That should do the trick. If you get an error 506 install patch/solution 113957 (we must so i mention it)

On BGS in solution 119781 you can see some more of password aging.

solong!

HenryT.

penawils
4th December 2001, 16:30
Thanks Henry but we hace BaaN IVC2 and the sesion ttstppwdaging doesn´t exist.

penawils
4th December 2001, 16:31
Praveen:

CAn you send me the shell that you said.

Thanks a lot

fdeivis
4th May 2010, 16:12
hi... id like to know, if that script still exist??? and if anyone can sendit to me? (Praveen's script)