Multisite & Single Sign On by Ipsita Mishra

Similar documents
Tobby Hagler, Phase2 Technology

Building Library Website using Drupal

Site Audit ( /site_audit) Generated on Fri, 22 Aug :14:

Livezilla How to Install on Shared Hosting By: Jon Manning

Installing Drupal on Your Local Computer

BITS-Pilani Hyderabad Campus CS C461/IS C461/CS F303/ IS F303 (Computer Networks) Laboratory 3

Virtual Host Continue

Alert Notification of Critical Results (ANCR) Public Domain Deployment Instructions

Installing Microsoft Outlook on a Macintosh. This document explains how to download, install and configure Microsoft Outlook on a Macintosh.

OneLogin Integration User Guide

Drupal 7 Multi-sites Configuration

Dynamic DNS How-To Guide

Training module 2 Installing VMware View

Active Directory Requirements and Setup

Startup guide for Zimonitor

Extending Remote Desktop for Large Installations. Distributed Package Installs

Setup Corporate (Microsoft Exchange) . This tutorial will walk you through the steps of setting up your corporate account.

EMC ViPR Controller Add-in for Microsoft System Center Virtual Machine Manager

SchoolBooking SSO Integration Guide

Using Internet or Windows Explorer to Upload Your Site

Talk-101 User Guides Mailgate Administration Guide

FTP Accounts Contents

Uptime Infrastructure Monitor. Installation Guide

DevShop. Drupal Infrastructure in a Box. Jon Pugh CEO, Founder ThinkDrop Consulting Brooklyn NY

How To - Implement Single Sign On Authentication with Active Directory

Setup and configuration for Intelicode. SQL Server Express

WHMCS LUXCLOUD MODULE

exacqvision Web Server Quick start Guide

Virtual Appliance Setup Guide

tpischeduler tpischeduler TotalFBO tpischeduler TotalFBO Initial Installation tpischeduler TotalFBO tpischeduler

Host your websites. The process to host a single website is different from having multiple sites.

Creating Custom Nameservers Contents

Connecting EWS using DDNS

InfoRouter LDAP Authentication Web Service documentation for inforouter Versions 7.5.x & 8.x

EZcast technical documentation

Install FileZilla Client. Connecting to an FTP server

Quick DDNS Quick Start Guide

netld External Authentication Setup Guide

Active Directory Integration for Greentree

Dragonframe License Manager User Guide Version 1.2.2

Comtrend 1 Port Router Installation Guide CT-5072T

Configuring Sponsor Authentication

Secure Messaging Server Console... 2

Installation of MicroSoft Active Directory

Quick Start Guide. User Manual. 1 March 2012

Uploading files to FTP server

IIS, FTP Server and Windows

DEP S REMOTE ACCESS USER GUIDE

Free Medical Billing. Insurance Payment Posting: The following instructions will help guide you through Insurance Payment Posting Procedures.

PRiSM Security. Configuration and considerations

Create a New Account Contents

Installing The SysAidTM Server Locally

Git - Working with Remote Repositories

How to setup Mobility Extension on the 2N OfficeRoute and 2N VoiceBlue Enterprise

MIGRATING TO AVALANCHE 5.0 WITH MS SQL SERVER

How to configure the TopCloudXL WHMCS plugin (version 2+) Update: Version: 2.2

Hallpass Instructions for Connecting to Mac with a Mac

Talk-101 User Guide. DNSGate

Weston Public Schools Virtual Desktop Access Instructions

Deployment of Keepit for Windows

NAS 206 Using NAS with Windows Active Directory

Getting Started with Clearlogin A Guide for Administrators V1.01

Setting up a local working copy with SVN, MAMP and rsync. Agentic

Quick Start Guide. Hosting Your Domain

WebScheduler TotalFBO TotalFBO Initial Installation TotalFBO Connecting to a Database TotalFBO

Remote Desktop access via Faculty Terminal Server Using Internet Explorer (versions 5.x-7.x)

Cisco Video Surveillance Operations Manager Mobile App User Guide

Xopero Backup Build your private cloud backup environment. Getting started

Installing GS Analyze version 8.5

Web Authentication Application Note

1. Introduction What is Axis Camera Station? What is Viewer for Axis Camera Station? AXIS Camera Station Service Control 5

