summaryrefslogtreecommitdiffstats
path: root/lib/Auth
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-02-27 14:17:01 +0100
committerAleksander Machniak <machniak@kolabsys.com>2014-02-27 14:17:01 +0100
commit4a55f2c1d856a3e7d44ab03d31ceca7bee86afda (patch)
treea88b0279c6283d17a831036b604a986b4d6f657d /lib/Auth
parent52e47e63d2c46206dff28a3d1cec782f0d5b1f23 (diff)
downloadwebadmin-4a55f2c1d856a3e7d44ab03d31ceca7bee86afda.tar.gz
Return ID (unique attribute) after adding an object (Request #2829)
Diffstat (limited to 'lib/Auth')
-rw-r--r--lib/Auth/LDAP.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index 5e708cd..898a60d 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -1123,7 +1123,11 @@ class LDAP extends Net_LDAP3 {
{
$this->bind($_SESSION['user']->user_bind_dn, $_SESSION['user']->user_bind_pw);
- return $this->add_entry($entry_dn, $attrs);
+ if ($this->add_entry($entry_dn, $attrs)) {
+ return $entry_dn;
+ }
+
+ return false;
}
/**