@@ -186,7 +186,7 @@ public static X509Certificate2 FindCertificate(string certificate, string storeP
186186 }
187187 }
188188
189- public static byte [ ] TGT ( string userName , string domain , string certFile , string certPass , Interop . KERB_ETYPE etype , string outfile , bool ptt , string domainController = "" , LUID luid = new LUID ( ) , bool describe = false , bool verifyCerts = false , string servicekey = "" , bool getCredentials = false , string proxyUrl = null , string service = null ) {
189+ public static byte [ ] TGT ( string userName , string domain , string certFile , string certPass , Interop . KERB_ETYPE etype , string outfile , bool ptt , string domainController = "" , LUID luid = new LUID ( ) , bool describe = false , bool verifyCerts = false , string servicekey = "" , bool getCredentials = false , string proxyUrl = null , string service = null , bool changepw = false ) {
190190 try {
191191 X509Certificate2 cert = FindCertificate ( certFile , certPass ) ;
192192
@@ -206,7 +206,7 @@ public static X509Certificate2 FindCertificate(string certificate, string storeP
206206 Console . WriteLine ( "[*] Using PKINIT with etype {0} and subject: {1} " , etype , cert . Subject ) ;
207207 Console . WriteLine ( "[*] Building AS-REQ (w/ PKINIT preauth) for: '{0}\\ {1}'" , domain , userName ) ;
208208
209- AS_REQ pkinitASREQ = AS_REQ . NewASReq ( userName , domain , cert , agreement , etype , verifyCerts , service ) ;
209+ AS_REQ pkinitASREQ = AS_REQ . NewASReq ( userName , domain , cert , agreement , etype , verifyCerts , service , changepw ) ;
210210 return InnerTGT ( pkinitASREQ , etype , outfile , ptt , domainController , luid , describe , true , false , servicekey , getCredentials , proxyUrl ) ;
211211
212212 } catch ( KerberosErrorException ex ) {
0 commit comments