Loading ...
Sorry, an error occurred while loading the content.
 

Re: lighttpd and authentication

Expand Messages
  • crombeenhans
    ... folder. ... auth_mod ... seems ... The problem is solved. I really had to use | instead of : to seperate the different users in the lighttpd.conf file.
    Message 1 of 6 , May 30, 2007
      --- In nslu2-linux@yahoogroups.com, "crombeenhans" <muppets4@...>
      wrote:
      >
      > --- In nslu2-linux@yahoogroups.com, "crombeenhans" <muppets4@>
      > wrote:
      > >
      > >
      > > > Try loading the openldap library package using :-
      > > >
      > > > ipkg install openldap-libs
      > > >
      > >
      > > Thanks! it's better now, although it's not working yet.
      > >
      > > I've changed the conf file, cause lighttpd wouldn't start up,
      > > according to it's own suggestions. The auth part looks like this
      > now:
      > >
      > > #### auth module
      > > ## read authentication.txt for more info
      > > #auth.backend = "plain"
      > > #auth.backend.plain.userfile = "lighttpd.user"
      > > #auth.backend.plain.groupfile = "lighttpd.group"
      > >
      > > #auth.backend.ldap.hostname = "localhost"
      > > #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
      > > #auth.backend.ldap.filter = "(uid=$)"
      > >
      > > #auth.require = ( "/server-status" =>
      > > # (
      > > # "method" => "digest",
      > > # "realm" => "download archiv",
      > > # "require" => "user=jan"
      > > # ),
      > > # "/server-config" =>
      > > # (
      > > # "method" => "digest",
      > > # "realm" => "download archiv",
      > > # "require" => "valid-user"
      > > # )
      > > # )
      > >
      > > auth.debug = 0
      > > auth.backend = "plain"
      > > auth.backend.plain.userfile = "/opt/etc/lighttpd/lighttpd-
      > > plain.user"
      > > auth.require = ( "/muziek/" =>
      > > (
      > > "method" => "digest",
      > > "realm" => "muziek downloads",
      > > "require"
      > > => "user=muppets4:user=muppets5"
      > > ),
      > > "/server-info" =>
      > > (
      > > "method" => "digest",
      > > "realm" => "muziek downloads",
      > > "require" => "valid user"
      > > )
      > > )
      > >
      > > I have a directory called 'muziek' in the root of my shared
      folder.
      > > In it there is a file, let's call it muziek.rar. When the
      auth_mod
      > is
      > > off, I am able to download it, by typing
      > > http://192.168.1.39:8090/muziek/muziek.rar
      > >
      > > When I turn the auth_mod on, I get a connection error. So it
      seems
      > > protected, but I was hoping for a username/password dialog. Any
      > > suggestions?
      > >
      >
      > I don't know why, but all of a sudden the username/password dialog
      > shows up. When I use 'muppets4' for a username and 'muppets4' for
      > password, the 'authentication failed' page shows. My lighttpd-
      > plain.user file (no txt extension) contains just one
      > line 'muppets4:muppets4'
      >
      > Suggestions?
      >

      The problem is solved. I really had to use | instead of : to seperate
      the different users in the lighttpd.conf file.

      Thanks for all your great help overhere. Now I'm back to expiriment
      some more.
    Your message has been successfully submitted and would be delivered to recipients shortly.