获取用户在重启后的新IP地址?

huangapple go评论66阅读模式
英文:

How to get the new IP address of the user after reboot?

问题

我必须创建一个程序,用用户名和密码登录用户,然后在重新启动后跳过登录屏幕。

我将用户的PC IP地址存储在一个表中,然后只是选择它。
这个方法运行得相当不错。问题在于,如果用户重新启动PC,数据库中会存储一个新的IP地址。

我正在使用TH_USER_INFO函数模块,通过导入参数addrstr来获取IP地址。

您有任何关于如何在重新启动后存储一个值或某种可以标识用户的东西的想法吗?

英文:

I have to make a program which is logging in a user with username and password, and after reboot the program skips the login screen.

I am storing the user's PC IP address in a table and just select it.
It's working pretty fine. The problem is that if the user reboots the PC a new IP address is stored in the database.

I am using TH_USER_INFO function module to get the IP with importing parameter addrstr.

Do you have any idea how to store a value or something that identifies a user even after reboot?

答案1

得分: 2

I can provide a translation of the text you provided:

个人认为你在玩火。并建议你正确地去做。但如果这是一场有关如何的知识性讨论...那答案取决于你确切想做什么。

如果问题确实是一个不需要认证的问题。也就是说,你不关心另一端是谁,那么这很容易做到。通过浏览器进行WEB登录而不需要密码。是的,人们实际上这样做。如果你想要一个不需要认证的服务,那么为什么不呢...以下是如何做到的:
TCode SICF。-> 然后是外部别名。
获取用户在重启后的新IP地址?
获取用户在重启后的新IP地址?

然后进入登录选项卡,输入一个硬编码的用户名和密码。
然后每当有人调用这个端点时,他们会自动以这个用户身份登录。要小心在目标元素选项卡中将调用重定向到哪个真实服务!
如果你足够愚蠢去这样做,请确保用户只能访问一个服务!

如果你不能正确地进行单点登录,想要一个半安全的方法,那么另一种方法是让用户通过一个工具登录,其中他的密码存储安全。这样,每次登录到SAP时,你至少有基本的身份验证。你解决了使用SSO重复登录到前端工具的问题。

这适用于浏览器和SAP GUI。

Keepass这样的工具是免费的开源工具。

该工具加密存储在内部的数据。
获取用户在重启后的新IP地址?

打开给定系统客户端用户和密码的SAPGUI的命令是
cmd://sapshcut –maxgui -system=E01 -client=001 -language=EN -user={用户名} -pw={密码}

然后每次你想要登录时,右键单击该条目并选择打开...
获取用户在重启后的新IP地址?

我使用这个工具登录到我们拥有的每个SAP系统,这些系统使用基本身份验证。
我用它登录网站,甚至用于支持双因素认证密码。
是的,没有手机上的双因素认证应用,使用Keepass内部的双因素认证作为替代方案。
这是一个非常强大的工具。

选项2是一个古老的喜好。它涉及到REGEDIT的黑客。强制SAPGUI允许一个被禁用的旧功能。
是的,20年来SAP gui允许保存密码。以下是有关此主题的博客之一。
SAPGUI Logon pad save password HACK

当然,如果一切都太难了,你可以成为一个彻底的牛仔,创建一个桌面快捷方式,其中包含明文存储的密码。

"C:\Program Files\SAP\FrontEnd\SAPGUI\sapshcut.exe" –maxgui -system=SID
-client=001 -language=EN -user=UNAME -pw=<rUserious?>

以及目标 "C:\Program Files\SAP\FrontEnd\SAPgui"。

英文:

Personally think you are playing with fire.
And recommend you do i properly.
But if it is an intellectual discussion of how....
Then the answer is it depends on exactly you want to do.

If the Problem is truly an unauthenticated one.
Ie you dont care who is on the other end, then its easy to do.
WEB Logon via browser with no password.
Yes People actually do this shit.
And if you wanted an Unauthenticated service, then why not....
Here is how:
TCode SICF. -> Then External Aliases.
获取用户在重启后的新IP地址?
获取用户在重启后的新IP地址?

Then go to the login Tab and enter a hard coded userid and Password.
Then every time someone calls this endpoint, they are logged on automatically as this user. BECAREFUL what real service you redirect the call to in the Target Element tab. This is leaving the door open for that service !!!
And if you were foolish enough to do this. Make sure the user only has access to the one service !

If you cant to do SSO properly and want a poor mans solution that is half way safe, then the alternative approach is to have the user login via a tool with his password stored securely. This way you have at least Basic Auth every time the login to sap. You resolve the problem of repeated logon with SSO into a tool on the front end.

This works with both Browser and SAP GUI.

Tools like Keepass are Free open source.

The tool encrypts the data stored inside.

获取用户在重启后的新IP地址?

The command to open SAPGUI for a give System client User and password is
cmd://sapshcut –maxgui -system=E01 -client=001 -language=EN -user={USERNAME} -pw={PASSWORD}

Then everytime you want to logon its right click on the entry and select open....
获取用户在重启后的新IP地址?

I use this tool for logging into every SAP system we have that uses basic auth.
I use it for Websites and it even for support 2fa Passcodes.
Thats right no 2fa app on phone, use 2fa inside keepass as an alternative.
It is a very powerful tool.

Option 2 is an old favorite . It involves a REGEDIT hack.
Forcing SAPGUI to allow and old feature that was disabled.
Yes SAP gui did for 20 years allow passwords to be saved.
Here is one of n blogs on this topic.
SAPGUI Logon pad save password HACK

Of course if all is too hard, you could be a complete cowboy
And make a desktop shortcut with a password stored in plain text.

"C:\Program Files\SAP\FrontEnd\SAPGUI\sapshcut.exe" –maxgui -system=SID
-client=001 -language=EN -user=UNAME -pw=<rUserious?>

with a target "C:\Program Files\SAP\FrontEnd\SAPgui"

huangapple
  • 本文由 发表于 2023年4月17日 18:09:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76033995.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定