You are not logged in.
Can I use window authentication to authenticate to the server automatically without synopse I'll be prompted for the password.
It seems a little difficult but I need this for NT users
I wanted to use the active directory of windows to signin as in MySQL
thanks
Last edited by corchi72 (2012-11-13 09:30:46)
Offline
It's not possible in current implementation.
In my project I modify TSQLRestServer.Auth method (ugly but I really need this) and redirect user credential check to LDAP server. But user need to provide password. 
To authenticate to the server automatically (without password enter) you need  to implement Kerberos support. I plane to do it, but later.
Offline
ok thanks I think I will manage the user and password as I always have.
however, I would ask how you managed to change password of each user, ie the user can change the password alone has the right or privilege to be administrator?
Offline
Offline
Unfortunately I just verified that I can not change the password of the Administrator are not TSQLAuthUser sen. Right?
var
  APassword:String;
  AAuthUser:TSQLAuthUser;
begin
   if Assigned(CurrentClient) and  Assigned(CurrentClient.SessionUser) then
   begin
      try
      AAuthUser := TSQLAuthUser.Create(CurrentClient, 'LogonName=?', [CurrentClient.SessionUser.LogonName]);
      if AAuthUser.ID>0 then
      begin
        APassword := Dialogs.InputBox('Change password', 'New password:','');
        if length(trim(APassword))>0 then
        begin
          AAuthUser.PasswordPlain := APassword;
          CurrentClient.Update(AAuthUser);
        end;
      end;
      finally
        AAuthUser.Free;
      end;
   end;
end;Offline
For security reasons, you can not change the user password from a client directly.
You can do it in two ways:
- Change the corresponding user group right;
- From the server side, define a service which will be able to directly access the TSQLRestServer instance, and will have the right to change the password.
Offline
ok Thanks
Offline