![](https://secure.gravatar.com/avatar/c6a3da526f1933684c0a89612275a46a.jpg?s=120&d=mm&r=g)
Hello team,
we are plaining LDAP authentication for Observium.
What happend if LDAP server is not available ?
And can i combine LDAP and MySQL logins? For example LDAP for company Users and MySQL for customers/viewers
Regards, Tomas
[email-header-praha1]
Tomas Chott technický ředitel chott@praha1.netmailto:chott@praha1.net Phone: +420 245 004 005 Mobile: +420 604 930 119
Metropolitní síť Praha 1 z.s.p.o. Jindrisska 18 110 00 Praha 1 Czech Republic www.praha1.nethttp://www.praha1.net [Popis: Facebook]http://www.facebook.com/praha1net http://www.linkedin.com/pub/tomas-chott/49/97a/1aa
![](https://secure.gravatar.com/avatar/21caf0a08d095be7196a1648d20942be.jpg?s=120&d=mm&r=g)
On 28/07/2015 23:11, chott@praha1.net wrote:
Hello team,
we are plaining LDAP authentication for Observium.
What happend if LDAP server is not available ?
You can't log in.
And can i combine LDAP and MySQL logins? For example LDAP for company Users and MySQL for customers/viewers
Nope.
Tom
![](https://secure.gravatar.com/avatar/f61a94752fc012aee92037bd090f71f3.jpg?s=120&d=mm&r=g)
I found LDAP support in observium to be lacking significantly.
A jira-like method of authentication would be appreciated. Specifically the ability to use integrated and external sources for authentication at the same time. As well as permissions based on AD groups.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of chott@praha1.net Sent: Tuesday, July 28, 2015 2:11 PM To: observium@observium.org Subject: [Observium] Plaining LDAP for login
Hello team,
we are plaining LDAP authentication for Observium.
What happend if LDAP server is not available ?
And can i combine LDAP and MySQL logins? For example LDAP for company Users and MySQL for customers/viewers
Regards, Tomas
[Image removed by sender. email-header-praha1]
Tomas Chott technický ředitel chott@praha1.netmailto:chott@praha1.net Phone: +420 245 004 005 Mobile: +420 604 930 119
Metropolitní síť Praha 1 z.s.p.o. Jindrisska 18 110 00 Praha 1 Czech Republic www.praha1.nethttp://www.praha1.net [Image removed by sender. Popis: Facebook]http://www.facebook.com/praha1net
![](https://secure.gravatar.com/avatar/49aa8a8b3ac1a8e3f5349553be282a12.jpg?s=120&d=mm&r=g)
Dear
We created a separate vhost for mysql (guest) logins and put a switch in the config file to switch between vhost / authentication methods. This way we also have different overview/frontpage layouts depending on which authentication method is used.
if ($_SERVER['SERVER_NAME'] == 'observium.yourdomain.com'){
}elseif ($_SERVER['SERVER_NAME'] == 'observium-guests.yourdomain.com'){
}
You of course cannot control LDAP user permissions while you're logged on the MySQL vhost and vice versa since the administration panel will think you are using the one you are currently logged in to.
This option could of course also be a $_GET parameter (e.g. https://observium.yourdomain.com/?mysql_fallback)
And then have this in your config.php file
If (isset($_GET['mysql_fallback'])){
//ldap auth
}else{
//regular auth
}
We used to use the second method, but recently switched to the other for convenience (you lose the mysql fallback parameter once you enter an invalid user, or press logout and so on, the vhost one seems to work pretty seamless). If your sole reason is to have a fallback I think option 2 still seems like a decent enough option since you will rarely use it.
Kind regards
Stef Renders
Cloud Solutions Engineer
E
mailto:stef.renders@arxus.eu stef.renders@arxus.eu
T
+32 3 450 67 89
http://www.arxus.eu/ www.arxus.eu
P 'Be green, keep it on the screen. Please think before you print this e-mail.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of Damien Burke Sent: Wednesday, July 29, 2015 2:49 AM To: Observium Network Observation System observium@observium.org Subject: Re: [Observium] Plaining LDAP for login
I found LDAP support in observium to be lacking significantly.
A jira-like method of authentication would be appreciated. Specifically the ability to use integrated and external sources for authentication at the same time. As well as permissions based on AD groups.
From: observium [mailto:observium-bounces@observium.org] On Behalf Of chott@praha1.net mailto:chott@praha1.net Sent: Tuesday, July 28, 2015 2:11 PM To: observium@observium.org mailto:observium@observium.org Subject: [Observium] Plaining LDAP for login
Hello team,
we are plaining LDAP authentication for Observium.
What happend if LDAP server is not available ?
And can i combine LDAP and MySQL logins? For example LDAP for company Users and MySQL for customers/viewers
Regards, Tomas
Tomas Chott technický ředitel
chott@praha1.net mailto:chott@praha1.net Phone: +420 245 004 005 Mobile: +420 604 930 119
Metropolitní síť Praha 1 z.s.p.o. Jindrisska 18 110 00 Praha 1 Czech Republic www.praha1.net http://www.praha1.net
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
Using multiple vhosts is a pretty clever solution to this problem!
Perhaps we can formalize per-vhost configuration options somehow.
adam. On 29/07/2015 05:41:31, Stef Renders stef.renders@cronos.be wrote: Dear We created a separate vhost for mysql (guest) logins and put a switch in the config file to switch between vhost / authentication methods. This way we also have different overview/frontpage layouts depending on which authentication method is used. if ($_SERVER['SERVER_NAME'] == ‘observium.yourdomain.com'){ }elseif ($_SERVER['SERVER_NAME'] == ‘observium-guests.yourdomain.com’){ } You of course cannot control LDAP user permissions while you’re logged on the MySQL vhost and vice versa since the administration panel will think you are using the one you are currently logged in to. This option could of course also be a $_GET parameter (e.g. https://observium.yourdomain.com/?mysql_fallback [https://observium.yourdomain.com/?mysql_fallback]) And then have this in your config.php file If (isset($_GET[‘mysql_fallback’])){ //ldap auth }else{ //regular auth } We used to use the second method, but recently switched to the other for convenience (you lose the mysql fallback parameter once you enter an invalid user, or press logout and so on, the vhost one seems to work pretty seamless). If your sole reason is to have a fallback I think option 2 still seems like a decent enough option since you will rarely use it. Kind regards Stef Renders Cloud Solutions Engineer E stef.renders@arxus.eu [mailto:stef.renders@arxus.eu] [cid:image012.jpg@01CECFDD.67D5A5E0] [http://www.arxus.eu/] T +32 3 450 67 89 www.arxus.eu [http://www.arxus.eu/] P 'Be green, keep it on the screen. Please think before you print this e-mail. From: observium [mailto:observium-bounces@observium.org] On Behalf Of Damien Burke Sent: Wednesday, July 29, 2015 2:49 AM To: Observium Network Observation System observium@observium.org Subject: Re: [Observium] Plaining LDAP for login I found LDAP support in observium to be lacking significantly. A jira-like method of authentication would be appreciated. Specifically the ability to use integrated and external sources for authentication at the same time. As well as permissions based on AD groups. From: observium [mailto:observium-bounces@observium.org [mailto:observium-bounces@observium.org]] On Behalf Of chott@praha1.net [mailto:chott@praha1.net] Sent: Tuesday, July 28, 2015 2:11 PM To: observium@observium.org [mailto:observium@observium.org] Subject: [Observium] Plaining LDAP for login Hello team,
we are plaining LDAP authentication for Observium.
What happend if LDAP server is not available ?
And can i combine LDAP and MySQL logins? For example LDAP for company Users and MySQL for customers/viewers
Regards, Tomas [Image removed by sender. email-header-praha1] Tomas Chott technický ředitel chott@praha1.net [mailto:chott@praha1.net] Phone: +420 245 004 005 Mobile: +420 604 930 119 Metropolitní síť Praha 1 z.s.p.o. Jindrisska 18 110 00 Praha 1 Czech Republic www.praha1.net [http://www.praha1.net] [Image removed by sender. Popis: Facebook] [http://www.facebook.com/praha1net]
![](https://secure.gravatar.com/avatar/06aa7c7b7c1aceeb9f755fe9380d301a.jpg?s=120&d=mm&r=g)
RE: "We created a separate vhost for mysql (guest) logins and put a switch in the config file to switch between vhost / authentication methods. This way we also have different overview/frontpage layouts depending on which authentication method is used.
if ($_SERVER['SERVER_NAME'] == ‘observium.yourdomain.com'){
}elseif ($_SERVER['SERVER_NAME'] == ‘observium-guests.yourdomain.com’){
}"
Stef,
Fantastic idea. thank you VM.
just set it up on the test system
thanks
Peter Hine Senior Technical Support Engineer (Servers) FCoA ITS peter.hine@familycourt.gov.au
********************************************************************** The information contained in this e-mail (including any attachments) is for the exclusive use of the addressee. If you are not the intended recipient please notify the sender immediately and delete this e-mail. It is noted that legal privilege is not waived because you have read this e-mail. **********************************************************************
participants (6)
-
Adam Armstrong
-
chott@praha1.net
-
Damien Burke
-
Peter.Hine@familycourt.gov.au
-
Stef Renders
-
Tom Laermans