lib/cratus/user.rb in cratus-0.3.7 vs lib/cratus/user.rb in cratus-0.3.9

- old
+ new

@@ -30,9 +30,11 @@ @raw_ldap_data[Cratus.config.user_displayname_attribute].last end def lockouttime Integer(@raw_ldap_data[Cratus.config.user_lockout_attribute].last.to_s) + rescue => _e + 0 # If we can't determine the value (for instance, if it is empty), just assume 0 end # https://fossies.org/linux/web2ldap/pylib/w2lapp/schema/plugins/activedirectory.py # https://msdn.microsoft.com/en-us/library/windows/desktop/ms676843(v=vs.85).aspx #