Subject | Re: [IBO] Does IBO have a component/method to list registered users on a 2.5 server |
---|---|
Author | Tomasz Tyrakowski |
Post date | 2017-07-07T05:33:35Z |
On 06.07.2017 at 21:45, Dalton Calford dcalford@...
[IBObjects] wrote:
(server, user, pass), connect, call DisplayUsers and iterate over
UserInfo[userIndex] (the number of available UserInfos is in
UserInfoCount). Probably you have to connect to the FB service as a user
with the RDB$ADMIN priviledges, but I'm not sure about it (although that
would seem reasonable).
I personally chose IBX.TIBSecurityService 'cause it allows to set the
'password_enc' in Params (useful when passwords may contain non-ASCII
characters). If this isn't a concern for you, you can use either of them
(the API is very similar).
regards
Tomasz
[IBObjects] wrote:
> I am looking for a method to get a list of registered users on a firebird 2.5 server - any suggestions?Use TIBOSecurityService or IBX.TIBSecurityService, set connection params
(server, user, pass), connect, call DisplayUsers and iterate over
UserInfo[userIndex] (the number of available UserInfos is in
UserInfoCount). Probably you have to connect to the FB service as a user
with the RDB$ADMIN priviledges, but I'm not sure about it (although that
would seem reasonable).
I personally chose IBX.TIBSecurityService 'cause it allows to set the
'password_enc' in Params (useful when passwords may contain non-ASCII
characters). If this isn't a concern for you, you can use either of them
(the API is very similar).
regards
Tomasz