toaaron
28th April 2004, 13:56
I am developing a tool to prevent the duplicate login to Baan.
I am able to extract a logged user list by calling the following command from a VB app.:
licmon -w > C:\users.txt
So, whenever a bw client is attemp to connect to Baan, then I would compare the caller name with the logged user list in order to perform the suitable action (either start the ntbshell or send a error message to user).
Finally, my question is...
How can I make my VB program to obtain the caller name (i.e. the bw client who attempt to connect Baan) in order to do the comparing against the logged user list?
lbencic
28th April 2004, 16:35
I know there is a baan command for it:
get.bw.hostname() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_system_and_user_information_get_bw_hostname)
I think that's only available in Baan V.
Is that what you need? If you can't find from VB direct, maybe you can trigger a library in Baan that sends that out for you.
lbencic
28th April 2004, 16:43
Also this wiki link has an overview of similar functions:
Overview System and User Info (http://www.baanboard.com/programmers_manual_baanerp_help_functions_system_and_user_information_overview_and_synopsis)
toaaron
29th April 2004, 04:58
Thanks for your reply:)
Regarding this get.bw.hostname()
Pardon me that i am not an expert in using this function. Would you please guide me where i should put this function, is it inside the visual basic program?
Or would you please kindly provide me a sample coding of using this?
Thank you!
toaaron
29th April 2004, 12:48
I know that to prevent multiple login to baan, we can modify the ipc_info file, and point it to a vb program to do the user verification instead of start the ntbshell.
So on server side, whenever a bw client is attempt to connect to baan server, how can i obtain the bw client's user name in order to do the verification?
what i means is, the user verification is done before the client start the ntbshell, since user is not connect to Baan, how can i know the user name?
My Baan server is a Windows 2000 server.
Thank you.
lbencic
29th April 2004, 16:41
It's a Baan command - would have to be triggered after opening a shell. I see now you want to verify before the shell starts.
I am not familiar with programming at that stage - from the ipc_info stage. You should have the bw 'requestor' in hand but sorry I don't know the variable.
Try checking this post - with links to others.
Login Restriction post (http://www.baanboard.com/baanboard/showthread.php?s=&threadid=6363&highlight=logins)
agonirena
29th June 2006, 10:21
your vb appliction is receiving some arguments, the first one looks something like this:
your_vb_app_name+(login@host:1540/SOCKET)
you coud extract the caller parsing the first argument.