Page 21 of 49

Posted: Wed Jan 25, 2006 10:28 pm
by jameswilson
on playback (im assuming you mean playback) the infomation to retrieve the images is gathered from the sql db. I would suggest if your concerned you can use ipfiltering on the event dir i suppose

Posted: Thu Jan 26, 2006 8:32 am
by maciekc
I use basic http auth here some times and it works fine. What problems are you having that it does not?
There are no problems:) It just works fine.

But I wonder how to use James's program with this authorisation. I'm also authorising cgi-bin directory with http basic. So James's viewer couldn't get images without authorisation. Do you now understand?

Posted: Thu Jan 26, 2006 8:34 am
by maciekc
jameswilson wrote:on playback (im assuming you mean playback) the infomation to retrieve the images is gathered from the sql db. I would suggest if your concerned you can use ipfiltering on the event dir i suppose
Not only on playback. also on streaming - cgi-bin dir.
I think that http-basic authorisation is better. Many networks have dynamic ip addresses so ip filtering is not usable. We can also use ssh tunnel but it is too hard to many users. IMHO the http-basic with new zm option to retrieve logged user from apache is the best.
Maybe try to implement http-basic to your software? What do you think about that?

Posted: Thu Jan 26, 2006 9:58 am
by jameswilson
i dont really understand what you mean as there is some basic auth on streaming. Auth with out zms is on the list to do but i dont really understand how it works at the moment. And im concentrating on finishing and tidying existing features before adding major new ones. How could my app use auth on playback with zm, how would you normally authenticate users to those folders?

James

Posted: Thu Jan 26, 2006 11:57 am
by maciekc
jameswilson wrote:i dont really understand what you mean as there is some basic auth on streaming. Auth with out zms is on the list to do but i dont really understand how it works at the moment. And im concentrating on finishing and tidying existing features before adding major new ones. How could my app use auth on playback with zm, how would you normally authenticate users to those folders?
http-basic authentication is not that one used in zms by passing user&pass as parameter.
I mean http-basic authentication which is described here http://httpd.apache.org/docs/1.3/howto/auth.html.
I prefer this than normal zm php authentication.
I hope you now understand:)

Posted: Thu Jan 26, 2006 1:09 pm
by jameswilson
I see. This looks possible to impliment, ill add it to the list, unfortunatly for you as its only 1 request its not a priority (priority at the moment is to support new 1.22 features) but i will add it as time allows.

Posted: Thu Jan 26, 2006 1:12 pm
by zoneminder
It's actually not that hard to do, if you can find a function to do base64 conversion. It's just a case of a bit of encoding and adding an extra header to each request. There is an example in zm_remote_camera.cpp if you want to copy it.

Posted: Thu Jan 26, 2006 1:17 pm
by jameswilson
unfortunaly i uswed an image control that supported getting images form url's i dont actually download images anywhere in my code. Im looking at changing the class so my code actually downloads the images and then as im using the .net webrequest class i can pass auth infomation in that. Unfortunalty its a fair change as all image controls use the previous method. It looks like im gonna have to make some radical changes anyway to support this raw format anyway so i could put it in then, when i rewrite each camera module.
If i take this approach i will release a basic 4 way image viewer with this in and once proven rewrite zm4ms in the relevant places to work like this.

Posted: Thu Jan 26, 2006 6:37 pm
by maciekc
jameswilson wrote:I see. This looks possible to impliment, ill add it to the list, unfortunatly for you as its only 1 request its not a priority (priority at the moment is to support new 1.22 features) but i will add it as time allows.
Here I've found a little example, maybe this could help you if so
http://tiny.pl/mq9t

But remember the raw is the most important thing:)

Posted: Thu Jan 26, 2006 9:28 pm
by cordel
maciekc wrote: There are no problems:) It just works fine.

But I wonder how to use James's program with this authorisation. I'm also authorising cgi-bin directory with http basic. So James's viewer couldn't get images without authorisation. Do you now understand?
This type of authentication needs to be passed as user:password@Host instead of in the path string &user=user&pass=password.

Regards,
Corey

Posted: Fri Jan 27, 2006 4:42 pm
by maciekc
cordel wrote:This type of authentication needs to be passed as user:password@Host instead of in the path string &user=user&pass=password.
I didn't thought about that simple way, used in every program...

Posted: Tue Feb 21, 2006 8:30 am
by nraponi
Can someone confirm the download link? I've been trying http://217.154.38.122:8080/version2/zm4msbeta.zip without success.

Thanks
Nick

Posted: Tue Feb 21, 2006 9:12 am
by jameswilson
I have just tested and it downloaded fine, whats happening your end?

Posted: Tue Feb 21, 2006 9:15 am
by nraponi
I am getting

"Cannot find server or DNS Error
Internet Explorer "

Odd. I'll try it from home tonight.

cheers
Nick

Posted: Tue Feb 21, 2006 9:17 am
by jameswilson
can you get it from where you are now?, it shuldnt be using dns as I dont have a domain name