Hi,
Is it possible to modify the properties of a user WITHOUT modifying its password?
In IBX, I simply did not set the password to anything and it would stay unmodified, how can I do this with IBDAC?
With regards,
Martijn Tonies
Modifying user via Services API without modifying a password
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53
We have tested TIBCSecurityService on Firebird with the following sample:
In this case the password stays unmodified. Please check that you did not modify the user property.
Code: Select all
IBCSecurityService1.Username := 'SYSDBA';
IBCSecurityService1.Password := 'masterkey';
IBCSecurityService1.Active := True;
IBCSecurityService1.UserInfo.UserName := 'SYSDBA';
IBCSecurityService1.UserInfo.FirstName := 'Test';
IBCSecurityService1.ModifyUser;
As I said, I was setting it to '' (empty string), this seems to trigger the change.Challenger wrote:We have tested TIBCSecurityService on Firebird with the following sample:In this case the password stays unmodified. Please check that you did not modify the user property.Code: Select all
IBCSecurityService1.Username := 'SYSDBA'; IBCSecurityService1.Password := 'masterkey'; IBCSecurityService1.Active := True; IBCSecurityService1.UserInfo.UserName := 'SYSDBA'; IBCSecurityService1.UserInfo.FirstName := 'Test'; IBCSecurityService1.ModifyUser;
Is the "property changed" flag reset after calling .ModifyUser?
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53