Ldap

Forum for questions and support relating to the 1.29.x releases only.
Locked
ophillips
Posts: 1
Joined: Mon Jan 18, 2016 4:42 pm

Ldap

Post by ophillips »

Hi i am new to Zoneminder - I develop for a Linux OS called the linux schools project there is a server version however i work on the client version - I have decided to write a module for the Server though and i was wondering if ZoneMinder can be configured with ldap?
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Ldap

Post by asker »

You mean LDAP authentication? I've seen several people configure Apache for LDAP authentication
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
agauthier51
Posts: 10
Joined: Fri Jan 08, 2016 11:03 am

Re: Ldap

Post by agauthier51 »

Currently trying to switch ZM to ldap authentication. I made a few changes on the zoneminder.conf file:

Below /zm Alias:
<Directory /usr/share/zoneminder/www>
AuthName "ZoneMinder Login"
AuthBasicProvider ldap
AuthLDAPURL "ldap://xx.xx.xx.xx/dc=example,dc=com"
Require valid-user
php_flag register_globals off
[...]

I also un-flagged OPT_USE_AUTH
Web access is fine, but ZM internal login/password is still required for zmNinja, looks like the API isn't checking OPT_USE_AUTH (have already restarted ZM & Apache many times).

Regards,
Arnaud
Brave old Desktop (Ubuntu14.04 - ZM1.29.0 - ZMNinja)
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Ldap

Post by asker »

If you are using basic auth in ZM:
a) Don't enable login in zmNinja - that is only for OPT_AUTH
b) In the URL part of zmNinja, specify it as user:password@server/zm/
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
agauthier51
Posts: 10
Joined: Fri Jan 08, 2016 11:03 am

Re: Ldap

Post by agauthier51 »

I moved the LDAP authentication on the proxy server rather than on the ZM machine.

Works perfectly using this, I just have sometimes "bad authentication" messages on the zmNinja Settings page.
Brave old Desktop (Ubuntu14.04 - ZM1.29.0 - ZMNinja)
User avatar
asker
Posts: 1553
Joined: Sun Mar 01, 2015 12:12 pm

Re: Ldap

Post by asker »

Can you please post a detailed post in the mobile apps forum since this is a ZmNinja question?

Please mention the exact settings, screen shots of zmNinja is needed, and the use case along with debug logs from zmNinja. I'd like to solve it but don have enough information.
I no longer work on zmNinja, zmeventnotification, pyzm or mlapi. I may respond on occasion based on my available time/interest.

Please read before posting:
How to set up logging properly
How to troubleshoot and report - ES
How to troubleshoot and report - zmNinja
ES docs
zmNinja docs
agauthier51
Posts: 10
Joined: Fri Jan 08, 2016 11:03 am

Re: Ldap

Post by agauthier51 »

New subject created on the mobile zone.
Brave old Desktop (Ubuntu14.04 - ZM1.29.0 - ZMNinja)
Locked