예제 #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
 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))