Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Administration & Installation

Retirement Notice

Baanboard is shutting down on 31-dec-2023. See: http://www.baanboard.com/baanboard/showthread.php?t=76043


User login

Frontpage Sponsor

Main

Poll
What do you expect from your SI Implementation partner for the success of ERP implementation.
Bring best practices - Not to offer more CR's Leveraging standard functions
20%
Need more honesty to work with the Users until their processes are fully mapped & Users are trained
40%
Focus on process automation/ integrations/ Real time data/ BI analytics
13%
Stick to basics
27%
Total votes: 15

Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 9th December 2015, 16:38
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 649
günther is on a distinguished road
Baan: Baan IVc4, Infor LN 10.6 - DB: Informix, MS-SQL - OS: HP-UX, Windows
Log baan access
Baan: Baan IVc4
DB: Informix DS 11.5
OS: HP-UX 11.31
C/S: Server

Hi,

does anybody know a way to write log entry (e.g. to a file), when a user logged in into Baan?

We (IT department) are regulary tested and have to proove that the user account has been disabled/deleted if the user leaves the company etc.

Regards
Günther
Reply With Quote
  #2  
Old 9th December 2015, 19:33
RedBatz's Avatar
RedBatz RedBatz is offline
Member
 
Join Date: Oct 2005
Location: Lisbon, Portugal
Posts: 61
RedBatz is on a distinguished road
Baan: Baan IV c4, Baan V, LN, SLM - DB: MSSQL2005/2008/2012/2016/2019 - OS: W2003, 2012, 2019
Hi,

In ttaad2100m000 there is a History option (ttaad200.hist).

Checking this option for a user will log at {$BSE}\lib\TIME.HIS the sessions executed by the user, and the main menu object ottdskmbrowse (executed at login).

Hope it helps.
Reply With Quote
  #3  
Old 10th December 2015, 15:51
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
NPRao will become famous soon enough
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x - DB: Oracle,MS-SQL - OS: HPUX, Linux, Windows
Quote:
does anybody know a way to write log entry (e.g. to a file), when a user logged in into Baan?
If you are HPUX, you can use the last command -
Quote:
LAST,LASTB(1) Linux System Administrator’s Manual LAST,LASTB(1)

NAME
last, lastb - show listing of last logged in users

SYNOPSIS
last [-R] [-num] [ -n num ] [-adFiowx] [ -f file ] [ -t YYYYMMDDHHMMSS ] [name...] [tty...]
lastb [-R] [-num] [ -n num ] [ -f file ] [-adFiowx] [name...] [tty...]

DESCRIPTION
Last searches back through the file /var/log/wtmp (or the file designated by the -f flag) and displays a list of all users logged in
(and out) since that file was created. Names of users and tty’s can be given, in which case last will show only those entries matching
the arguments. Names of ttys can be abbreviated, thus last 0 is the same as last tty0.
Quote:
We (IT department) are regulary tested and have to proove that the user account has been disabled/deleted if the user leaves the company etc.
You can query the /etc/passwd and the /etc/shadow files for the info.
Quote:
In ttaad2100m000 there is a History option (ttaad200.hist).
This option also work IF you enabled the History in the User Data Template and also that you have not purged the TIME.HIS file
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
  #4  
Old 14th December 2015, 09:05
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 649
günther is on a distinguished road
Baan: Baan IVc4, Infor LN 10.6 - DB: Informix, MS-SQL - OS: HP-UX, Windows
Thanks a lot for the replies.

@RedBatz: I'm a bit scared about the heavy logging that will cause. We have nearly 700 users, and each session start will create a log entry to that file.

@NPRao: We're on unix, but I cannot use last, because our users are using the GUI and therefor there is no unix login.

At the moment, we have a glue script that is called before bshell gets started and that works fine for 99,9% but the 0,1% give 100% of work, discussion and so on. The Problem is, that we do not log "when a user logged in" but "when a user >>tried<< to log in".

Any other ideas?

Regards
Günther
Reply With Quote
  #5  
Old 14th December 2015, 21:15
shah_bs's Avatar
shah_bs shah_bs is offline
Guru
 
Join Date: Jan 2002
Location: Lewisville, Texas
Posts: 395
shah_bs is on a distinguished road
Baan: BAAN IVc3 with A&D2.2b - DB: ORACLE 9 - OS: HPUX
'last' will work, because even with GUI, there is still 'under the hood' unix connection required. You can check by running the last command for a user whom you know is no longer using BAAN (hopefully you have yet to take action to remove his access.)

Although, it will take some shell programming to get only the one record that is interesting. 'last' command gives all instances of when the user last logged in, assuming that the 'last' 'database' has not been cleaned up.
Reply With Quote
  #6  
Old 15th December 2015, 07:40
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 649
günther is on a distinguished road
Baan: Baan IVc4, Infor LN 10.6 - DB: Informix, MS-SQL - OS: HP-UX, Windows
Funny. We're also on HPUX, but I cannot get that working. A user which is now running Baan is not displayed by 'last <unix-login>'; our /var/adm/wtmps is beeing regularly archived which can be seen by the line "WTMPS_FILE begins at Tue Dec 15 04:00:02" - but now it's 6:39 and the user has logged in 6:37.

Regards
Günther
Reply With Quote
  #7  
