commonErrorHandling.php
Go to the documentation of this file.00001 <?php
00024 ?>
00025 <?php
00026
00027 $errObj = new ErrorHandlingControler();
00028
00029 $errItem = new ErrorHandlingItem('(ldap.ALREADY_EXISTS|Already exist)');
00030 $errItem->setMsg(_("This item already exists in your LDAP directory"));
00031 $errItem->setAdvice(_("Solve the problem by:
00032 <ul>
00033 <li>change this entry name</li>
00034 <li>delete this entry before recreate it</li>
00035 </ul>"));
00036 $errItem->setTraceBackDisplay(false);
00037 $errItem->setSize(300);
00038 $errItem->setLevel(0);
00039 $errObj->add($errItem);
00040
00041
00042 $errItem = new ErrorHandlingItem('Can\'t contact LDAP server');
00043 $errItem->setMsg(_("MMC Agent can't contact your LDAP server"));
00044 $errItem->setAdvice(_("Solve the problem by:
00045 <ul>
00046 <li>Verify your LDAP server is correctly configured in /etc/mmc/plugins/base/ini </li>
00047 <li>Verify you LDAP server is up</li>
00048 </ul>"));
00049
00050 $errObj->add($errItem);
00051
00052 $errItem = new ErrorHandlingItem("AuthenticationError");
00053 $errItem->setMsg(_("Error during authentication process"));
00054 $errItem->setAdvice(_("Please contact your administrator."));
00055 $errObj->add($errItem);
00056
00057 $errItem = new ErrorHandlingItem("ProvisioningError");
00058 $errItem->setMsg(_("Error while provisioning your account"));
00059 $errItem->setAdvice(_("Please contact your administrator."));
00060 $errObj->add($errItem);
00061
00062
00063 $errItem = new ErrorHandlingItem('(exceptions.IndexError: list index out of range|ldap.NO_SUCH_OBJECT)');
00064 $errItem->setMsg(_("This item do not seems to be in the index"));
00065 $errItem->setAdvice(_("This problem can appear if:
00066 <ul>
00067 <li>This item no longer exists.</li>
00068 <li>You misspelled it.</li>
00069 </ul>"));
00070
00071 $errItem->setSize(800);
00072 $errItem->setLevel(0);
00073 $errObj->add($errItem);
00074
00075
00076 $errItem = new ErrorHandlingItem('Failed to modify password entry');
00077 $errItem->setMsg(_("smbpasswd failed to change your password entry"));
00078 $errItem->setAdvice(_("Verify that your smbpasswd is correctly configured:
00079 <ul>
00080 <li> Your Ldap server can be down</li>
00081 <li> Your Samba server is not properly configured</li>
00082 </ul>"));
00083
00084 $errObj->add($errItem);
00085
00086 ?>