diff --git a/src/libexec/opnsense-auth b/src/libexec/opnsense-auth index bf91efc96..b8ec05677 100755 --- a/src/libexec/opnsense-auth +++ b/src/libexec/opnsense-auth @@ -1,42 +1,41 @@ #!/usr/local/bin/php -// password= -// service= +/* + * parse received auth data (key=value combinations separated by "\0") + * user= + * password= + * service= + */ $fp = fopen('php://stdin', 'r'); $auth_data = array(); @@ -65,13 +64,13 @@ if (!empty($auth_data['user']) && isset($auth_data['password'])) { if ($is_authenticated) { $authProps = $authFactory->getLastAuthProperties(); if (!empty($authProps)) { - // dump authentication response data to stdout + /* dump authentication response data to stdout */ echo json_encode($authProps, JSON_INVALID_UTF8_IGNORE) ."\n"; } $exit_status = 0; } else { if (getUserEntry($auth_data['user']) === false) { - // signal user unknown, so PAM may consider other options + /* signal user unknown, so PAM may consider other options */ $exit_status = 2; } }