ctarton1
24th January 2006, 18:41
We have BaanIVc4 installed in a UNIX server, the clients use windows platform. We need to have the windows logon, but if we use de getenv$ function I obtain the UNIX user.
Please, could you tell me if is possible to have this data?

Thanks in advance.

mark_h
24th January 2006, 19:04
Can't you use logname$ to get the Baan user and then use that to find the system login name on ttaad200? Not sure if that is used when setting up Baan on a windows server.

ctarton1
24th January 2006, 20:04
The problem is that I have diferent windows network user and baan user. I need to launch a windows application from a baan session. For that, I need to know from a baan sessión the windows user (not the baan user).

mark_h
24th January 2006, 20:24
I thought we you set-up a baan user you created what system user id would access the baan users. So for example I have two Baan logons to two companies (502user and 503user). Both of these users have the unix user of myuserid. Do you not do the same thing when setting up a baan user on the windows platform? See ttaad2100m000 form one system login user. This contains our unix id which is the same for all of our Baan users.

victor_cleto
24th January 2006, 22:36
If your Baan users at UNIX level are completely independent from the Windows users that is not possible.

mark_h
24th January 2006, 23:05
Check this thread (http://www.baanboard.com/baanboard/showthread.php?t=1151&highlight=USERID) out. It may provide other solutions.

ctarton1
25th January 2006, 10:00
Thanks for your help.

I have created a windows script with the command:
echo %username% > user.txt

And in the user.txt file I have the windows logon.