Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
D:\WINNT.2\system32>set PE=/pe:s
D:\WINNT.2\system32>set AN=/ANSI
D:\WINNT.2\system32>rem Test generic creds
D:\WINNT.2\system32>crtest /w:ta /ty:g /pe:s /ANSI Generic Credential: Target: ta Persist: Session
D:\WINNT.2\system32>crtest /r:ta /ty:g /ANSI Generic Credential: Target: ta Persist: Session LastWritten: 3/31/2001 14:03:24
D:\WINNT.2\system32>rem test attributes on creds
D:\WINNT.2\system32>crtest /w:t1 /ty:p /pe:s /com:"my comment" /password:MyPasswordIsReallyLong /user:[email protected] /at:f,g=1 /ANSI Password Credential: Target: t1 Comment: my comment Persist: Session UserName: [email protected] Password: ------------------------------------ 4d 00 79 00 50 00 61 00 73 00 73 00 77 00 6f 00 M.y.P.a.s.s.w.o. 72 00 64 00 49 00 73 00 52 00 65 00 61 00 6c 00 r.d.I.s.R.e.a.l. 6c 00 79 00 4c 00 6f 00 6e 00 67 00 l.y.L.o.n.g. ------------------------------------ Attributes: f= g= 31 1
D:\WINNT.2\system32>crtest /r:t1 /ty:p /ANSI Password Credential: Target: t1 Comment: my comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:25 Attributes: f= g= 31 1
D:\WINNT.2\system32>rem ensure I can write over a cred
D:\WINNT.2\system32>crtest /w:t1 /ty:p /pe:s /com:"c comment" /password:Pwd2 /user:[email protected] /ANSI Password Credential: Target: t1 Comment: c comment Persist: Session UserName: [email protected] Password: 00770050 00320064 P.w.d.2.
D:\WINNT.2\system32>crtest /r:t1 /ty:p /ANSI Password Credential: Target: t1 Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:25
D:\WINNT.2\system32>rem ensure a cred matches both the netbios and dns name
D:\WINNT.2\system32>crtest /w:s1 /ty:p /pe:s /com:"c comment" /password:Pwd3 /user:[email protected] /ANSI Password Credential: Target: s1 Comment: c comment Persist: Session UserName: [email protected] Password: 00770050 00330064 P.w.d.3.
D:\WINNT.2\system32>crtest /r /tins:s1 /ANSI TargetInformation: NetbiosServerName: s1 Password Credential: Target: s1 Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:26
D:\WINNT.2\system32>crtest /r /tids:s1 /ANSI TargetInformation: DnsServerName: s1 Password Credential: Target: s1 Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:26
D:\WINNT.2\system32>crtest /r /tids:s1.ms.com /ANSI TargetInformation: DnsServerName: s1.ms.com Password Credential: Target: s1 Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:26
D:\WINNT.2\system32>rem ... even if it has a target alias
D:\WINNT.2\system32>crtest /w:s2.ms.com /targeta:s2 /ty:p /pe:s /com:"c comment" /password:Pwd4 /user:[email protected] /ANSI Password Credential: Target: s2.ms.com (s2) Comment: c comment Persist: Session UserName: [email protected] Password: 00770050 00340064 P.w.d.4.
D:\WINNT.2\system32>crtest /r /tins:s2 /ANSI TargetInformation: NetbiosServerName: s2 Password Credential: Target: s2.ms.com (s2) Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:27
D:\WINNT.2\system32>crtest /r /tids:s2 /ANSI TargetInformation: DnsServerName: s2 Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r /tids:s2.ms.com /ANSI TargetInformation: DnsServerName: s2.ms.com Password Credential: Target: s2.ms.com (s2) Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:27
D:\WINNT.2\system32>rem Try it with a dns host name as target name
D:\WINNT.2\system32>crtest /w:s3.ms.com /ty:p /pe:s /com:"c comment" /password:Pwd5 /user:[email protected] /ANSI Password Credential: Target: s3.ms.com Comment: c comment Persist: Session UserName: [email protected] Password: 00770050 00350064 P.w.d.5.
D:\WINNT.2\system32>crtest /r /tins:s3 /ANSI TargetInformation: NetbiosServerName: s3 Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r /tids:s3 /ANSI TargetInformation: DnsServerName: s3 Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r /tids:s3.ms.com /ANSI TargetInformation: DnsServerName: s3.ms.com Password Credential: Target: s3.ms.com Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:28
D:\WINNT.2\system32>rem Try a wildcarded server name
D:\WINNT.2\system32>crtest /w:*.hp.com /ty:p /pe:s /com:"c comment" /password:Pwd6 /user:[email protected] /ANSI Password Credential: Target: *.hp.com Comment: c comment Persist: Session UserName: [email protected] Password: 00770050 00360064 P.w.d.6.
D:\WINNT.2\system32>crtest /r /tins:hp /ANSI TargetInformation: NetbiosServerName: hp Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r /tins:hp.com /ANSI TargetInformation: NetbiosServerName: hp.com Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r /tids:hp.com /ANSI TargetInformation: DnsServerName: hp.com Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r /tids:fred.hp.com /ANSI TargetInformation: DnsServerName: fred.hp.com Password Credential: Target: *.hp.com Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:29
D:\WINNT.2\system32>crtest /r /tids:p.com /ANSI TargetInformation: DnsServerName: p.com Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r /tids:fred.hp.com. /ANSI TargetInformation: DnsServerName: fred.hp.com. Password Credential: Target: *.hp.com Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:29
D:\WINNT.2\system32>rem Another random test
D:\WINNT.2\system32>crtest /w:cliffvdom.nttest.microsoft.com /ti:cliffv2 /ty:p /pe:s /ANSI Password Credential: Target: cliffvdom.nttest.microsoft.com Persist: Session
Could not get target info: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r /ti:cliffv /ANSI Could not get target info: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem Two dots at end of UPN are bogus
D:\WINNT.2\system32>crtest /w:*.hp.com /ty:p /pe:s /com:"c comment" /password:Pwd1 /user:[email protected].. /ANSI Password Credential: Target: *.hp.com Comment: c comment Persist: Session UserName: [email protected].. Password: 00770050 00310064 P.w.d.1.
Could not write credential: Status = 2202 0x89a ERROR_BAD_USERNAME
D:\WINNT.2\system32>rem This one should make up a tagert alias of "bob" (in an older design)
D:\WINNT.2\system32>crtest /w:bob.hp.com /ty:p /pe:s /com:"c comment" /password:Pwd8 /user:[email protected] /tids:bob.hp.com /ANSI Password Credential: Target: bob.hp.com Comment: c comment Persist: Session UserName: [email protected] Password: 00770050 00380064 P.w.d.8.
TargetInformation: DnsServerName: bob.hp.com
D:\WINNT.2\system32>crtest /r:bob.hp.com /ty:p /ANSI Password Credential: Target: bob.hp.com Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:31
D:\WINNT.2\system32>rem Create a credential with a netbios server name
D:\WINNT.2\system32>crtest /w:zoe /ty:p /pe:s /com:"c comment" /password:Pwd9 /user:[email protected] /tins:zoe /ANSI Password Credential: Target: zoe Comment: c comment Persist: Session UserName: [email protected] Password: 00770050 00390064 P.w.d.9.
TargetInformation: NetbiosServerName: zoe
D:\WINNT.2\system32>crtest /e:zoe* /ANSI Password Credential: Target: zoe Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:31
D:\WINNT.2\system32>rem prune it
D:\WINNT.2\system32>crtest /w:zoe.hp.com /ty:p /pe:s /com:"c comment" /password:Pwd10 /user:[email protected] /tins:zoe /tids:zoe.hp.com /ANSI Password Credential: Target: zoe.hp.com Comment: c comment Persist: Session UserName: [email protected] Password: 50 00 77 00 64 00 31 00 30 00 P.w.d.1.0.
TargetInformation: NetbiosServerName: zoe DnsServerName: zoe.hp.com
D:\WINNT.2\system32>crtest /e:zoe* /ANSI Password Credential: Target: zoe.hp.com Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:32
Password Credential: Target: zoe Comment: c comment Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:31
D:\WINNT.2\system32>rem Create a credential with a netbios domain name
D:\WINNT.2\system32>crtest /w:zat /ty:p /pe:s /password:Pwd11 /user:[email protected] /tins:zat5 /tind:zat /ANSI Password Credential: Target: zat Persist: Session UserName: [email protected] Password: 50 00 77 00 64 00 31 00 31 00 P.w.d.1.1.
TargetInformation: NetbiosServerName: zat5 NetbiosDomainName: zat Could not write credential: Status = 87 0x57 ERROR_INVALID_PARAMETER
D:\WINNT.2\system32>rem Create a corresponding password credential
D:\WINNT.2\system32>crtest /w:zat /ty:p /pe:s /password:Pwd12 /user:[email protected] /tins:zat5 /tind:zat /ANSI Password Credential: Target: zat Persist: Session UserName: [email protected] Password: 50 00 77 00 64 00 31 00 32 00 P.w.d.1.2.
TargetInformation: NetbiosServerName: zat5 NetbiosDomainName: zat Could not write credential: Status = 87 0x57 ERROR_INVALID_PARAMETER
D:\WINNT.2\system32>crtest /e:zat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem Get the domain credentials
D:\WINNT.2\system32>crtest /r:zat /tins:zat5 /tind:zat /tidd:zat.ms.com /ANSI TargetInformation: NetbiosServerName: zat5 NetbiosDomainName: zat DnsDomainName: zat.ms.com Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /e:zat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem Create the Dns counterparts
D:\WINNT.2\system32>crtest /w:zat.ms.com /ty:c /pe:s /password:Cert13 /user:@@BCIgACIgACIgACIgACIgACIgACIA /tins:zat5 /tidd:zat.ms.com /ANSI Certificate Credential: Target: zat.ms.com Persist: Session UserName: @@BCIgACIgACIgACIgACIgACIgACIA Password: 00650043 00740072 00330031 C.e.r.t.1.3.
TargetInformation: NetbiosServerName: zat5 DnsDomainName: zat.ms.com Could not write credential: Status = 87 0x57 ERROR_INVALID_PARAMETER
D:\WINNT.2\system32>crtest /w:zat.ms.com /ty:p /pe:s /password:Pwd14 /user:[email protected]. /tins:zat5 /tidd:zat.ms.com /ANSI Password Credential: Target: zat.ms.com Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 31 00 34 00 P.w.d.1.4.
TargetInformation: NetbiosServerName: zat5 DnsDomainName: zat.ms.com Could not write credential: Status = 87 0x57 ERROR_INVALID_PARAMETER
D:\WINNT.2\system32>crtest /e:zat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem Now prune them
D:\WINNT.2\system32>crtest /r:zat /tins:zat5 /tind:zat /tidd:zat.ms.com /ANSI TargetInformation: NetbiosServerName: zat5 NetbiosDomainName: zat DnsDomainName: zat.ms.com Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /e:zat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem If I have a cred with TN=dns and TA=Netbios ...
D:\WINNT.2\system32>crtest /w:yat.ms.com /ty:p /pe:s /password:Pwd15 /user:[email protected]. /tins:yat /tids:yat.ms.com /targetalias:yat /ANSI Password Credential: Target: yat.ms.com (yat) Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 31 00 35 00 P.w.d.1.5.
TargetInformation: NetbiosServerName: yat DnsServerName: yat.ms.com
D:\WINNT.2\system32>rem ... then write an entry with TN=netbios, prune should fail
D:\WINNT.2\system32>crtest /w:yat /ty:p /pe:s /password:Pwd16 /user:[email protected]. /tins:yat /ANSI Password Credential: Target: yat Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 31 00 36 00 P.w.d.1.6.
TargetInformation: NetbiosServerName: yat
D:\WINNT.2\system32>rem If I have a server cred ...
D:\WINNT.2\system32>crtest /w:wat.ms.com /ty:p /pe:s /password:Pwd17 /user:[email protected]. /tins:wat /tids:wat.ms.com /targetalias:wat /ANSI Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 31 00 37 00 P.w.d.1.7.
TargetInformation: NetbiosServerName: wat DnsServerName: wat.ms.com
D:\WINNT.2\system32>crtest /e:wat* Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>rem ... and a domain cred ...
D:\WINNT.2\system32>crtest /w:vat.ms.com /ty:p /pe:s /password:Pwd18 /user:[email protected]. /tind:vat /tidd:vat.ms.com /targetalias:vat /ANSI Password Credential: Target: vat.ms.com (vat) Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 31 00 38 00 P.w.d.1.8.
TargetInformation: NetbiosDomainName: vat DnsDomainName: vat.ms.com
D:\WINNT.2\system32>crtest /e:vat* Password Credential: Target: vat.ms.com (vat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:36
D:\WINNT.2\system32>rem ... prune the server cred as soon as we find out the relationship
D:\WINNT.2\system32>crtest /r /tins:wat /tind:vat /ANSI TargetInformation: NetbiosServerName: wat NetbiosDomainName: vat Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>crtest /e:wat* Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>crtest /e:vat* Password Credential: Target: vat.ms.com (vat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:36
D:\WINNT.2\system32>rem If I have a domain cred ...
D:\WINNT.2\system32>crtest /w:qat.ms.com /ty:p /pe:s /password:Pwd19 /user:[email protected]. /tind:qat /tidd:qat.ms.com /targetalias:qat /ANSI Password Credential: Target: qat.ms.com (qat) Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 31 00 39 00 P.w.d.1.9.
TargetInformation: NetbiosDomainName: qat DnsDomainName: qat.ms.com
D:\WINNT.2\system32>crtest /e:qat* /ANSI Password Credential: Target: qat.ms.com (qat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:37
D:\WINNT.2\system32>rem ... morph it to a forest cred as soon as we find out the name
D:\WINNT.2\system32>crtest /r /tins:wat /tind:qat /tidt:rat.ms.com /ANSI TargetInformation: NetbiosServerName: wat NetbiosDomainName: qat DnsTreeName: rat.ms.com Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>crtest /e:qat* /ANSI Password Credential: Target: qat.ms.com (qat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:37
D:\WINNT.2\system32>crtest /e:rat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem If I have a domain cred ...
D:\WINNT.2\system32>crtest /w:tat.ms.com /ty:p /pe:s /password:Pwd20 /user:[email protected]. /tind:tat /tidd:tat.ms.com /targetalias:tat /ANSI Password Credential: Target: tat.ms.com (tat) Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 30 00 P.w.d.2.0.
TargetInformation: NetbiosDomainName: tat DnsDomainName: tat.ms.com
D:\WINNT.2\system32>crtest /e:tat* /ANSI Password Credential: Target: tat.ms.com (tat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:38
D:\WINNT.2\system32>rem ... and a forest cred ...
D:\WINNT.2\system32>crtest /w:sat.ms.com /ty:p /pe:s /password:Pwd21 /user:[email protected]. /tidt:sat.ms.com /ANSI Password Credential: Target: sat.ms.com Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 31 00 P.w.d.2.1.
TargetInformation: DnsTreeName: sat.ms.com
D:\WINNT.2\system32>crtest /e:sat* /ANSI Password Credential: Target: sat.ms.com Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:39
D:\WINNT.2\system32>rem ... prune the domain cred as soon as we find out the relationship
D:\WINNT.2\system32>crtest /r /tins:wat /tind:tat /tidt:sat.ms.com /ANSI TargetInformation: NetbiosServerName: wat NetbiosDomainName: tat DnsTreeName: sat.ms.com Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>crtest /e:tat* /ANSI Password Credential: Target: tat.ms.com (tat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:38
D:\WINNT.2\system32>crtest /e:sat* /ANSI Password Credential: Target: sat.ms.com Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:39
D:\WINNT.2\system32>rem If I have a domain cred ...
D:\WINNT.2\system32>crtest /w:qat.ms.com /ty:p /pe:s /password:Pwd22 /user:[email protected]. /tind:qat /tidd:qat.ms.com /targetalias:qat /ANSI Password Credential: Target: qat.ms.com (qat) Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 32 00 P.w.d.2.2.
TargetInformation: NetbiosDomainName: qat DnsDomainName: qat.ms.com
D:\WINNT.2\system32>crtest /e:qat* /ANSI Password Credential: Target: qat.ms.com (qat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:40
D:\WINNT.2\system32>rem ... morph it to a forest cred as soon as we find out the name
D:\WINNT.2\system32>crtest /r /tins:wat /tind:qat /tidt:rat.ms.com /ANSI TargetInformation: NetbiosServerName: wat NetbiosDomainName: qat DnsTreeName: rat.ms.com Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>crtest /e:qat* /ANSI Password Credential: Target: qat.ms.com (qat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:40
D:\WINNT.2\system32>crtest /e:rat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem If I have another domain cred ...
D:\WINNT.2\system32>crtest /w:pat.ms.com /ty:p /pe:s /password:Pwd23 /user:[email protected]. /tind:pat /tidd:pat.ms.com /targetalias:pat /ANSI Password Credential: Target: pat.ms.com (pat) Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 33 00 P.w.d.2.3.
TargetInformation: NetbiosDomainName: pat DnsDomainName: pat.ms.com
D:\WINNT.2\system32>rem ... morph it into the same forest
D:\WINNT.2\system32>crtest /r /tins:wat /tind:pat /tidt:rat.ms.com /ANSI TargetInformation: NetbiosServerName: wat NetbiosDomainName: pat DnsTreeName: rat.ms.com Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>crtest /e:pat* /ANSI Password Credential: Target: pat.ms.com (pat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:41
D:\WINNT.2\system32>crtest /e:rat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem Add yet another domain alias ...
D:\WINNT.2\system32>crtest /w:nat.ms.com /ty:p /pe:s /password:Pwd24 /user:[email protected]. /tind:nat /tidd:nat.ms.com /targetalias:nat /ANSI Password Credential: Target: nat.ms.com (nat) Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 34 00 P.w.d.2.4.
TargetInformation: NetbiosDomainName: nat DnsDomainName: nat.ms.com
D:\WINNT.2\system32>rem ... morph it into the same forest
D:\WINNT.2\system32>crtest /r /tins:wat /tind:nat /tidt:rat.ms.com /ANSI TargetInformation: NetbiosServerName: wat NetbiosDomainName: nat DnsTreeName: rat.ms.com Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>crtest /e:nat* /ANSI Password Credential: Target: nat.ms.com (nat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:42
D:\WINNT.2\system32>crtest /e:rat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem Move "pat" to a new forest
D:\WINNT.2\system32>crtest /r /tins:wat /tind:pat /tidd:pat.ms.com /tidt:mat.ms.com /ANSI TargetInformation: NetbiosServerName: wat NetbiosDomainName: pat DnsDomainName: pat.ms.com DnsTreeName: mat.ms.com Password Credential: Target: wat.ms.com (wat) Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:35
D:\WINNT.2\system32>crtest /e:rat* /ANSI Could not enumerate credentials: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem Note that password creds allow marshaled user names
D:\WINNT.2\system32>crtest /w:lat /ty:p /pe:s /password:Pwd25 /user:@@BCIgACIgACIgACIgACIgACIgACIA /ANSI Password Credential: Target: lat Persist: Session UserName: @@BCIgACIgACIgACIgACIgACIgACIA Password: 50 00 77 00 64 00 32 00 35 00 P.w.d.2.5.
D:\WINNT.2\system32>rem ensure cert creds don't allow normal user names
D:\WINNT.2\system32>crtest /w:lat /ty:c /pe:s /password:Pwd26 /user:[email protected]. /ANSI Certificate Credential: Target: lat Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 36 00 P.w.d.2.6.
Could not write credential: Status = 2202 0x89a ERROR_BAD_USERNAME
D:\WINNT.2\system32>rem ensure we can get the session type
D:\WINNT.2\system32>crtest /gst 'Enterprise' persistence is supported for 'Generic' creds. 'Enterprise' persistence is supported for 'Password' creds. 'Enterprise' persistence is supported for 'Certificate' creds. 'Enterprise' persistence is supported for 'VisiblePassword' creds.
D:\WINNT.2\system32>rem Ensure runas target name matches user name (all canonical combinations)
D:\WINNT.2\system32>crtest /w:Nowislat /ty:p /pe:s /password:Pwd27 /user:[email protected]. /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: Nowislat Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
Could not write credential: Status = 87 0x57 ERROR_INVALID_PARAMETER
D:\WINNT.2\system32>crtest /w:[email protected] /ty:p /pe:s /password:Pwd27 /user:[email protected] /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: [email protected] Persist: Session UserName: [email protected] Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
Could not write credential: Status = 87 0x57 ERROR_INVALID_PARAMETER
D:\WINNT.2\system32>crtest /w:[email protected] /ty:p /pe:s /password:Pwd27 /user:[email protected] /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: [email protected] Persist: Session UserName: [email protected] Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /w:[email protected] /ty:p /pe:s /password:Pwd27 /user:[email protected]. /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: [email protected] Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /w:[email protected]. /ty:p /pe:s /password:Pwd27 /user:[email protected] /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: [email protected]. Persist: Session UserName: [email protected] Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /w:[email protected]. /ty:p /pe:s /password:Pwd27 /user:[email protected]. /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: [email protected]. Persist: Session UserName: [email protected]. Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /r:[email protected] /ty:p /ANSI Password Credential: Flags: UsernameTarget Target: [email protected] Persist: Session UserName: [email protected] LastWritten: 3/31/2001 14:03:45
D:\WINNT.2\system32>rem Ensure we support canonicalization <domain>/user
D:\WINNT.2\system32>crtest /w:cat /ty:p /pe:s /password:Pwd27 /user:ms.com.\u26 /ANSI Password Credential: Target: cat Persist: Session UserName: ms.com.\u26 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /r:cat /ty:p /ANSI Password Credential: Target: cat Persist: Session UserName: ms.com\u26 LastWritten: 3/31/2001 14:03:46
D:\WINNT.2\system32>rem Ensure runas support domain\user format
D:\WINNT.2\system32>crtest /w:ms.com\u27 /ty:p /pe:s /password:Pwd27 /user:ms.com\u27 /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: ms.com\u27 Persist: Session UserName: ms.com\u27 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /w:ms.com\u27 /ty:p /pe:s /password:Pwd27 /user:ms.com.\u27 /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: ms.com\u27 Persist: Session UserName: ms.com.\u27 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /w:ms.com.\u27 /ty:p /pe:s /password:Pwd27 /user:ms.com\u27 /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: ms.com.\u27 Persist: Session UserName: ms.com\u27 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /w:ms.com.\u27 /ty:p /pe:s /password:Pwd27 /user:ms.com.\u27 /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: ms.com.\u27 Persist: Session UserName: ms.com.\u27 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /r:ms.com\u27 /ty:p /ANSI Password Credential: Flags: UsernameTarget Target: ms.com\u27 Persist: Session UserName: ms.com\u27 LastWritten: 3/31/2001 14:03:47
D:\WINNT.2\system32>rem Ensure /Delete supports canonicalization
D:\WINNT.2\system32>crtest /w:cat.ms.com /ty:p /pe:s /password:Pwd27 /user:ms.com.\u28 /ANSI Password Credential: Target: cat.ms.com Persist: Session UserName: ms.com.\u28 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /de:cat.ms.com. /ty:p /ANSI
D:\WINNT.2\system32>crtest /w:ms.com\u29 /ty:p /pe:s /password:Pwd27 /user:ms.com.\u29 /ANSI /credUsernameTarget Password Credential: Flags: UsernameTarget Target: ms.com\u29 Persist: Session UserName: ms.com.\u29 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /de:ms.com.\u29 /ty:p /ANSI
D:\WINNT.2\system32>rem Create the special credentials
D:\WINNT.2\system32>crtest /w:* /ty:p /pe:s /password:Pwd27 /user:ms.com.\u30 /ANSI Password Credential: Target: * Persist: Session UserName: ms.com.\u30 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /w:*Session /ty:p /pe:s /password:Pwd27 /user:ms.com.\u30 /ANSI Password Credential: Target: *Session Persist: Session UserName: ms.com.\u30 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>rem Try renaming 'from' the special credentials
D:\WINNT.2\system32>crtest /old:* /new:bat.ms.com /ty:p
D:\WINNT.2\system32>crtest /r:bat.ms.com /ty:p Password Credential: Target: bat.ms.com Persist: Session UserName: ms.com\u30 LastWritten: 3/31/2001 14:03:49
D:\WINNT.2\system32>crtest /r:* /ty:p Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /old:*Session /new:aat.ms.com /ty:p
D:\WINNT.2\system32>crtest /r:aat.ms.com /ty:p Password Credential: Target: aat.ms.com Persist: Session UserName: ms.com\u30 LastWritten: 3/31/2001 14:03:50
D:\WINNT.2\system32>crtest /r:*Session /ty:p Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>rem Try renaming 'to' the special credentials
D:\WINNT.2\system32>crtest /old:bat.ms.com /new:* /ty:p
D:\WINNT.2\system32>crtest /r:bat.ms.com /ty:p Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r:* /ty:p Password Credential: Target: * Persist: Session UserName: ms.com\u30 LastWritten: 3/31/2001 14:03:51
D:\WINNT.2\system32>crtest /old:aat.ms.com /new:*session /ty:p
D:\WINNT.2\system32>crtest /r:aat.ms.com /ty:p Could not read credential: Status = 1168 0x490 ERROR_NOT_FOUND
D:\WINNT.2\system32>crtest /r:*Session /ty:p Password Credential: Target: *session Persist: Session UserName: ms.com\u30 LastWritten: 3/31/2001 14:03:51
D:\WINNT.2\system32>rem Create the session cred with the wrong persistance
D:\WINNT.2\system32>crtest /w:*Session /ty:p /pe:l /password:Pwd27 /user:ms.com.\u30 /ANSI Password Credential: Target: *Session Persist: Local UserName: ms.com.\u30 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
Could not write credential: Status = 87 0x57 ERROR_INVALID_PARAMETER
D:\WINNT.2\system32>rem Rename to the session cred with the wrong persistance
D:\WINNT.2\system32>crtest /w:dat.ms.com /ty:p /pe:l /password:Pwd27 /user:ms.com.\u31 /ANSI Password Credential: Target: dat.ms.com Persist: Local UserName: ms.com.\u31 Password: 50 00 77 00 64 00 32 00 37 00 P.w.d.2.7.
D:\WINNT.2\system32>crtest /old:dat.ms.com /new:*session /ty:p Could not rename credential: Status = 87 0x57 ERROR_INVALID_PARAMETER
D:\WINNT.2\system32>rem test the DFS syntax
D:\WINNT.2\system32>crtest /w:dfsroot\dfsshare /ty:p /pe:s /password:Pwd31 /user:ms.com.\u31 /ANSI Password Credential: Target: dfsroot\dfsshare Persist: Session UserName: ms.com.\u31 Password: 50 00 77 00 64 00 33 00 31 00 P.w.d.3.1.
D:\WINNT.2\system32>crtest /r /titn:dfsroot\dfsshare TargetInformation: TargetName: dfsroot\dfsshare Password Credential: Target: dfsroot\dfsshare Persist: Session UserName: ms.com\u31 LastWritten: 3/31/2001 14:03:53
D:\WINNT.2\system32>rem test a non-existent cert
D:\WINNT.2\system32>crtest /w:t28 /ty:c /pe:s /com:"t28 comment" /password:Cert28 /user:@@BCIgACIgACIgACIgACIgACIgACIA /ANSI Certificate Credential: Target: t28 Comment: t28 comment Persist: Session UserName: @@BCIgACIgACIgACIgACIgACIgACIA Password: 00650043 00740072 00380032 C.e.r.t.2.8.
Could not write credential: Status = 2148532268 0x8010002c SCARD_E_NO_SUCH_CERTIFICATE
|