[dev.icinga.com #2142] AD LDAP user import fails #599
Comments
Updated by chodorenko on 2011-12-03 23:12:31 +00:00 Please read Update Manual INSERT INTO nsm_target (target_id,target_name,target_description,target_class,target_type) VALUES ('19','IcingaCommandRestrictions','Disable critical commands for this user','IcingaDataCommandRestrictionPrincipalTarget','icinga'); |
Updated by fungus on 2011-12-05 16:27:09 +00:00
Thanks for looking. This wasn't an upgrade, fresh install. Also the suggested record already exists. See dump of said table. |
Updated by gpduck on 2011-12-07 02:58:34 +00:00 This is caused by the changes in root/app/modules/AppKit/lib/database/models/generated/BaseNsmUser.php introduced in revision 01bf9d7, specifically line 167 that renamed NsmPrincipal to principals (which was then later renamed principal in 819ab0f). This can be fixed by editing line 293 in root/app/modules/AppKit/models/Auth/DispatchModel.class.php to say: $user->principal, instead of $user->NsmPrincipal |
Updated by fungus on 2011-12-07 19:00:03 +00:00 Yay, thank you very much. That is exactly the fix. Works perfectly. |
Updated by mhein on 2011-12-09 10:44:22 +00:00
Applied in changeset 757e604. |
Updated by netscraper on 2011-12-14 20:59:17 +00:00 gpduck wrote:
Here works this fix also. I've been looking for a solution while 3 hours. many thanks for your support! Why the fix has not yet entered in the current package? regards from switzerland |
Updated by mfriedrich on 2011-12-14 21:00:57 +00:00
because another release on the 1.6.x tree is needed to let the fix hit upstream. |
Updated by netscraper on 2011-12-14 21:14:00 +00:00 dnsmichi wrote:
Ok, nice. Thanks for your commitment! |
Updated by mfriedrich on 2011-12-14 21:29:08 +00:00 dunno when it will happen though - minor bugfix releases are up to the respective release managers for their packages (marius for the web). |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/2142
Created by fungus on 2011-12-03 01:42:42 +00:00
Assignee: (none)
Status: Resolved (closed on 2011-12-09 10:44:22 +00:00)
Target Version: 1.6.1
Last Update: 2011-12-14 21:29:08 +00:00 (in Redmine)
New installation of Icinga-web 1.6
Attempts to logon as a new user fail with:
Uncaught Doctrine_Record_UnknownPropertyException thrown:
Unknown record property / related component "NsmPrincipal" on "NsmUser"
Authentication works fine with the internal provider. No new database records were created up to this point.
I attached the debug log which isn't very helpful.
Also attached the stacktrace that got returned for the login POST.
Also attached the additions to the authentication config.
The point in the code where it fails is in file:
app/modules/AppKit/models/Auth/DispatchModel.class.php
In function importUser:
This fragment fails:
$padmin->updatePrincipalValueData(
$user->NsmPrincipal,
array(),
array()
);
Attachments
Changesets
2011-12-09 10:35:03 +00:00 by mhein 757e604
The text was updated successfully, but these errors were encountered: