问题描述
我正在创建桌面应用程序,以检查局域网中的用户名和密码,并且用户名和密码存储在另一台计算机中.
我想用两种方式做.
1)我将运行一个服务器程序,其中存储了用户名和密码的数据库,因此,如果客户端将用户名和密码发送给服务器,并且服务器接收到它们并正常检查.
2)当客户端要使用用户名和密码登录时,此方法对我来说是新方法,
他必须直接连接到lan sql数据库并检查身份验证.
我的问题是哪个会更好.
如果您认为第二个更好,那我该如何实现呢?
提前感谢
i am creating desktop application program to check username and password in lan network , and the username and passwords are stored in a different computer.
i thought of doing in two ways like .
1) i will running a server program where the database of username and password are stored ,so if a client sends the username and password to server and the server recieves them and checks normally .
2) this method is new to me ,when client wants to login with username and password,
he has to connect direct to lan sql database and checks for authentication .
my problem is which would be better .
if you think 2nd one is better how can i implement that .
THANKS IN ADVANCE
推荐答案
这篇关于sql身份验证模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!