is_sec_service_on( security_service_name )
Returns 1 if the specified security service is active and 0 if not.
Example
select is_sec_service_on( 'unifiedlogin' )