Asia Web Services Ltd. (vpshosting.com.hk)

This installation guide will help you install your chosen IceTheme Template with the Cloner Installer package.

Security Provider Integration Kerberos Authentication

Configuration Manual

ASULPUNTO Magento unicenta opos integration extension Version 1.0.0

Cloud Services. Sharepoint. Admin Quick Start Guide

Installation Guide v1.11 and Higher

ITA Mail Archive Setup Guide

Introduction to PhPCollab

CHARTER BUSINESS CUSTOM HOSTING MIGRATION INSTRUCTIONS

Quick Start Guide. Your New Account

Add in Guide for Microsoft Dynamics CRM May 2012

E-Map Application CHAPTER. The E-Map Editor

How to Join QNAP NAS to Microsoft Active Directory (AD)

Configuring an IP (SIP) Polycom Soundstation on the Avaya IP Office

JAMF Software Server Installation Guide for Linux. Version 8.6

Active Directory Sync (AD) How to Setup

Authentication Methods

User Guide Microsoft Exchange Remote Test Instructions

Technology Corner. IIS Configuration for Sage ACT! Premium A Review in Pictures

Customer Tips. Configuring Color Access on the WorkCentre 7328/7335/7345 using Windows Active Directory. for the user. Overview

SCOPTEL WITH ACTIVE DIRECTORY USER DOCUMENTATION

F-SECURE MESSAGING SECURITY GATEWAY

WHMCS Integration Manual

Troubleshooting This document outlines some of the potential issues which you may encouter while administering an atech Telecoms installation.

Network Setup Guide. 1 Glossary. 2 Operation. 1.1 Static IP. 1.2 Point-to-Point Protocol over Ethernet (PPPoE)

Setting up Sharp MX-Color Imagers for Inbound Fax Routing to or Network Folder

VERALAB LDAP Configuration Guide

Transcription:

Multisite & Single Sign On by Ipsita Mishra

Who am I? Ipsita Mishra http://drupal.org/user/172344 IRC Nick: ipsita Currently working for Melity Inc in association with PCI Hyderabad

We will walk through What is Multisite? How to setup Multisite Sharing information between Multisite

W W W What is multisite? Using a single drupal installation(code base) for creating multiple site. Why go for it? What is assumed?

W W W What is multisite? Using a single drupal installation(code base) for creating multiple site. Why go for it? Shared codebase means all sites are using the same version(latest version, probably). Better server(site) management, less complex version control system, less management for Security Issues. What is assumed?

W W W What is multisite? Using a single drupal installation(code base) for creating multiple site. Why go for it? Shared codebase means all sites are using the same version(latest version, probably). Better site management, less complex version control system, less management for Security Issues. What is assumed? You have basis knowledge of Apache server configurations & default drupal folder structure.

Mutlisite vs. Multiple sites www.example.com www.example.com Drupal Code www.example.com/site1 Drupal Code www.example.com/site1 www.example.com/site1 Drupal Code site2.example.com Still we can keep uniqueness of each site Drupal Code

Mutlisite vs. Multiple sites Credit : This is a snapshot from the Video on Multisite by Matt Petrowsky

Multisite Structure

Multisite Structure

What is Virtual host? The term Virtual Host refers to the practice of maintaining more than one server on one machine, as differentiated by their apparent hostname. - apache.org Virtual hosting is a method for hosting multiple domain names on a computer using a single IP address. This allows one machine to share its resources, such as memory and processor cycles, to use its resources more efficiently. - Wikipedia

localhost /etc/apache2/sites-available/default The `default` file is read when we type http://localhost in our browser vhost (an example file) /etc/apache2/sites-available/news.example.com

A Sample Virtualhost Configuration

Drupal lookup for settings.php Our website: friends.example.com Drupal will search for configuration files in the following order, using the first configuration it finds: sites/friends.example.com sites/example.com sites/default

Drupal lookup for settings.php Lets take a complex example : www.sub.example.com/site3 Drupal will not read configuration from sites/sub sites/site3

Drupal lookup for settings.php When searching for a site configuration (for example www.sub.example.com/site3), Drupal will search for configuration files in the following order, using the first configuration it finds: sites/www.sub.example.com.site3/settings.php

