0

Simple Network password protection

Hi There, we like to use siple network to update our content. In some case we need to have it password protected. What we tryed is to protect the folder on the webserver by .htacces and .htpasswd and htaccess lokks like: AuthName "BS" AuthType Basic AuthUserFile /path/.htpasswd require valid-user a url for web folder with the password like: "http://user:password@serverip/folder/. But this will not work. The Log says: ### start_sync ### Looking for new sync list from

http://192...- m --> 2010/10/21 11:28:00.825 ### url_event ### Failed to download sync list. Here my question: Is there any way to make this work? Or ist here another way to deliver username and password. Yours Christian

9 comments

  • 0
    Avatar
    RokuLyndon


    I'll have some directions for you on this later. Someone's doing some testing on this for me. We found that you need to edit the setup autorun, and the standard autorun with password settings. I just need to confirm where in each file, and I'll post the details. You'll also need a firmware update. I'll post that as well.
  • 0
    Avatar
    Christian Scholz


    Hi Lyndon,

    sonds good.
    If you like i can give you login data to our server for your tests.

    Yours Christian
  • 0
    Avatar
    RokuLyndon


    ok, maybe that will be our second step. You can send that info to <!-- e --><a href="mailto:support@brightsign.biz">support@brightsign.biz</a><!-- e -->. When do you need this? I just need to know if it needs to be today, or as soon as possible?

    I have the directions, but I haven't run the test myself. By the way, you should update to the latest brightauthor before you get started.  I can post the directions as is since they were actually tested by one of my colleagues.I just haven't had a chance to try it myself.

    You have to make changes to the setup autorun.brs that's used when you create setup files for simple networking. And, also to the published autorun file that's used when you publish a project.
  • 0
    Avatar
    Christian Scholz


    Hi Lyndon,

    i send you the server data by mail.
    There is no hurry. I am not in work until tomorrow.

    Thanks for all

    Yours Christian
  • 0
    Avatar
    Christian Scholz


    Dear Lyndon,

    when do you think you have time do find a solution for this?
    It will be nice to have it mid this week.

    Yours Christian
  • 0
    Avatar
    Bsanderson


    I to would like to password protect the download files on my web server.

    do you have a sample of the files that show what to edit to allow for login to a website via the simple network model ?

    thanks
    bill
  • 0
    Avatar
    Christian Scholz


    Hi There,

    are there any updates on this request.

    Chris
  • 0
    Avatar
    Alfonso Descalzo


    Please, I have a huge project and one of the first things they need is to password protect the downloads...

    Any update?
  • 0
    Avatar
    RokuLyndon


    For simple networking you will need to enter these 3 lines of code twice:

    1) In the autorun.brs after creating the setup file

    2) In the autorun.brs after the second reboot when the unit has downloaded the second autorun.brs

    if m.setUserAndPassword then m.xfer.SetUserAndPassword(m.user$, m.password$)

    m.xfer.EnableUnsafeAuthentication(true)

    m.xfer.SetMinimumTransferRate(10,240)




    Add the following lines of code on the first autorun.brs which is part of the setup files for Simple networking:

    On Line 406 add >>>> m.user$ = “Enter username here”

    On line 407 add >>>> m.password$ = “Enter password here”

    On line 530 add >>>> m.xfer.EnableUnsafeAuthentication(true)

    m.user$ = m.currentSync.LookupMetadata("server", "user")

    m.password$ = m.currentSync.LookupMetadata("server", "password")

    m.user$ = “Enter username here”

    m.password$ = “Enter password here”

    if m.user$<>"" and m.password$<>"" then

    m.setUserAndPassword = true

    else

    m.setUserAndPassword = false

    endif


    ...

    m.xfer.SetUrl(m.nextURL$)

    if m.setUserAndPassword then m.xfer.SetUserAndPassword(m.user$, m.password$)

    m.xfer.EnableUnsafeAuthentication(true)

    m.xfer.SetHeaders(m.currentSync.GetMetadata("server"))




    Add the following lines of code on the second autorun.brs:

    On Line 4760 add >>>> m.user$ = “Enter username here”

    On line 4761 add >>>> m.password$ = “Enter password here”

    On line 4891 add >>>> m.xfer.EnableUnsafeAuthentication(true)


    m.user$ = m.currentSync.LookupMetadata("server", "user")

    m.password$ = m.currentSync.LookupMetadata("server", "password")

    m.user$ = “Enter username here”

    m.password$ = “Enter password here”

    if m.user$ <> "" and m.password$ <> "" then

    m.setUserAndPassword = true

    else

    m.setUserAndPassword = false

    endif


    ...
Please sign in to leave a comment.