Permission Error results in false "changes have been saved" message

grand_master_v - August 17, 2009 - 22:25
Project:LDAP integration
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:miglius
Status:closed
Issue tags:ldapdata
Description

When there is a permission error using the ldap data module to update a directory server via mapping of a profile field the user gets a false "changes have been saved" message.

If display of PHP errors is enabled they also see the permission error. "warning: ldap_modify() [function.ldap-modify]: Modify: Insufficient access in /var/www/html/website/sites/all/modules/ldap_integration/includes/LDAPInterface.inc on line 260.".

If display of php errors is off this can lead to the user thinking their profile is updated but it has not been.

#1

grand_master_v - August 17, 2009 - 22:26
Title:Permission Error results in fake ok message» Permission Error results in false "changes have been saved" message

#2

miglius - August 25, 2009 - 14:18
Version:6.x-1.0-beta1» 6.x-1.x-dev
Assigned to:Anonymous» miglius
Status:active» fixed
Issue tags:-ldap, -profile+ldapdata

I have added a code which prints out the error message if the data was not written to LDAP.

#3

System Message - September 8, 2009 - 14:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

grand_master_v - October 15, 2009 - 22:03

Thank you!

 
 

Drupal is a registered trademark of Dries Buytaert.