Page 1 of 1
Modifying user via Services API without modifying a password
Posted: Thu 28 Jan 2010 13:51
by upscene
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
Posted: Thu 28 Jan 2010 13:59
by Plash
The same way can be used with IBDAC.
If you does not assign a value to a property, it stays unmodified.
Posted: Thu 28 Jan 2010 14:05
by upscene
Well, it gets modified
But I'm explicitly setting it to '' first, I guess I shouldn't do that then?
That being said, is the "change" checked after each call to .ModifyUser ot so?
Posted: Mon 01 Feb 2010 12:06
by Challenger
We have tested TIBCSecurityService on Firebird with the following sample:
Code: Select all
IBCSecurityService1.Username := 'SYSDBA';
IBCSecurityService1.Password := 'masterkey';
IBCSecurityService1.Active := True;
IBCSecurityService1.UserInfo.UserName := 'SYSDBA';
IBCSecurityService1.UserInfo.FirstName := 'Test';
IBCSecurityService1.ModifyUser;
In this case the password stays unmodified. Please check that you did not modify the user property.
Posted: Mon 01 Feb 2010 12:12
by upscene
Challenger wrote:We have tested TIBCSecurityService on Firebird with the following sample:
Code: Select all
IBCSecurityService1.Username := 'SYSDBA';
IBCSecurityService1.Password := 'masterkey';
IBCSecurityService1.Active := True;
IBCSecurityService1.UserInfo.UserName := 'SYSDBA';
IBCSecurityService1.UserInfo.FirstName := 'Test';
IBCSecurityService1.ModifyUser;
In this case the password stays unmodified. Please check that you did not modify the user property.
As I said, I was setting it to '' (empty string), this seems to trigger the change.
Is the "property changed" flag reset after calling .ModifyUser?
Posted: Tue 02 Feb 2010 08:32
by Challenger
Is the "property changed" flag reset after calling .ModifyUser?
Yes