Zend_Auth_Adapter_Ldap collects debugging information within its
authenticate() method. This information is stored in the
Zend_Auth_Result object as messages. The array returned by
Zend_Auth_Result::getMessages() is described as follows
Table 11. Debugging Messages
| Messages Array Index | Description |
|---|---|
| Index 0 | A generic, user-friendly message that is suitable for displaying to users (e.g., "Invalid credentials"). If the authentication is successful, this string is empty. |
| Index 1 | A more detailed error message that is not suitable to be displayed to users but should be logged for the benefit of server operators. If the authentication is successful, this string is empty. |
| Indexes 2 and higher | All log messages in order starting at index 2. |
In practice, index 0 should be displayed to the user (e.g., using the FlashMessenger helper), index 1 should be logged and, if debugging information is being collected, indexes 2 and higher could be logged as well (although the final message always includes the string from index 1).




