Hi,
Maybe you have used the Word 2007 Content Control Toolkit, and after mapping a Rich Text Content Control with a XML node, you have noticed that it turns into a plain text content control.
This is something that Word 2007 Content Control Toolkit manages, as it is not expected behaviour of the current implemented version of content controls.
You can check at http://msdn2.microsoft.com/en-us/library/bb226172.aspx that the expected action would be a run-time error.
The same way when you map a XML node to a picture content control, it stores the base-64 binary representation; it would be great to include the rich text representation (Ecma 376) of the text.
Cheers!
Today I wanted to show you the neccessary steps to configure MOSS with the LDAP Provider (we will actually query Active Directory). First you can find at technet2 information about the process and its implications
With all this information it will be easy to set up our job.
In order to create this task you weill need access to the web.config of the web application under change. You will find it opening Internet Information Services (IIS) Manager, WebSites, and context menu over the web application (open). My example bring me: C:\Inetpub\wwwroot\wss\VirtualDirectories\moss.litwareinc.com80
Then I edit the web.config file and change <authentication mode="Windows" /> with <authentication mode="Forms" /> inside system.web node.
With no other change you will find that if you try to log in your site, it will throw a 404 error and redirects you to the default login page: http://moss.litwareinc.com/login.aspx?ReturnUrl=%2fPages%2fDefault.aspx
Register the membership provider
In the next step we should register the memebership provider for LDAP, and change hte Auth Provider in the Central Admin.
This will involved changing web.config again (remember that changing web.config will reset the AppPool).
The change will affect membership node:
<membership defaultProvider="LdapMembershipProvider"> <providers> <add name="LdapMembership" type="Microsoft.Office.Server.Security.LDAPMembershipProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C" server="MOSS.LITWAREINC.COM" port="389" useSSL="false" userDNAttribute="distinguishedName" userNameAttribute="sAMAccountName" userContainer="CN=Users,DC=litwareinc,DC=com" userObjectClass="person" userFilter="(|(ObjectCategory=group)(ObjectClass=person))" scope="Subtree" otherRequiredUserAttributes="sn,givenname,cn" /> </providers></membership>
In order to fill in the userContainer attribute (we changed serverto match our environment [SingleServer]), I will use ADExplorer http://www.microsoft.com/technet/sysinternals/utilities/adexplorer.mspx.
Then You will need too browse to Authentication Providers in the Central Administration, Edit Authentication of your Web Application, and include the name of the provider. In the sample: LdapMembershipProvider
Then if you go back to your site, it will show you the login page.
Register the role manager (optional).
Finally you can add information for the role manager:
<roleManager defaultProvider="LdapRoleProvider" enabled="true" cacheRolesInCookie="true" cookieName=".PeopleDCRole"> <providers> <add name="LdapRoleProvider" type="Microsoft.Office.Server.Security.LDAPRoleProvider, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71E9BCE111E9429C"server="DC"port="389"useSSL="false"groupContainer="DC=litwareinc,DC=com"groupNameAttribute="cn"groupMemberAttribute="member"userNameAttribute="sAMAccountName"dnAttribute="distinguishedName"groupFilter="(ObjectClass=group)"scope="Subtree"/> </providers></roleManager>
And update the authentication provider central admin.
More references to solve some issues
Namaste ;)
Today I wanted to share howto use the "Microsoft Best Practices Analyzer for Windows SharePoint Services 3.0 and the 2007 Microsoft Office System"
available from http://www.microsoft.com/downloads/details.aspx?familyid=cb944b27-9d6b-4a1f-b3e1-778efda07df8&displaylang=en in your environment.
As you may have read this BPA collects settings and values from data repositories including Microsoft SQL Server, Registry, and Performance Monitor.
It is nice to see the core BPA to extend to others products, although they do not leverage the same interface/help/guidance nor installation process:
This could bring you a little confusion when using different BPAs, as there is no common UI.
Microsoft Best Practices Analyzer for Windows SharePoint Services 3.0 and the 2007 Microsoft Office System
There are 3 important files:
In order to execute sharepointbpa.exe you can first ask for the neccessary parameters:
This will bring you this information:
Microsoft Best Practices Analyzer for Microsoft(R) Windows(R) SharePoint(R) Services 3.0 and the 2007 Microsoft(R) Office System version 12.0.4518.1016 Copyright (C) Microsoft Corporation 2007. All rights reserved. sharepointbpa.exe -cmd analyze [-rulefile <\\server\share\rules.xml>] [-outputdirectory <\\server\share>] [-reportformat <xml|html>] [-substitutions <name value>[< ...>]] Performs analysis against the specified Xml file. rulefile: This file contains the set of rules to be run. If not specified, a default rule file located at C:\Blog Entry BPA\sharepointbpa.config.xml will be used. outputdirectory: Specifies the directory where analysis report output files will be created. If not specified, all report files will be saved to the C:\Blog Entry BPA directory. reportformat: Specifies the format of the report that will be generated during an analysis run. If the specified format is xml, the report format will be in xml. If the specified format is html, the report format will be in html. If a format is not specified, then html is used. substitutions: A list of name value pair combinations that are used as substitution variables in the specified rule file. For example, substitution variable names in a rule file use the format %somevariable%. To replace all occurrences of %somevariable% in a rule file, specify 'somevariable somevalue' on the command line. Note that variable names are case sensitive; the case of the variable specified in the rule file must match the case used on the command line.
rulefile: This file contains the set of rules to be run. If not specified, a default rule file located at C:\Blog Entry BPA\sharepointbpa.config.xml will be used.
outputdirectory: Specifies the directory where analysis report output files will be created. If not specified, all report files will be saved to the C:\Blog Entry BPA directory.
reportformat: Specifies the format of the report that will be generated during an analysis run. If the specified format is xml, the report format will be in xml. If the specified format is html, the report format will be in html. If a format is not specified, then html is used.
substitutions: A list of name value pair combinations that are used as substitution variables in the specified rule file. For example, substitution variable names in a rule file use the format %somevariable%. To replace all occurrences of %somevariable% in a rule file, specify 'somevariable somevalue' on the command line. Note that variable names are case sensitive; the case of the variable specified in the rule file must match the case used on the command line.
Running BPA
So you can start running sharepointbpa.exe -cmd analyze -servername <servername>
This will generate a log file, called spbpatrace_<unique identifier>.log and the report
sharepointbpa<number>.report.htm
If you include the third parameter -reportformat xml, this file will be sharepointbpa<number>.report.xml
After that you will be provided with a report with the results. After reading the report you will have specific instructions in order to fix them or just be aware of.
Here we can explode other rules and configurations as Bill Baer wrote about at http://blogs.technet.com/wbaer/archive/2007/04/17/understanding-the-microsoft-best-practices-analyzer-for-windows-sharepoint-services-3-0-and-the-2007-microsoft-office-system-rule-file.aspx
The point I wanted to surface is the other options we can use in the config file as:
Substitution in the Configuration node, where a node like this
<Substitution Name="SERVER_NAME">MOSS.litwareinc.com</Substitution>
will give us the option to run with sharepointbpa.exe -cmd analyze
I have attached a sample from the SQL Server BPA.