Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Prevent external logins for Host/Admin usersPrevent external logins for Host/Admin users
Previous
 
Next
New Post
11/26/2007 6:05 PM
 

Is it possible to prevent Host and Admin users from logging in externally, that is from outside a company intranet?

 
New Post
11/26/2007 11:55 PM
 

If this is an intranet site, then I would put firewall rules in place to limit access to the site to internal IP addresses.  If for some reason you cannot do this through the firewall (no access to firewall, etc) then you can also limit access by IP address within IIS Management Console.

 
New Post
11/27/2007 5:21 AM
 

This is actually a very good idea !!

I think now it cannot be done without modifying the source-code, but that is why we LOVE open-source isn't it?

My suggestions:

1. Modify UserValidStatus.vb, add
EXTERNALIP = 5
right after the line:
UPDATEPASSWORD = 4

2. Modify Login.ascx.vb (I'm not an expert in Visual Basic, so excuse my mistakes. I'm more in C# world)
right after
            If Not objUser.IsSuperUser Then
                validStatus = UserController.ValidateUser(objUser, PortalId, ignoreExpiring)
            End If
add something like this:
If Not Request.UserHostAddress().StartWith("192.168") Then validStatus=UserValidStatus.EXTERNALIP

3. Handle the UserValidStatus.EXTERNALIP in the Select just below I suggest adding something like this:
                Case UserValidStatus.EXTERNALIP
                    strMessage = "Admins can login only from inzide the corporate network!"
                    AddLocalizedModuleMessage(strMessage, ModuleMessageType.YellowWarning, True)
                    PageNo = 0

Hope this helps.


Regards, Ion
 
New Post
11/27/2007 8:15 AM
 

bitpail wrote

Is it possible to prevent Host and Admin users from logging in externally, that is from outside a company intranet?

What the others are trying to say is -- No.  :)

Technically, to DNN, there is no internal/external.  Everybody is external.  But there are ways to handle this, specifically with auditing of logs and a policy that says anyone logging in from outside the intranet will be terminated.  You might also use a proxy to block access to the login URL from outside, bypassing the proxy internally.

As usual, rotate admin/host passwords regularly, use strong passwords and audit logon attempts.  Use the AD provider to manage this through policies.

Jeff

 
New Post
11/27/2007 9:58 AM
 

Great, this is exactly what I was talking about, thanks Ion.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Prevent external logins for Host/Admin usersPrevent external logins for Host/Admin users


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out