2019-06-25 08:54:22 +00:00
|
|
|
-- Home\Library\Accounts
|
|
|
|
|
2019-06-18 16:57:55 +00:00
|
|
|
Select
|
|
|
|
datetime('2001-01-01', zaccount.zdate || ' seconds') as 'AccDate',
|
2019-06-25 08:54:22 +00:00
|
|
|
datetime('2001-01-01', zaccount.ZLASTCREDENTIALRENEWALREJECTIONDATE || ' seconds') as 'RenewalRejection',
|
2019-06-18 16:57:55 +00:00
|
|
|
ZACCOUNTTYPE.ZACCOUNTTYPEDESCRIPTION as 'AccTypeDescription',
|
|
|
|
ZACCOUNTTYPE.ZIDENTIFIER as 'AccountIdentifier',
|
|
|
|
zaccount.ZUSERNAME as 'Username',
|
|
|
|
zaccount.ZACCOUNTDESCRIPTION as 'Description',
|
|
|
|
case zaccount.ZACTIVE
|
|
|
|
when 0 then 'No'
|
|
|
|
when 1 then 'Yes'
|
|
|
|
end as 'Active',
|
|
|
|
case zaccount.ZAUTHENTICATED
|
|
|
|
when 0 then 'No'
|
|
|
|
when 1 then 'Yes'
|
|
|
|
end as 'Authenticated',
|
|
|
|
case zaccount.ZSUPPORTSAUTHENTICATION
|
|
|
|
when 0 then 'No'
|
|
|
|
when 1 then 'Yes'
|
|
|
|
end as 'SupportsAuth',
|
|
|
|
zaccount.ZAUTHENTICATIONTYPE as 'AuthenticationType',
|
|
|
|
ZACCOUNTTYPE.ZCREDENTIALTYPE as 'CredentialType',
|
2019-06-25 08:54:22 +00:00
|
|
|
ZACCOUNTPROPERTY.ZKEY as 'key',
|
2019-06-18 16:57:55 +00:00
|
|
|
case zaccount.ZVISIBLE
|
|
|
|
when 0 then 'No'
|
|
|
|
when 1 then 'Yes'
|
2019-06-25 08:54:22 +00:00
|
|
|
end as 'AccVisible',
|
2019-06-18 16:57:55 +00:00
|
|
|
zaccount.ZIDENTIFIER as 'Identifier',
|
|
|
|
zaccount.ZOWNINGBUNDLEID as 'OwningBundleID'
|
|
|
|
|
|
|
|
|
|
|
|
from zaccount
|
|
|
|
join ZACCOUNTTYPE on ZACCOUNTTYPE.Z_PK = zaccount.'ZACCOUNTTYPE'
|
2019-06-25 08:54:22 +00:00
|
|
|
join ZACCOUNTPROPERTY on ZACCOUNTPROPERTY.Z_PK = zaccount.Z_OPT
|
2019-06-18 16:57:55 +00:00
|
|
|
|
|
|
|
order by AccDate desc
|