In the previous tutorial, I have explained What is Ektron CMS? Now I will discuss the login server controls, logging in and out, and how to access an Ektron CMS400.NET website.
Login Server Control
The Login server control paints a login button on the template when displayed in a browser. When the Login server control is inserted and the project is built, the control displays the following buttons on a Web page.
—When a user is not logged in, this button appears. Clicking the button opens the login window, where a user can enter a username and password. Upon authentication, the user is logged in to the Ektron Web site.
—After a user logs in, this button replaces the login button to let the user log out.
—When logged in, this button appears under the logout button, allowing the user to access the Workarea.
—Lets the user preview the entire Web site as if all checked-in content were published.
—Turns off-site preview mode.
—Launches online help for Ektron.
Logging into an Ektron Web Site
To sign on to an Ektron CMS400.NET site, follow these steps.
- To log into your CMS, go to the login page at yourwebsiteaddress/cmslogin.aspx
The default location of your Ektron login page will be located at https://www.your-site-domain/cmslogin.aspx.
In the User and Pwd fields enter the default Username: admin and Password: Training.
Click on the Login button and after logging, you will have options for Workarea and Preview.
Click on Workarea link to enter the CMS Workarea.
- Click Logout from the context menu, or logout on the Web page. The Logout confirmation box appears.
Note: If your site uses active directory to authenticate users your login screen may require that you select the domain from a dropdown in the Login Box.
Login without password using Ektron API
Find the below source code to login Ektron cms without a password where you need to integrate with a third party authentication application. For instance, if you need to do a custom integration with Active Directory.
Ektron.Cms.API.User.User userApi = new Ektron.Cms.API.User.User(); Ektron.Cms.UserData userObj = new Ektron.Cms.UserData(); userObj = userApi.LogInUser("jedit", "localhost", "", "", Ektron.Cms.Common.EkEnumeration.AutoAddUserTypes.Author); userApi.SetAuthenticationCookie(userObj);