You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.User Namespace > Classes > User Class > User Methods > LogInUser Method > LogInUser
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
User.LogInUser Method (String, String, String, String, EkEnumeration.AutoAddUserTypes)

Used to force log in the user and no password required.

C#
public UserData LogInUser(String username, String ServerName, String Domain, String Protocol, EkEnumeration.AutoAddUserTypes AutoAddType);
Visual Basic
Public Function LogInUser(ByVal username As String, ByVal ServerName As String, ByVal Domain As String, ByVal Protocol As String, ByVal AutoAddType As EkEnumeration.AutoAddUserTypes) As UserData
Parameters 
Description 
username 
The system username. 
ServerName 
The system server name. When using Active Directory, this parameter needs to be an empty string "". 
Domain 
The user's domain, required only when users login using Active Directory. If your domain is intra.example.com, it is entered in the following format: "DC=intra,DC=example,DC=com"
Protocol 
Required only when using a secure login or when you are using any valid Active Directory protocols. 
AutoAddType 
The desired EkEnumeration.AutoAddUserTypes type 

Ektron.Cms.UserData

Using this method may increase security risk

When using Active Directory/LDAP, this method will log the user only after first successfull LDAP/AD User Login into CMS. when using Active Directory, the ServerName and Protocol parameters are set to empty strings ("").

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!