Serving multiple SSL domains on one EC2 instance

One of the annoying things of Amazon EC2 (and a highly requested feature), is the ability to connect multiple elastic IP’s to one instance, it can’t be done (atm).
You need these IP’s if you want to have more than SSL site on your server (if you are not using a wildcard or a multi domain certicate).

This article from James Elwood has a workaround for it. It makes use of the Elastic Load Balancer.

A little bit of background info on the fact why you can’t use one ip with multiple SSL sites:

The HTTPS protocol encrypts the HTTP request, including the Hostheader which identifies the domain it is requesting. The server then needs to decrypt the request with the correct SSL certificate. But the server does not know which one to use if there are more than one SSL site on 1 ip-address. You can see why you need a dedicated IP per SSL Site, the server can then look at the IP address to which the request was send and match it with the SSL site listening on this address.

PowerShell: mailbox size and enabled mailboxes

(note to self)

retrieving all enabled mail addresses in Exchange:

get-mailbox | where-object {$_.IsMailboxEnabled -eq $True} | select-Object DisplayName,PrimarySMTPAddress,WhenChanged | Sort-Object WhenChanged -descending | Export-Csv d:\mailadresses.csv

Retrieving the size of all mailboxes in Exchange

get-mailbox | Get-MailboxStatistics | select-object DisplayName, TotalItemSize | sort-object TotalItemSize -descending | Out-File d:\mailboxsize.csv

Office365 Links

The Press release:
http://www.microsoft.com/Presspass/press/2010/oct10/10-19Office365.mspx

The Fact Sheet:
http://www.microsoft.com/presspass/presskits/office/docs/office365FS.docx

The Website:
http://office365.microsoft.com/en-US/online-services.aspx

The Beta Signup subscription Page :
http://office365.microsoft.com/en-US/office365-beta.aspx
(you guessed it, beta is full at the moment :-( )

Service descriptions (interesting):
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=6c6ecc6c-64f5-490a-bca3-8835c9a4a2ea

Office365 Transition Center (bookmark it):
http://www.microsoft.com/online/transition-center.aspx

Office 365: next edition of BPOS

Announcement of office 365 (codename “Union”), Microsoft’s Next Generation Productivity Services. This product will arrive next year

Office 365 wil come in 2 sizes: Office 365 for small businesses and Office 365 for Enterprises.

Office 365 for small businesses
A small business can be up and running with Office 365 in just 15 minutes. It will give them Office Web Apps, Exchange Online, SharePoint Online, Lync Online and an external website for just $6 or 5.25 euros per user, per month

Office 365 for enterprises
This version will start at $2 or €1.75 per user, per month for basic e-mail, the so called KIOSK version, the will include:

  • 500 MB email storage per mailbox
  • POP3 access for mobile connectivity
  • Outlook Web App for email access on a PC
  • Ability to view SharePoint sites to stay informed
  • Office Web Apps (with certain plans)
  • Single IT management console to easily add users and administer between plans

The full enterprise version will have:

  • Large 25 GB mailboxes and the ability to send attachments up to 25 MB
  • Financially-backed, guaranteed 99.9% uptime Service Level Agreement
  • 24/7, IT-level support over the phone, the web or email
  • Single sign on capabilities with Active Directory deployment
  • Latest version of Office Professional Plus – connecting users to communication and collaboration services
  • Office Web Apps for viewing, sharing and minor editing of documents directly from a browser
  • Industry-leading, always-up-to-date anti-virus and anti-spam solutions
    Integrated IM and presence, online meetings with audio and video conferencing and multiparty data sharing
  • Team sites to share, manage and search for information and resources

Existing BPOS Customers will receive the same services with some new enhancements for the same price as they pay today ($10, €9 per user per month).

  • Single sign on (!!!)
  • New Outlook Web App
  • Email archiving, retention and cross mailbox search
  • View documents using Office Web Apps
  • Increased SharePoint storage
  • My Sites and other new team sites
  • Site search capabilities

Office 365 for enterprises also includes the option to get Microsoft Office Professional Plus desktop software on a pay-as-you-go basis, for the first time ever. For $24 or 22.75 euros per user, per month, organizations can get Office Professional Plus along with e-mail, voicemail, enterprise social networking, instant messaging, Web portals, extranets, voiceconferencing and videoconferencing, webconferencing, 24×7 phone support, on-premises licenses, and more.

I think this product could be “it”. Especially when you consider there will be a 1 user license, all those owner managed businesses will benefit from this cloud service. With this release Microsoft definitely embraces the cloud as the Next Platform.

SharePoint 2007: Table of Contents WebPart (max 50 sites)

We have a Table of Content webpart on our intranet site, which displays the sites below a given site. Apparently this web part will only show 50 subsites. To display more, Microsofts tell’s us to do the following:

Open web.config and search for the following:
<add name="GlobalNavSiteMapProvider" description="CMS provider for Global navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Global" EncodeOutput="true" />

<add name="CombinedNavSiteMapProvider" description="CMS provider for Combined navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Combined" EncodeOutput="true" />

<add name="CurrentNavSiteMapProvider" description="CMS provider for Current navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Current" EncodeOutput="true" />

<add name="CurrentNavSiteMapProviderNoEncode" description="CMS provider for Current navigation, no encoding of output" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Current" EncodeOutput="false" />

Add the following the every line: DynamicChildLimit="<integer>" (a zero will apply a no limit).

for example:

<add name="GlobalNavSiteMapProvider" description="CMS provider for Global navigation" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=13.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Global" EncodeOutput="true" DynamicChildLimit="100" />

thx to: http://suguk.org/forums/thread/3767.aspx

PowerShell–Changing AD user attributes

Recently I was asked to change some User attributes in AD. As these changes we’re on a lot of users in one OU, I concluded it would be a good idea to try this in PowerShell. In this article you will find the steps I took.

First of all I used the Active Directory Commandlets from Quest Software, you can find them here. Second, make sure you start PowerShell as a domain administrator or someone who has delegated rights to change the attributes.

The users whose attributes had to change where all in one Organizational Unit. So I first tried to get all the users that we’re in this OU.

get-qaduser -ou "domain/ou/ou"

Now I had to pipe this to a second command which would set the attributes for each user in that OU. To set attributes you can use set-qaduser.

get-qaduser -ou "domain/ou/ou" | foreach {set-qaduser -identity $_.logonname -streetaddress "<address>" -PostalCode "<ZipCode>" -City "<City>" -StateOrProvince "<State>"}

The next part would be a bit trickier. I needed to change the format of the mobile phone number. It was in the format: 0031 #########, I had to change this to +31 #########. Basically I need to cut off the first 2 zero’s and replace it with a “+” sign.

I used the substring method for this. You can pass the substring method a single parameter: the starting position where we want to begin extracting characters. And to concatenate the “+” sign in front of the string, you can just use the + sign  …get it? :-)

get-qaduser -ou "domain/ou/ou" | foreach {set-qaduser -identity $_.logonname -MobilePhone ("+"+$_.MobilePhone.substring(2))}

note: you can shorten the last 2 commands, into 1 command.