检索Firebird用户密码 [英] retrieve firebird users passwords

查看:197
本文介绍了检索Firebird用户密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序当前正在使用firebird安全性为我的应用程序的任何用户登录。

My application currently is using the firebird security to logon for any user of my application.

我们正在使用Delphi7和Firebird 2.1。

We are using Delphi7 and Firebird 2.1.

现在我们需要更改此设置,我们需要自己控制访问权限。

Now we need to change this and we need to control de access by ourself.

我们正在考虑从数据库中检索所有用户密码(作为转换例程)并将密码保存在我们的表中。...

We are thinking about retrieve all users passwords from the database (as a conversion routine) and save the password inside our tables....

可以这样做吗?

我正在尝试使用delphi组件TIBSecurityService,但没有成功。

I'm trying to use the delphi component TIBSecurityService, but without success.

看看:

var
  i: integer;
  l: TStrings;
  pwd: string;
begin
  IBSecurityService1.Attach;
  IBSecurityService1.DisplayUsers;
  l := TStringList.Create;
  try
    for i := 0 to IBSecurityService1.UserInfoCount-1 do
      l.add(IBSecurityService1.UserInfo[i].UserName);

    while l.Count > 0 do
      try
        IBSecurityService1.DisplayUser(l[0]);
        pwd := IBSecurityService1.Password;
        // pwd = ''
      finally
        l.Delete(0);
      end;
  finally
    l.Free;
  end;
end;

感谢帮助!

推荐答案

Firebird中的密码是散列的,因此您无法恢复它们。

Passwords in Firebird are hashed, so you cannot recover them.

这篇关于检索Firebird用户密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