Permalink
Browse files

Initial check-in, Auth -> Waffle 1.1 from svn/commoncomponents/auth.

  • Loading branch information...
0 parents commit 414c134119d1638ccce3e480d55403cca701c897 dblock committed Mar 1, 2010
Showing with 11,743 additions and 0 deletions.
  1. +168 −0 Documentation/Content/DevContribute.aml
  2. +24 −0 Documentation/Content/GettingStarted.aml
  3. +43 −0 Documentation/Content/JavaIntegration.aml
  4. +17 −0 Documentation/Content/Main.aml
  5. +8 −0 Documentation/Waffle.content
  6. +69 −0 Documentation/Waffle.shfbproj
  7. +7 −0 Source/Version/Properties/AssemblyInfo.cs
  8. +58 −0 Source/Version/Version.csproj
  9. +10 −0 Source/Version/Version.wxi.template
  10. +247 −0 Source/WindowsAuthProvider/Advapi32.cs
  11. +26 −0 Source/WindowsAuthProvider/IWindowsAccount.cs
  12. +133 −0 Source/WindowsAuthProvider/IWindowsAuthProvider.cs
  13. +34 −0 Source/WindowsAuthProvider/IWindowsComputer.cs
  14. +42 −0 Source/WindowsAuthProvider/IWindowsDomain.cs
  15. +38 −0 Source/WindowsAuthProvider/IWindowsIdentity.cs
  16. +22 −0 Source/WindowsAuthProvider/IWindowsImpersonationContext.cs
  17. +37 −0 Source/WindowsAuthProvider/IWindowsSecurityContext.cs
  18. +33 −0 Source/WindowsAuthProvider/Kernel32.cs
  19. +105 −0 Source/WindowsAuthProvider/Netapi32.cs
  20. +7 −0 Source/WindowsAuthProvider/Properties/AssemblyInfo.cs
  21. +776 −0 Source/WindowsAuthProvider/Secur32.cs
  22. +29 −0 Source/WindowsAuthProvider/Windows.cs
  23. +135 −0 Source/WindowsAuthProvider/WindowsAccountImpl.cs
  24. +223 −0 Source/WindowsAuthProvider/WindowsAuthProvider.cs
  25. +80 −0 Source/WindowsAuthProvider/WindowsAuthProvider.csproj
  26. +13 −0 Source/WindowsAuthProvider/WindowsAuthProviderNamespace.xml
  27. +142 −0 Source/WindowsAuthProvider/WindowsComputerImpl.cs
  28. +66 −0 Source/WindowsAuthProvider/WindowsCredentialsHandle.cs
  29. +150 −0 Source/WindowsAuthProvider/WindowsDomainCollection.cs
  30. +107 −0 Source/WindowsAuthProvider/WindowsDomainImpl.cs
  31. +111 −0 Source/WindowsAuthProvider/WindowsIdentityImpl.cs
  32. +41 −0 Source/WindowsAuthProvider/WindowsImpersonationContextImpl.cs
  33. +212 −0 Source/WindowsAuthProvider/WindowsSecurityContext.cs
  34. +115 −0 Source/WindowsAuthProviderMergeModule/WindowsAuthProviderMergeModule.wixproj
  35. +64 −0 Source/WindowsAuthProviderMergeModule/WindowsAuthProviderMergeModule.wxs
  36. +9 −0 Source/WindowsAuthProviderUnitTests/App.config
  37. +6 −0 Source/WindowsAuthProviderUnitTests/Properties/AssemblyInfo.cs
  38. +22 −0 Source/WindowsAuthProviderUnitTests/WindowsAccountUnitTests.cs
  39. +13 −0 Source/WindowsAuthProviderUnitTests/WindowsAuthProvider.vbs
  40. +300 −0 Source/WindowsAuthProviderUnitTests/WindowsAuthProviderUnitTests.cs
  41. +69 −0 Source/WindowsAuthProviderUnitTests/WindowsAuthProviderUnitTests.csproj
  42. +21 −0 Source/WindowsAuthProviderUnitTests/WindowsCredentialsHandleUnitTests.cs
  43. +68 −0 Source/WindowsAuthProviderUnitTests/WindowsSecurityContextUnitTests.cs
  44. BIN Tools/DavCopy.exe
  45. BIN Tools/JacobGen/AMD64/jacobgen.dll
  46. +4 −0 Tools/JacobGen/JacobVersion.properties
  47. +4 −0 Tools/JacobGen/JacobgenVersion.properties
  48. +340 −0 Tools/JacobGen/LICENSE.txt
  49. +29 −0 Tools/JacobGen/README.txt
  50. +48 −0 Tools/JacobGen/docs/HowToBuild.txt
  51. +121 −0 Tools/JacobGen/docs/ReleaseNotes.html
  52. +42 −0 Tools/JacobGen/docs/api/allclasses-frame.html
  53. +42 −0 Tools/JacobGen/docs/api/allclasses-noframe.html
  54. +666 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/AbstractGenerator.html
  55. +442 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/FieldItem.html
  56. +259 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/IllegalFormatException.html
  57. +646 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/Jacobgen.html
  58. +614 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/MethodItem.html
  59. +699 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/ParameterItem.html
  60. +278 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/TypeLibInspector.html
  61. +138 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/class-use/AbstractGenerator.html
  62. +204 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/class-use/FieldItem.html
  63. +213 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/class-use/IllegalFormatException.html
  64. +177 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/class-use/Jacobgen.html
  65. +204 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/class-use/MethodItem.html
  66. +161 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/class-use/ParameterItem.html
  67. +138 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/class-use/TypeLibInspector.html
  68. +53 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/package-frame.html
  69. +187 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/package-summary.html
  70. +149 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/package-tree.html
  71. +175 −0 Tools/JacobGen/docs/api/com/jacob/jacobgen/package-use.html
  72. +288 −0 Tools/JacobGen/docs/api/constant-values.html
  73. +140 −0 Tools/JacobGen/docs/api/deprecated-list.html
  74. +211 −0 Tools/JacobGen/docs/api/help-doc.html
  75. +519 −0 Tools/JacobGen/docs/api/index-all.html
  76. +34 −0 Tools/JacobGen/docs/api/index.html
  77. +151 −0 Tools/JacobGen/docs/api/overview-tree.html
  78. +1 −0 Tools/JacobGen/docs/api/package-list
  79. BIN Tools/JacobGen/docs/api/resources/inherit.gif
  80. +160 −0 Tools/JacobGen/docs/api/serialized-form.html
  81. +29 −0 Tools/JacobGen/docs/api/stylesheet.css
  82. +6 −0 Tools/JacobGen/docs/credits.txt
  83. +5 −0 Tools/JacobGen/docs/todo.txt
  84. BIN Tools/JacobGen/jacob.jar
  85. +22 −0 Tools/JacobGen/jacobgen.bat
  86. BIN Tools/JacobGen/jacobgen.jar
  87. BIN Tools/JacobGen/lib/samskivert.jar
  88. BIN Tools/JacobGen/lib/viztool.jar
  89. BIN Tools/JacobGen/x86/jacobgen.dll
  90. +33 −0 Version.proj
  91. +89 −0 Waffle.proj
  92. +72 −0 Waffle.sln
  93. BIN Waffle.snk
  94. +50 −0 build.cmd
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="utf-8"?>
+<topic id="1e7a6c2f-1a9c-4b33-adc7-ee82ac339857" revisionNumber="1">
+ <developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <introduction>
+ <para>
+ You're encouraged to contribute to WAFFLE. The latest information about this project
+ can be found at <externalLink>
+ <linkUri>http://waffle.codeplex.com</linkUri>
+ <linkText>http://waffle.codeplex.com</linkText>
+ </externalLink>.
+ </para>
+ </introduction>
+ <section address="SourceCode">
+ <title>Source Code</title>
+ <content>
+ <para>
+ Source code is located in
+ <externalLink>
+ <linkUri>https://waffle.svn.codeplex.com/svn/trunk</linkUri>
+ <linkText>
+ https://waffle.svn.codeplex.com/svn/trunk
+ </linkText>
+ </externalLink>.
+ Double-click the Visual Studio solution file, Auth.sln and Visual Studio will open.
+ </para>
+ </content>
+ </section>
+ <section address="Building">
+ <title>Building the Project</title>
+ <content>
+ <para>
+ You can build all C# code in Visual Studio. To build the entire project, including this documentation use MSBuild
+ from command line and type <literal>build all</literal>. This builds both Debug and Release.
+ <code language="cmd">
+ <![CDATA[c:\source\Auth\trunk> build all]]>
+ </code>
+ Output is placed in the <literal>Waffle.Auth\Debug|Release</literal> directories.
+ </para>
+ </content>
+ </section>
+ <section address="Patches">
+ <title>Patches and Code Reviews</title>
+ <content>
+ <para>
+ All changes must be code reviewed. Submit patches for code review for <literal>ddoubro</literal> to
+ <externalLink>
+ <linkUri>http://reviewboard</linkUri>
+ <linkText>http://reviewboard</linkText>
+ </externalLink>.
+ The project is <literal>CommonComponents</literal>
+ and the path <literal>Auth/trunk</literal>.
+ </para>
+ <para>
+ For further instructions on how to use ReviewBoard, see
+ <externalLink>
+ <linkUri>http://appseclink/sites/engineering/Engineering%20Documents/Code%20Reviews.aspx</linkUri>
+ <linkText>this page</linkText>
+ </externalLink>.
+ </para>
+ </content>
+ </section>
+ <section address="Documentation">
+ <title>Writing Documentation</title>
+ <content>
+ <para>
+ Documentation is written in MAML, using SandCastle Documentation Framework. You cannot build documentation from within
+ Visual Studio, but you can build the documentation by typing <literal>build doc</literal>.
+ <list class="bullet">
+ <listItem>
+ <externalLink>
+ <linkUri>http://www.codeplex.com/SHFB</linkUri>
+ <linkText>SandCastle Help File Builder</linkText>
+ </externalLink>
+ provides an extensive
+ <externalLink>
+ <linkUri>http://www.ewoodruff.us/shfbdocs/Index.aspx?topic=html/b772e00e-1705-4062-adb6-774826ce6700.htm</linkUri>
+ <linkText>Getting Started</linkText>
+ </externalLink>
+ guide.
+ </listItem>
+ <listItem>
+ <externalLink>
+ <linkUri>file:////nycapt35k.com/public/applications/Microsoft/Sandcastle/SandcastleMAMLGuide.chm</linkUri>
+ <linkText>SandClastle MAML Guide</linkText>
+ </externalLink>
+ is an excellent quick reference for MAML.
+ </listItem>
+ </list>
+ </para>
+ </content>
+ </section>
+ <section address="DevEnvironment">
+ <title>Setting Up a Development Environment</title>
+ <content>
+ <para>
+ A development environment for Auth developers requires the following software.
+ <list class="bullet">
+ <listItem>
+ <externalLink>
+ <linkUri>file://nycapt35k.com/public/applications/Microsoft%20Visual%20Studio%202005/Professional/CD1/setup.exe</linkUri>
+ <linkText>
+ Microsoft Visual Studio 2005
+ </linkText>
+ </externalLink>
+ + <externalLink>
+ <linkUri>file://nycapt35k.com/public/applications/Microsoft%20Visual%20Studio%202005/Service%20Pack%201/VS80sp1-KB926601-X86-ENU.exe</linkUri>
+ <linkText>SP1</linkText>
+ </externalLink>
+ </listItem>
+ <listItem>
+ Subversion, tested with
+ <externalLink>
+ <linkUri>file://nycapt35k.com/public/applications/SubVersion/svn-1.4.5-setup.exe</linkUri>
+ <linkText>1.4.5</linkText>
+ </externalLink>
+ and optionally TortoiseSVN, tested with
+ <externalLink>
+ <linkUri>file://nycapt35k.com/public/applications/TortoiseSVN/TortoiseSVN-1.4.1.7992-win32-svn-1.4.2.msi</linkUri>
+ <linkText>1.4.2</linkText>
+ </externalLink>
+ </listItem>
+ <listItem>
+ MSBuild Community Tasks, tested with
+ <externalLink>
+ <linkUri>file://nycapt35k.com/public/applications/MSBuild%20Community%20Tasks/MSBuild.Community.Tasks.1.3.0.msi</linkUri>
+ <linkText>1.3.0</linkText>
+ </externalLink>
+ </listItem>
+ <listItem>
+ Windows Installer Xml (WIX) tested with
+ <externalLink>
+ <linkUri>file:////nycapt35k.com/public/applications/Wix/3.0/Wix3-3.0.5419.0</linkUri>
+ <linkText>Wix 3.0.5419.0</linkText>
+ </externalLink>.
+ </listItem>
+ <listItem>
+ <externalLink>
+ <linkUri>http://www.codeplex.com/Sandcastle</linkUri>
+ <linkText>SandCastle</linkText>
+ </externalLink>,
+ tested with
+ <externalLink>
+ <linkUri>file://nycapt35k.com/public/applications/Microsoft/Sandcastle/Sandcastle-2.4.10520.msi</linkUri>
+ <linkText>2.4 (May 2008)</linkText>
+ </externalLink>
+ , update the contents of your installation (in <literal>c:\program files\sandcastle</literal>) with the contents of
+ <externalLink>
+ <linkUri>file://nycapt35k.com/public/applications/Microsoft/Sandcastle/SCPatch_May08_2_4_10520_Rev2.zip</linkUri>
+ <linkText>SandCastle Styles Project 2.4 patch</linkText>
+ </externalLink>
+ </listItem>
+ <listItem>
+ <externalLink>
+ <linkUri>http://www.codeplex.com/SHFB</linkUri>
+ <linkText>Sandcastle Help File Builder</linkText>
+ </externalLink>,
+ tested with
+ <externalLink>
+ <linkUri>file://nycapt35k.com/public/applications/Microsoft/Sandcastle/SandcastleBuilderSetup-1.8-Alpha.msi</linkUri>
+ <linkText>1.8 (Alpha)</linkText>
+ </externalLink>
+ </listItem>
+ </list>
+ </para>
+ </content>
+ </section>
+ </developerConceptualDocument>
+</topic>
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<topic id="1489d227-4898-4952-9941-aaad7a4a67f2" revisionNumber="1">
+ <developerHowToDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <introduction>
+ <para>
+ This library publishes several Windows authentication, authorization and membership interfaces.
+ </para>
+ </introduction>
+ <procedure>
+ <title>Register Auth DLL</title>
+ <steps class="ordered">
+ <step>
+ <content>
+ <para>
+ <code language="cmd">
+ <![CDATA[regasm.exe /codebase /tlb:Waffle.Windows.AuthProvider.tlb Waffle.Windows.AuthProvider.dll]]>
+ </code>
+ </para>
+ </content>
+ </step>
+ </steps>
+ </procedure>
+ </developerHowToDocument>
+</topic>
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="utf-8"?>
+<topic id="bbb83190-b983-4e43-96ef-c3a9d1050ab3" revisionNumber="1">
+ <developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <introduction>
+ <para>The Auth components integrate with Java via JNI, Jacob and JacobGen.</para>
+ </introduction>
+ <section address="integrationtools">
+ <title>IntegrationTools</title>
+ <content>
+ <para>
+ The following tools are used in the build process to generate <localUri>auth.jar</localUri>.
+ <tableDefinition>
+ <definedTerm>JNI</definedTerm>
+ <definition>
+ The Java Native Interface (JNI) is a programming framework that allows Java code running
+ in a Java Virtual Machine (JVM) to call and to be called by native applications and libraries
+ written in other languages, such as C, C++ and assembly.
+ For more information on JNI see
+ <externalLink>
+ <linkUri>http://en.wikipedia.org/wiki/Java_Native_Interface</linkUri>
+ <linkText>http://en.wikipedia.org/wiki/Java_Native_Interface</linkText>
+ </externalLink>.
+ </definition>
+ <definedTerm>Jacob</definedTerm>
+ <definition>
+ <newTerm>Jacob</newTerm> is a JAVA-COM Bridge that allows you to call COM Automation components from Java.
+ It uses JNI to make native calls to the COM libraries. For more information on Jacob see
+ <externalLink>
+ <linkUri>http://sourceforge.net/projects/jacob-project/</linkUri>
+ <linkText>http://sourceforge.net/projects/jacob-project/</linkText>
+ </externalLink>.
+ </definition>
+ <definedTerm>JacobGen</definedTerm>
+ <definition>
+ <newTerm>JacobGen</newTerm> generates java class wrappers microsoft DLLs that make them
+ callable from java programs. JacobGen is distributed with Jacob.
+ </definition>
+ </tableDefinition>
+ </para>
+ </content>
+ </section>
+ </developerConceptualDocument>
+</topic>
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<topic id="BF441469-57AD-438f-9DAC-B06F90418483" revisionNumber="1">
+ <developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <summary>
+ <para>
+ <newTerm>WAFFLE</newTerm> stands for Windows Authentication Functional Framework (Light Edition). WAFFLE
+ is a .NET library with a COM interface and a Java bridge that aims to provide a working library for
+ performing server-side Windows authentication, including Negotiate, NTLM and others.
+ <list class="bullet">
+ <listItem>
+ <codeEntityReference qualifyHint="true">N:Waffle.Windows.AuthProvider</codeEntityReference>
+ </listItem>
+ </list>
+ </para>
+ </summary>
+ </developerConceptualDocument>
+</topic>
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Topics defaultTopic="BF441469-57AD-438f-9DAC-B06F90418483">
+ <Topic id="BF441469-57AD-438f-9DAC-B06F90418483" visible="True" title="WAFFLE">
+ <Topic id="1489d227-4898-4952-9941-aaad7a4a67f2" visible="True" title="Getting Started" />
+ <Topic id="bbb83190-b983-4e43-96ef-c3a9d1050ab3" visible="True" title="Java Integration" />
+ <Topic id="1e7a6c2f-1a9c-4b33-adc7-ee82ac339857" visible="True" title="Contributing &amp; Help" />
+ </Topic>
+</Topics>
@@ -0,0 +1,69 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <!-- The configuration and platform will be used to determine which
+ assemblies to include from solution and project documentation
+ sources -->
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{78CCAE37-78F7-4f59-A79F-CFB40250A1C9}</ProjectGuid>
+ <SHFBSchemaVersion>1.8.0.0</SHFBSchemaVersion>
+ <!-- AssemblyName, Name, and RootNamespace are not used by SHFB but Visual
+ Studio adds them anyway -->
+ <AssemblyName>Documentation</AssemblyName>
+ <RootNamespace>Documentation</RootNamespace>
+ <Name>Documentation</Name>
+ <!-- SHFB properties -->
+ <OutputPath>$(Configuration)</OutputPath>
+ <HtmlHelpName>Waffle</HtmlHelpName>
+ <ProjectSummary>
+ </ProjectSummary>
+ <MissingTags>Summary, Parameter, Returns, AutoDocumentCtors, Namespace, TypeParameter</MissingTags>
+ <VisibleItems>InheritedMembers, InheritedFrameworkMembers, Protected, SealedProtected</VisibleItems>
+ <HtmlHelp1xCompilerPath>
+ </HtmlHelp1xCompilerPath>
+ <HtmlHelp2xCompilerPath>
+ </HtmlHelp2xCompilerPath>
+ <SandcastlePath>
+ </SandcastlePath>
+ <WorkingPath>
+ </WorkingPath>
+ <BuildLogFile>
+ </BuildLogFile>
+ <FrameworkVersion>2.0.50727</FrameworkVersion>
+ <PresentationStyle>Prototype</PresentationStyle>
+ <HelpFileVersion>1.0</HelpFileVersion>
+ <DocumentationSources>
+ <DocumentationSource sourceFile="..\Source\WindowsAuthProvider\bin\$(Configuration)\Waffle.Windows.AuthProvider.dll" xmlns="" />
+ <DocumentationSource sourceFile="..\Source\WindowsAuthProvider\bin\$(Configuration)\Waffle.Windows.AuthProvider.xml" xmlns="" />
+ <DocumentationSource sourceFile="..\Source\WindowsAuthProvider\WindowsAuthProviderNamespace.xml" xmlns="" />
+ </DocumentationSources>
+ <KeepLogFile>False</KeepLogFile>
+ <CopyrightText>$(Copyright)</CopyrightText>
+ <HelpTitle>WAFFLE Help</HelpTitle>
+ <NamespaceSummaries />
+ <RootNamespaceContainer>True</RootNamespaceContainer>
+ <RootNamespaceTitle>Source Code</RootNamespaceTitle>
+ <HelpFileFormat>Help1xAndWebsite</HelpFileFormat>
+ </PropertyGroup>
+ <!-- There are no properties for these two groups but they need to appear in
+ order for Visual Studio to perform the build. -->
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ </PropertyGroup>
+ <ItemGroup>
+ <None Include="Content\Main.aml" />
+ <None Include="Content\GettingStarted.aml" />
+ <None Include="Content\DevContribute.aml" />
+ <None Include="Content\JavaIntegration.aml" />
+ </ItemGroup>
+ <ItemGroup>
+ <ContentLayout Include="Waffle.content" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Content\" />
+ </ItemGroup>
+ <!-- Import the SHFB build targets -->
+ <Import Project="$(SHFBROOT)\SandcastleHelpFileBuilder.targets" />
+</Project>
@@ -0,0 +1,7 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Version")]
+[assembly: AssemblyDescription("")]
+[assembly: Guid("17F03C19-0043-491c-8E05-1E867D313CE4")]
Oops, something went wrong.

0 comments on commit 414c134

Please sign in to comment.