Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #2142] AD LDAP user import fails #599
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
New installation of Icinga-web 1.6
Attempts to logon as a new user fail with:
Uncaught Doctrine_Record_UnknownPropertyException thrown:
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.
The point in the code where it fails is in file:
This fragment fails:
2011-12-09 10:35:03 +00:00 by mhein 757e604
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 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:
instead of $user->NsmPrincipal
Updated by netscraper on 2011-12-14 20:59:17 +00:00
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