Old 15th December 2015, 07:46
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 649
günther is on a distinguished road
Baan: Baan IVc4, Infor LN 10.6 - DB: Informix, MS-SQL - OS: HP-UX, Windows
Solution by Infor

Meanwhile, I raised an incident at Infor and got called back. I was told that I'm not the first one to ask about that. After some technical discussion we came to a simple solution: Write a small 3GL script that does the logging (to file(s) or database, one record per user or per user and day or ...), create a session for that and create a startup session group that uses this session; link all uses to that startup group (ttaad2105m000).

I've already tested that and it Looks fine!

Regards
Günther
Reply With Quote
  #8  
Old 25th November 2022, 12:34
Shyamb Shyamb is offline
Junior Member
 
Join Date: Mar 2009
Posts: 8
Shyamb is on a distinguished road
Baan: Erp LN,Baan IVc4 - DB: 6.1 - OS: SQL
As mentioned we had collected the baan application last login file from /var/log/wtmp but here the challenge is that it contains all the history of user logins and our requirement is that to pull the data of last login with respect to each baan user and rest login dates should be skipped with respect to that user.

is there any way out to tackle this requirement?

Note: - we do not need last login details from OS level
Reply With Quote
  #9  
Old 25th November 2022, 12:49
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 649
günther is on a distinguished road
Baan: Baan IVc4, Infor LN 10.6 - DB: Informix, MS-SQL - OS: HP-UX, Windows
Hi.

Funny, it's a real old thread. Meanwhile, I have a straight-forward solution for Baan IV:

1. Create a Baan IV Session, e.g. <xx><yyy>login. Program Script as a 3-GL, that tracks the login user, date and time to a new table.
2. Create a Session Group "login" in ttaad2107m000.
3. Add the Session <xx><yyy>login to the Session Group "login" in ttaad2106m000 (+ Convert to Runtime).
4. And if you're on Unix: The name of the B-Shell must be "bshell" not "bshell6.1"; so I created a symbolic link from $BSE/bin/bshell6.1 to $BSE/bin/bshell. Otherwise the Startup-functionality will not work!
5. If that all works, you can create Display/Print Session "onyl the last login", "all logins" and so on.

Regards Günther
Reply With Quote
  #10  
Old 6th December 2022, 20:31
OmeLuuk's Avatar
OmeLuuk OmeLuuk is offline
Guru
 
Join Date: Mar 2002
Location: NetherBelgium
Posts: 1,376
OmeLuuk will become famous soon enough
Baan: Infor LN 6.1 10.2.1 > 10.7 - DB: MS SQL2017 - OS: VM WindowsServer2016
And all this could have been solved with some ksh scripting as well, since the "bshell program" is also possible to refer to a script calling actual bshell6.2 but after logging was written. And loging of the end-exit bshell as well... done that back in the day...
__________________

Also read Luke 24:4-8

After that you can find many answers on Infor, LN, BaanIV, BaanV, InforLN and ION and even some questions asked here on baanboard.com
Reply With Quote
  #11  
Old 7th December 2022, 07:18
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 649
günther is on a distinguished road
Baan: Baan IVc4, Infor LN 10.6 - DB: Informix, MS-SQL - OS: HP-UX, Windows
Are you sure, that this approach logs the successful login, or does it log the try to login? That was our initial problem.

Regards
Günther
Reply With Quote
  #12  
Old 7th December 2022, 11:14
OmeLuuk's Avatar
OmeLuuk OmeLuuk is offline
Guru
 
Join Date: Mar 2002
Location: NetherBelgium
Posts: 1,376
OmeLuuk will become famous soon enough
Baan: Infor LN 6.1 10.2.1 > 10.7 - DB: MS SQL2017 - OS: VM WindowsServer2016
Ah there you have a point, but when logging just before bshell starts and after bshell ends you will know the time spent so also failed logins are logged, but with a very short time span.
__________________

Also read Luke 24:4-8

After that you can find many answers on Infor, LN, BaanIV, BaanV, InforLN and ION and even some questions asked here on baanboard.com
Reply With Quote
  #13  
Old 3rd January 2023, 16:44
Henk Spanhaak Henk Spanhaak is offline
Newbie
 
Join Date: Jan 2007
Posts: 2
Henk Spanhaak is on a distinguished road
Baan: BaanIV - DB: Oracle - OS: Linux
We made a 3-GL script to add a record in an own table with the user and the current date. We created a BMS mask for this, session ttadv4188m000, both options to add mask and boot on yes. This 3-GL script will be started when the bshell is started and a record will be written in the own table.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access files on the network from within Baan Maintain Sessions bamnsour Third Party Products 2 5th July 2005 14:50
Ervaren Baan specialist ICT Builder Jobs and Resumes 3 5th February 2005 07:37
Grabbing some BaaN fields from Ms Access - but use the already opened BaaN TylerLacey AFS/DDC/OLE: Function servers 2 26th July 2004 17:48
Not authorized to run as user baan positive Tools Administration & Installation 7 29th June 2004 09:56
Can not access baan after enable the enhanced security (C2-Security)! Saravuth Operating Systems & Databases 4 11th July 2003 02:04


All times are GMT +2. The time now is 01:11.


©2001-2023 - Baanboard.com - Baanforums.com