summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-03 15:55:02 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-09-03 15:55:02 +0100
commit1c7e3b13cc6b4d2a8331b2c71778733d59ecb69d (patch)
tree36089bdddd967c8adbb0b7193dc9d607c8958109
parent50abe6a1f61f368c63aa84c7283b3cfa447c81e9 (diff)
downloadwebadmin-1c7e3b13cc6b4d2a8331b2c71778733d59ecb69d.tar.gz
Make sure we are bound to LDAP when adding a user
-rw-r--r--lib/Auth/LDAP.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 33214e5..c2940df 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -740,6 +740,7 @@ class LDAP extends Net_LDAP3 {
}
public function user_add($attrs, $typeid = null) {
+ $this->bind($_SESSION['user']->user_bind_dn, $_SESSION['user']->user_bind_pw);
if ($typeid == null) {
$type_str = 'user';
}