@@ -337,6 +337,13 @@ class PNETLOGON_WORKSTATION_INFO(NDRPOINTER):
337
337
)
338
338
339
339
# 2.2.1.3.7 NL_TRUST_PASSWORD
340
+ class NL_TRUST_PASSWORD_FIXED_ARRAY (NDRUniFixedArray ):
341
+ def getDataLen (self , data , offset = 0 ):
342
+ return 512 + 4
343
+
344
+ def getAlignment (self ):
345
+ return 1
346
+
340
347
class WCHAR_ARRAY (NDRUniFixedArray ):
341
348
def getDataLen (self , data , offset = 0 ):
342
349
return 512
@@ -2098,7 +2105,8 @@ class NetrServerPasswordSet2(NDRCALL):
2098
2105
('SecureChannelType' ,NETLOGON_SECURE_CHANNEL_TYPE ),
2099
2106
('ComputerName' ,WSTR ),
2100
2107
('Authenticator' ,NETLOGON_AUTHENTICATOR ),
2101
- ('ClearNewPassword' ,NL_TRUST_PASSWORD ),
2108
+ #('ClearNewPassword',NL_TRUST_PASSWORD),
2109
+ ('ClearNewPassword' ,NL_TRUST_PASSWORD_FIXED_ARRAY ),
2102
2110
)
2103
2111
2104
2112
class NetrServerPasswordSet2Response (NDRCALL ):
@@ -2786,14 +2794,14 @@ def hNetrServerTrustPasswordsGet(dce, trustedDcName, accountName, secureChannelT
2786
2794
request ['Authenticator' ] = authenticator
2787
2795
return dce .request (request )
2788
2796
2789
- def hNetrServerPasswordSet2 (dce , primaryName , accountName , secureChannelType , computerName , authenticator , clearNewPassword ):
2797
+ def hNetrServerPasswordSet2 (dce , primaryName , accountName , secureChannelType , computerName , authenticator , clearNewPasswordBlob ):
2790
2798
request = NetrServerPasswordSet2 ()
2791
2799
request ['PrimaryName' ] = checkNullString (primaryName )
2792
2800
request ['AccountName' ] = checkNullString (accountName )
2793
2801
request ['SecureChannelType' ] = secureChannelType
2794
2802
request ['ComputerName' ] = checkNullString (computerName )
2795
2803
request ['Authenticator' ] = authenticator
2796
- request ['ClearNewPassword' ] = clearNewPassword
2804
+ request ['ClearNewPassword' ] = clearNewPasswordBlob
2797
2805
return dce .request (request )
2798
2806
2799
2807
def hNetrLogonGetDomainInfo (dce , serverName , computerName , authenticator , returnAuthenticator = 0 , level = 1 ):
0 commit comments