r_nagu
1st February 2005, 21:41
Hi,
Is there a function in BaaN IV that will terminate the user’s login? I know that we could use UNIX kill or licmon6.1 commands but I wanted to know if there are some 4GL functions that can do this.
I am trying to write a session that will be added as a startup session and in that session based on some criteria, I want to be able either allow the user to continue using BaaN or terminate his login.

Appreciate your input on this.

Thanks,
NS

NPRao
1st February 2005, 21:58
Refer to the thread for Dave's 4-GL code -

Here's the code for accessing the passage binary (http://www.baanboard.com/baanboard/showthread.php?t=22786&highlight=password)

Andre.A
7th February 2005, 18:35
hello , we developed an other version of password aging as mentioned from NPRAo.
We added a table that holds the username and last date of login and use this table as reference ( table is in company 000 ! )

we kill the baan gui tasks if the pwd is older than x days.
then we give the user the possibility to change his password.
If not changed the user is not able to login to baan.

e.g.

get.last.pwd.date
> x days
if y kill processes and give password change; if successfully changed update last.pwd.date

if n do nothing

br andre

ahulikavi
8th February 2005, 10:26
Hi,

We have developed session for password ageing part of the code kills GUI, as under :


long procid, proclist(50)

procid = pstat(procid, progname, info )

while procid > 0
proclist(i) = procid
i = i + 1
procid = pstat( procid, progname, info )
endwhile

for j = i to 1 step -1
kill(proclist(j))
endfor



its also useful to retrict user logins while doing maintenance activities.