public KRB_ERROR( Asn1Integer param0, Asn1Integer param1, KerberosTime param2, Microseconds param3, KerberosTime param4, Microseconds param5, KerbInt32 param6, Realm param7, PrincipalName param8, Realm param9, PrincipalName param10, KerberosString param11, Asn1OctetString param12) { this.pvno = param0; this.msg_type = param1; this.ctime = param2; this.cusec = param3; this.stime = param4; this.susec = param5; this.error_code = param6; this.crealm = param7; this.cname = param8; this.realm = param9; this.sname = param10; this.e_text = param11; this.e_data = param12; }
public KDC_REQ_BODY( KDCOptions param0, PrincipalName param1, Realm param2, PrincipalName param3, KerberosTime param4, KerberosTime param5, KerberosTime param6, KerbUInt32 param7, Asn1SequenceOf<KerbInt32> param8, HostAddresses param9, EncryptedData param10, Asn1SequenceOf<Ticket> param11) { this.kdc_options = param0; this.cname = param1; this.realm = param2; this.sname = param3; this.from = param4; this.till = param5; this.rtime = param6; this.nonce = param7; this.etype = param8; this.addresses = param9; this.enc_authorization_data = param10; this.additional_tickets = param11; }
public EncTicketPart( TicketFlags param0, EncryptionKey param1, Realm param2, PrincipalName param3, TransitedEncoding param4, KerberosTime param5, KerberosTime param6, KerberosTime param7, KerberosTime param8, HostAddresses param9, AuthorizationData param10) { this.flags = param0; this.key = param1; this.crealm = param2; this.cname = param3; this.transited = param4; this.authtime = param5; this.starttime = param6; this.endtime = param7; this.renew_till = param8; this.caddr = param9; this.authorization_data = param10; }
public EncASRepPart( EncryptionKey param0, LastReq param1, KerbUInt32 param2, KerberosTime param3, TicketFlags param4, KerberosTime param5, KerberosTime param6, KerberosTime param7, KerberosTime param8, Realm param9, PrincipalName param10, HostAddresses param11, Asn1SequenceOf<PA_DATA> param12) { this.key = param0; this.last_req = param1; this.nonce = param2; this.key_expiration = param3; this.flags = param4; this.authtime = param5; this.starttime = param6; this.endtime = param7; this.renew_till = param8; this.srealm = param9; this.sname = param10; this.caddr = param11; this.pa_datas = param12; }
public PA_SVR_REFERRAL_DATA( PrincipalName param0, Realm param1) { this.referred_name = param0; this.referred_realm = param1; }
public KrbCredInfo( EncryptionKey param0, Realm param1, PrincipalName param2, TicketFlags param3, KerberosTime param4, KerberosTime param5, KerberosTime param6, KerberosTime param7, Realm param8, PrincipalName param9, HostAddresses param10) { this.key = param0; this.prealm = param1; this.pname = param2; this.flags = param3; this.authtime = param4; this.starttime = param5; this.endtime = param6; this.renew_till = param7; this.srealm = param8; this.sname = param9; this.caddr = param10; }
public ChangePasswdData( Asn1OctetString param0, PrincipalName param1, Realm param2) { this.newpasswd = param0; this.targname = param1; this.targrealm = param2; }
public Ticket( Asn1Integer param0, Realm param1, PrincipalName param2, EncryptedData param3) { this.tkt_vno = param0; this.realm = param1; this.sname = param2; this.enc_part = param3; }
public AD_KDCIssued( Checksum param0, Realm param1, PrincipalName param2, AuthorizationData param3) { this.ad_checksum = param0; this.i_realm = param1; this.i_sname = param2; this.elements = param3; }
public KrbFastFinished( KerberosTime param0, Microseconds param1, Realm param2, PrincipalName param3, Checksum param4) { this.timestamp = param0; this.usec = param1; this.crealm = param2; this.cname = param3; this.ticket_checksum = param4; }
public AS_REP( Asn1Integer param0, Asn1Integer param1, Asn1SequenceOf<PA_DATA> param2, Realm param3, PrincipalName param4, Ticket param5, EncryptedData param6) { this.pvno = param0; this.msg_type = param1; this.padata = param2; this.crealm = param3; this.cname = param4; this.ticket = param5; this.enc_part = param6; }
public Authenticator( Asn1Integer param0, Realm param1, PrincipalName param2, Checksum param3, Microseconds param4, KerberosTime param5, EncryptionKey param6, KerbUInt32 param7, AuthorizationData param8) { this.authenticator_vno = param0; this.crealm = param1; this.cname = param2; this.cksum = param3; this.cusec = param4; this.ctime = param5; this.subkey = param6; this.seq_number = param7; this.authorization_data = param8; }
private Authenticator CreateAuthenticator(PrincipalName cname, Realm realm, EncryptionKey subkey = null, AuthorizationData data = null) { BaseTestSite.Log.Add(LogEntryKind.TestStep, "Create authenticator"); Random r = new Random(); int seqNum = r.Next(); Authenticator plaintextAuthenticator = new Authenticator { authenticator_vno = new Asn1Integer(KerberosConstValue.KERBEROSV5), crealm = realm, cusec = new Microseconds(0), ctime = KerberosUtility.CurrentKerberosTime, seq_number = new KerbUInt32(seqNum), cname = cname, subkey = subkey, authorization_data = data }; AuthCheckSum checksum = new AuthCheckSum { Lgth = KerberosConstValue.AUTHENTICATOR_CHECKSUM_LENGTH }; checksum.Bnd = new byte[checksum.Lgth]; checksum.Flags = (int)(ChecksumFlags.GSS_C_MUTUAL_FLAG | ChecksumFlags.GSS_C_INTEG_FLAG); byte[] checkData = ArrayUtility.ConcatenateArrays(BitConverter.GetBytes(checksum.Lgth), checksum.Bnd, BitConverter.GetBytes(checksum.Flags)); plaintextAuthenticator.cksum = new Checksum(new KerbInt32((int)ChecksumType.ap_authenticator_8003), new Asn1OctetString(checkData)); return plaintextAuthenticator; }
/// <summary> /// Constructor /// </summary> /// <param name="type">Type of Principal</param> /// <param name="name">Principal name</param> /// <param name="password">Password of principal</param> /// <param name="salt">Salt of principal</param> public Principal(KerberosAccountType type, string realm, string name, string password, string salt) { Type = type; Realm = new Realm(realm); Name = new PrincipalName(new KerbInt32((int)PrincipalType.NT_PRINCIPAL), KerberosUtility.String2SeqKerbString(name)); Password = password; Salt = salt; }
/// <summary> /// Constructor /// </summary> /// <param name="type">Type of Principal</param> /// <param name="name">Principal name</param> /// <param name="password">Password of principal</param> public Principal(KerberosAccountType type, Realm realm, PrincipalName name, string password, string salt) { Type = type; Realm = realm; Name = name; Password = password; Salt = salt; }