antiduh
|
1374758ffb
|
Fixed the number formatting in the SSPIException so that the error code comes out '0x....'.
|
2014-07-11 22:18:12 +00:00 |
|
antiduh
|
4bfe7d8bc9
|
Added a lifetime check in the ServerContext.ImpersonateClient method.
|
2014-07-11 22:16:12 +00:00 |
|
antiduh
|
8c19366314
|
Fixed the attribute usage and renamed the EnumMgr methods - FromText and ToText.
|
2014-07-11 21:32:06 +00:00 |
|
antiduh
|
3a134be9df
|
Removed test code.
|
2014-07-11 21:29:53 +00:00 |
|
antiduh
|
50efc7702b
|
Added rough support for attaching messages to errors.
|
2014-07-11 21:29:17 +00:00 |
|
antiduh
|
b65b6c6abe
|
Fixed duplicate using statements.
|
2014-07-08 19:06:03 +00:00 |
|
antiduh
|
364a035592
|
Enable scroll bars on the text boxes.
|
2014-07-08 18:57:07 +00:00 |
|
antiduh
|
35ace4f24c
|
Couple bug fixes in the client and server code. Gotta remember that TCP sockets may return less data than you ask for; that and the length of the data may be longer than the buffer you give it.
|
2014-07-08 18:56:52 +00:00 |
|
antiduh
|
eee7b16b2c
|
Better client handling when the server connection goes away.
|
2014-07-08 17:51:24 +00:00 |
|
antiduh
|
585366a291
|
Fixed the demo client's form name.
|
2014-07-08 17:43:37 +00:00 |
|
antiduh
|
ba166c373a
|
Fixed bug with the demo server not handling client disconnects correctly.
|
2014-07-08 17:42:56 +00:00 |
|
antiduh
|
c7e14025ac
|
Updated ignore paths; add user files to the repo.
|
2014-07-07 19:30:31 +00:00 |
|
antiduh
|
188d420c83
|
Notes on .Net compatibility.
|
2014-07-07 19:25:18 +00:00 |
|
antiduh
|
6805058de5
|
Change the project so that it compiles against .Net 4.0 for greater usability.
|
2014-07-07 19:24:31 +00:00 |
|
antiduh
|
525007e296
|
Updated the readme to indicate Visual Studio compatibility.
|
2014-07-07 19:22:15 +00:00 |
|
antiduh
|
f0a2f85edf
|
Comments.
|
2014-07-07 19:20:12 +00:00 |
|
antiduh
|
4186938ebc
|
Comments and constructor visibility.
|
2014-07-07 19:15:05 +00:00 |
|
antiduh
|
239d651ec6
|
Updated the readme.
|
2014-07-07 17:27:19 +00:00 |
|
antiduh
|
4279ae339d
|
Fixed busted namespaces.
|
2014-07-05 14:32:04 +00:00 |
|
antiduh
|
7ea67fc927
|
Comments.
|
2014-07-03 21:22:43 +00:00 |
|
antiduh
|
4d0297310d
|
Comments.
|
2014-07-03 21:20:15 +00:00 |
|
antiduh
|
b5b16530cc
|
Rename Credential.Name to PrincipleName. PrincipleName comes from the security service provider, which may not correspond to the domain user name. For instance, if I'm using kerberos on my domain, my principle may be user@DIVISION.CORP.COM, meanwhile my username might be CORP\user.
|
2014-07-03 21:02:33 +00:00 |
|
antiduh
|
bfaa49d0a3
|
Restructured the demo a little bit to exercise the common security packages.
|
2014-07-03 21:00:19 +00:00 |
|
antiduh
|
a0b1bd8b7e
|
Fixed ClientContext.Initialize so that it always outputs a token if one was generated, independent of status.
|
2014-07-03 20:37:32 +00:00 |
|
antiduh
|
cabf7e5249
|
Use the package properties to know how big to make the token buffers.
|
2014-07-03 20:16:22 +00:00 |
|
antiduh
|
9636bb44b5
|
Updated comments.
|
2014-07-03 03:24:16 +00:00 |
|
antiduh
|
3611034f82
|
Working on comments.
|
2014-07-02 21:54:50 +00:00 |
|
antiduh
|
8a353227db
|
The attribute should not be exposed to the public API, since it shouldn't need to be used by consumers - mark it internal.
|
2014-07-02 21:54:19 +00:00 |
|
antiduh
|
57c2e8cc52
|
Add usage of the sequenceNumber and qualityOfProtection parameters, at least at the bottom layer. Upper layers don't right now, but we can change that later.
|
2014-07-01 21:59:42 +00:00 |
|
antiduh
|
c891b70625
|
Get rid of the 'status' variable when checking the return code in RevertImpersonate. We don't care what happened, since if it broke, we can't report it (it's in a Dispose path).
|
2014-07-01 21:22:32 +00:00 |
|
antiduh
|
d63abfb178
|
Mark the NativeMethods class as static; it's never going to be instantiated.
|
2014-07-01 21:20:40 +00:00 |
|
antiduh
|
f75b870cca
|
Make PackageSupport public so consumers can learn about packages.
|
2014-07-01 21:20:03 +00:00 |
|
antiduh
|
c1a9712bd4
|
Variable freeStatus is not used.
|
2014-07-01 21:19:15 +00:00 |
|
antiduh
|
c37e241312
|
No longer used.
|
2014-07-01 19:18:03 +00:00 |
|
antiduh
|
7503d37770
|
Updated comments.
|
2014-07-01 19:17:56 +00:00 |
|
antiduh
|
ce64bf9d9a
|
Simplified object lifecycle verification.
|
2014-07-01 18:40:35 +00:00 |
|
antiduh
|
2e6962bcc0
|
Removed the finalizer from Credential. The unmanaged resources are captured by other managed objects, who themselves are finalizable objects (usually CriticalFinalizerObject or SafeHandles).
|
2014-07-01 18:39:16 +00:00 |
|
antiduh
|
b742dbbff4
|
Simplified lifecycle (initialized, disposed) checks.
|
2014-07-01 18:36:16 +00:00 |
|
antiduh
|
306fe44cc1
|
Added more disposed checks.
|
2014-07-01 18:32:44 +00:00 |
|
antiduh
|
e980e11184
|
Modified the initialization process a little to better control when a context is marked as initialized.
|
2014-07-01 18:31:33 +00:00 |
|
antiduh
|
5403321a49
|
Removed the finalizer from Context. The unmanaged resources are captured by other managed objects, who themselves are finalizable objects (usually CriticalFinalizerObject or SafeHandles).
|
2014-07-01 18:19:11 +00:00 |
|
antiduh
|
c8ae206306
|
Removed todo
|
2014-07-01 18:15:03 +00:00 |
|
antiduh
|
bce9d7b81c
|
Added license.
|
2014-07-01 18:10:17 +00:00 |
|
antiduh
|
db4d5f7d03
|
Added a Readme.
|
2014-07-01 18:07:47 +00:00 |
|
antiduh
|
894eb60161
|
Moved the simple demo code to its own project so that the NSspi.csproj project could be a standard dll, and not a referenced exe assembly.
|
2014-07-01 15:57:58 +00:00 |
|
antiduh
|
b8fd4d9a07
|
Added a helpful flag to ServerContext to indicate to consumers whether it can support impersonation. Added checks to throw exceptions if impersonation is attempted on a ServerContext that does not support impersonation. Also modified the disposal behavior so that if the ServerContext is disposed while impersonation is occurring, impersonation is explicitly reverted. Consumers wishing to perform long-term impersonation must hold valid references to both the context and impersonation handle.
|
2014-07-01 15:52:00 +00:00 |
|
antiduh
|
aed206e1be
|
Working on writing comments and documentation.
|
2014-07-01 02:10:53 +00:00 |
|
antiduh
|
f65ca7aaaa
|
Added length validation to the Decrypt and VerifySignature methods.
|
2014-07-01 01:20:08 +00:00 |
|
antiduh
|
e86fea598d
|
Refactored the common code in ClientCredential and ServerCredential to a common class, CurrentCredential.
|
2014-07-01 01:13:33 +00:00 |
|
antiduh
|
fcacd2195b
|
Implemented a simple impersonation demo.
|
2014-06-30 20:09:42 +00:00 |
|