in

Dotnetpanel Forums

Community support forums for DotNetPanel products

Integrating Login with my site

Last post 06-01-2008 5:27 AM by GrZeCh. 43 replies.
Page 2 of 3 (44 items) < Previous 1 2 3 Next >
Sort Posts: Previous Next
  • 09-06-2007 1:20 AM In reply to

    Re: Integrating Login with my site

     yes, but when I passed right username and password then it shows me dotnetpanel login page.

    Windows Server 2008
    DotNetPanel 2.8.7
    SmarterMail 5.5 Enterprise
    MS SQL 2005/2008 Enterprise
    IIS7
    SimpleDNS
    Filezilla
    Google Analytic
  • 09-06-2007 2:39 AM In reply to

    Re: Integrating Login with my site

    Maybe you need something like in the attached file.

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 09-06-2007 2:55 AM In reply to

    Re: Integrating Login with my site

    Thanks Feodor let me clear again what i want to acompolish.

    If a user privide worng password then its shows the error on same page. but when the password is correct let him go and login automaticaly. 

    Windows Server 2008
    DotNetPanel 2.8.7
    SmarterMail 5.5 Enterprise
    MS SQL 2005/2008 Enterprise
    IIS7
    SimpleDNS
    Filezilla
    Google Analytic
  • 09-06-2007 3:00 AM In reply to

    Re: Integrating Login with my site

    OK. You own login page - is it ASP.NET page or ASP?

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 09-06-2007 3:16 AM In reply to

    Re: Integrating Login with my site

     It is ASP

    Windows Server 2008
    DotNetPanel 2.8.7
    SmarterMail 5.5 Enterprise
    MS SQL 2005/2008 Enterprise
    IIS7
    SimpleDNS
    Filezilla
    Google Analytic
  • 09-06-2007 8:16 AM In reply to

    Re: Integrating Login with my site

    OK, you use the following line to redirect to login page:

    Response.Redirect strDnpPortalUrl & "?user=" & strUsername& "&password=" & strPassword

    strPassword variable - can it contain symbols that should be URL encoded? Wink

     

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 09-06-2007 8:57 AM In reply to

    • ACW
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Posts 234

    Re: Integrating Login with my site

    Okay, I actually tested the code and found the problem. The Response.Redirect line should be revised as follows...

    Response.Redirect strDnpPortalUrl & "?pid=Login&user=" & strUsername& "&password=" & strPassword

    Note the new pid=Login parameter.

    Although this solution will now work, it does send the login information on the query string meaning that user names and passwords will be saved in the IIS logs. I will soon make a version available that uses a hidden form to log the user in instead.

  • 09-06-2007 9:33 AM In reply to

    • ACW
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Posts 234

    Re: Integrating Login with my site

    Feodor: I'm unable to add attachments to my comments. So, I've emailed you the code for you to post on this thread when you get a chance.

    The new code checks to see if it is a valid login. Users with a proper username and password are logged in to DNP Portal using a hidden form to prevent the user's login information from being recorded in the IIS logs.

    I hope it helps.

  • 09-06-2007 9:37 AM In reply to

    Re: Integrating Login with my site

    Here it is. See attached.

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 09-06-2007 9:41 AM In reply to

    • ACW
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Posts 234

    Re: Integrating Login with my site

  • 09-07-2007 12:50 AM In reply to

    Re: Integrating Login with my site

     Great Its working.

    Thank you very much both of you 

    Windows Server 2008
    DotNetPanel 2.8.7
    SmarterMail 5.5 Enterprise
    MS SQL 2005/2008 Enterprise
    IIS7
    SimpleDNS
    Filezilla
    Google Analytic
  • 09-07-2007 2:12 AM In reply to

    • ACW
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Posts 234

    Re: Integrating Login with my site

    Great! Can you post or PM me the URL so I can see the end results?

  • 09-07-2007 4:44 AM In reply to

    Re: Integrating Login with my site

     PHP, Python, JSP,CGI & Pearl are supported with DotNetPanel?

    Windows Server 2008
    DotNetPanel 2.8.7
    SmarterMail 5.5 Enterprise
    MS SQL 2005/2008 Enterprise
    IIS7
    SimpleDNS
    Filezilla
    Google Analytic
  • 09-07-2007 5:46 AM In reply to

    Re: Integrating Login with my site

    Do you mean can be managed from DNP?

    Sincerely yours,
    Feodor Fitsner, Director
    DotNetPanel - professionally developed software for hosting businesses
  • 03-14-2008 5:40 AM In reply to

    Re: Integrating Login with my site

    Hi,

    I'm a newbey in software development.
    I will intergrate login with my site.
    I've downloaded Easy Api and tried your sample code test-dnp-login.asp.txt
     
    It's impossible to login the panel with my site.

    The line objEasyApiEs.LogIn (strUsername, strPassword) will not login into the panel so i allways get the "Bad username and password" failure.
    I've changed the code  strErrorMessage = "Bad username and password" to strErrorMessage.text = err.description

    Then i copy de code to te server ( the same server as DNP)
    When i enter the logincode with it's url   the error shows:

    Could not load file or assembly 'Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
    or one of its dependencies. The system cannot find the file specified. 
     
     
    The strEnterpriseServerUrl is set to 127.0.0.1:9002 because it's a internal IP

    please help me,

    I tride everyting but nothing helps.

    thanks for your help,
    Martijn

Page 2 of 3 (44 items) < Previous 1 2 3 Next >
Powered by Community Server (Commercial Edition), by Telligent Systems