Syntax
int feature_enabled (int feature )
Description
feature_enabled checks whether a particular feature is enabled on the policy server. Use this function to detect support for platform-dependant features; currently these comprise FEATURE_LDAP and FEATURE_VAS (defined as integer constants).
Returns true if the feature is enabled, otherwise false.
Example
if (feature_enabled(FEATURE_LDAP)) { if (proc_do_ldap_authentication(user)) { accept; } }