From 90d946f149abc57899b4e875e8eedd3b1e66fb38 Mon Sep 17 00:00:00 2001
From: Johannes Meyer <johannes.meyer@netways.de>
Date: Wed, 3 Jun 2015 16:40:14 +0200
Subject: [PATCH] LdapUserGroupBackend: We need a datasource, actually

Forgot to add this when disabling LdapRepository inheritance...

refs #7343
---
 .../UserGroup/LdapUserGroupBackend.php          | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php b/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php
index 1873cdc8e..718006fea 100644
--- a/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php
+++ b/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php
@@ -99,6 +99,23 @@ class LdapUserGroupBackend /*extends LdapRepository*/ implements UserGroupBacken
      */
     protected $name;
 
+    /**
+     * The datasource being used
+     *
+     * @var Connection
+     */
+    protected $ds;
+
+    /**
+     * Create a new LDAP repository object
+     *
+     * @param   Connection  $ds     The data source to use
+     */
+    public function __construct($ds)
+    {
+        $this->ds = $ds;
+    }
+
     /**
      * Return the given attribute name normed to known LDAP enviroments, if possible
      *