If I add &password=XXXXXXXXXXXXXXXXXXX anywhere after username, the account is created, but the user cannot log in with their AD account.
I was able to recreate the issue in house and notified our developers about it. This will be fixed in the next release of Nagios Fusion. If you don't want to wait, you could try the following "workaround".
1. Make a backup of the "utils-api.inc.php" file (just in case):
Code: Select all
cp -p /usr/local/nagiosfusion/html/api/includes/utils-api.inc.php /usr/local/nagiosfusion/html/api/includes/utils-api.inc.php.backup
2. Open the "/usr/local/nagiosfusion/html/api/includes/utils-api.inc.php" file in a text editor, go to line 420, and change this:
Code: Select all
if ($auth_type == 'ad') {
set_user_meta("auth_server_id", $ad_server, false, $user_id);
set_user_meta("ldap_ad_username", $ldap_ad_username, false, $user_id);
} else if ($auth_type == 'ldap') {
set_user_meta("auth_server_id", $ldap_server, false, $user_id);
set_user_meta("ldap_ad_dn", $dn, false, $user_id);
}
to this:
Code: Select all
if ($auth_type == 'ad') {
set_user_meta("ldap_ad_username", $ldap_ad_username, false, $user_id);
} else if ($auth_type == 'ldap') {
set_user_meta("ldap_ad_dn", $dn, false, $user_id);
}
Note: you are basically deleting two lines.
3. Save and exit.
Important: While you will be able to create AD users, and use their AD credentials to log in, there is still going to be an issue. When you create a "local" password, users will be able to use it to log in even though the "local login" is disabled (in the GUI or by specifying "allow_local=0" with REST API user creation). We have an internal bug report, filed on the second issue (task_id=13469), which will also be fixed in the next Fusion release.
Thank you!