Drupal lookup for settings.php When searching for a site configuration (for example www.sub.example.com/site3), Drupal will search for configuration files in the following order, using the first configuration it finds: sites/www.sub.example.com.site3/settings.php sites/sub.example.com.site3/settings.php

Drupal lookup for settings.php When searching for a site configuration (for example www.sub.example.com/site3), Drupal will search for configuration files in the following order, using the first configuration it finds: sites/www.sub.example.com.site3/settings.php sites/sub.example.com.site3/settings.php sites/example.com.site3/settings.php

Drupal lookup for settings.php When searching for a site configuration (for example www.sub.example.com/site3), Drupal will search for configuration files in the following order, using the first configuration it finds: sites/www.sub.example.com.site3/settings.php sites/sub.example.com.site3/settings.php sites/example.com.site3/settings.php sites/www.sub.example.com/settings.php

Drupal lookup for settings.php When searching for a site configuration (for example www.sub.example.com/site3), Drupal will search for configuration files in the following order, using the first configuration it finds: sites/www.sub.example.com.site3/settings.php sites/sub.example.com.site3/settings.php sites/example.com.site3/settings.php sites/www.sub.example.com/settings.php sites/sub.example.com/settings.php

Drupal lookup for settings.php When searching for a site configuration (for example www.sub.example.com/site3), Drupal will search for configuration files in the following order, using the first configuration it finds: sites/www.sub.example.com.site3/settings.php sites/sub.example.com.site3/settings.php sites/example.com.site3/settings.php sites/www.sub.example.com/settings.php sites/sub.example.com/settings.php sites/example.com/settings.php

Drupal lookup for settings.php When searching for a site configuration (for example www.sub.example.com/site3), Drupal will search for configuration files in the following order, using the first configuration it finds: sites/www.sub.example.com.site3/settings.php sites/sub.example.com.site3/settings.php sites/example.com.site3/settings.php sites/www.sub.example.com/settings.php sites/sub.example.com/settings.php sites/example.com/settings.php sites/default/settings.php

Single Sign On(SSO) SSO means when you created a user/pass on one site, it will work on the other site(s)

Single Sign On(SSO) SSO means when you created a user/pass on one site, it will work on the other site(s) These sites will share session and user-related tables so once users login to one of the sites, they will auto login to the other site without logging in exclusively.

Single Sign On(SSO) SSO means when you created a user/pass on one site, it will work on the other site(s) These sites will share session and user-related tables so once users login to one of the sites, they will auto login to the other site without logging in exclusively. In addition to that, we can share User roles and profiles among the two sites.

Prepare database and user(for SSO) # DB name: drupal_db # DB username: duser # Password: duserp

Modify settings.php Open settings.php in the folder sites/news.example.com/ $db_url = 'mysql://username:password@localhost/databasename'; change it to, $db_url = 'mysql://duser:duserp@localhost/drupal_db';

Modify settings.php : $db_prefix We have a variable called $db_prefix which will do the magic Since we want to share a database among two sites but not completely, we decide which tables to share / not to share.

Modify settings.php : $db_prefix $db_prefix = array( 'default' => 'news_', 'users' => 'shared_', 'sessions' => 'shared_', 'role' => 'shared_', 'authmap' => 'shared_', 'users_roles' => 'shared_', );

Now edit the settings.php file for sites/sn.example.com Use the same database connection information. $db_url = 'mysql://duser:duserp@localhost/drupal_db'; Then, you add an array of prefixes, which will look like: $db_prefix = array( 'default' => 'sn_', 'users' => 'shared_', 'sessions' => 'shared_', 'role' => 'shared_', 'authmap' => 'shared_', 'users_roles' => 'shared_', );

Install drupal http://news.example.com/install.php http://sn.example.com/install.php

SSO for two websites with 2 database An option : Multisite Login Module # Using a multisite installation. # Using a separate database for each site (no table prefixing, though the code could be modified to allow for this). # Share the users table across all sites (If this is not you, what are you hoping that this module will do for you?) # You need to install the Multisite Api module.

Resources http://drupal.org/getting-started/6/install/multi-site http://gotdrupal.com/videos/multisites-vs-multiple-sites http://groups.drupal.org/multisite

Thank you