LSaddons::Samba : Added the LS_SAMBA_INFINITY_TIME constante and the return_sambaInfinityTime() function.

This commit is contained in:
Benjamin Renard 2009-12-24 15:02:30 +01:00
parent a766150f41
commit db86b3b535

View file

@ -48,6 +48,11 @@ LSerror :: defineError('SAMBA_04',
_("SAMBA Support : The %{attr} of the sambaDomain object is incorrect.")
);
// CONSTANTES
// Le temps infini au sens NT
define('LS_SAMBA_INFINITY_TIME',2147483647);
/**
* Verification du support Samba par ldapSaisie
*
@ -287,4 +292,17 @@ LSerror :: defineError('SAMBA_04',
}
}
/**
* Retourne le temps infini au sens NT
*
* @author Benjamin Renard <brenard@easter-eggs.com>
*
* @param[in] $ldapObject L'objet ldap
*
* @retval integer le temps infinie au sens NT
*/
function return_sambaInfinityTime($ldapObject) {
return LS_SAMBA_INFINITY_TIME;
}
?>