コード例 #1
0
ファイル: adobject.py プロジェクト: triplekill/pyad
 def get_last_login(self):
     """Returns datetime object of when user last login on the connected domain controller."""
     return pyadutils.convert_datetime(
         self.get_attribute('lastLogonTimestamp', False))
コード例 #2
0
ファイル: adobject.py プロジェクト: Nocturem/pyad
 def _get_password_last_set(self):
     # http://www.microsoft.com/technet/scriptcenter/topics/win2003/lastlogon.mspx
     # kudos to http://docs.activestate.com/activepython/2.6/pywin32/html/com/help/active_directory.html
     return pyadutils.convert_datetime(self.get_attribute('pwdLastSet', False))
コード例 #3
0
ファイル: adobject.py プロジェクト: triplekill/pyad
 def _get_password_last_set(self):
     # http://www.microsoft.com/technet/scriptcenter/topics/win2003/lastlogon.mspx
     # kudos to http://docs.activestate.com/activepython/2.6/pywin32/html/com/help/active_directory.html
     return pyadutils.convert_datetime(
         self.get_attribute('pwdLastSet', False))
コード例 #4
0
ファイル: adobject.py プロジェクト: ECS-Security/Hive
 def get_last_login(self):
     """Returns datetime object of when user last login on the connected domain controller."""
     return pyadutils.convert_datetime(self.get_attribute('lastLogonTimestamp', False))