diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2014-02-27 14:17:01 +0100 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2014-02-27 14:17:01 +0100 |
commit | 4a55f2c1d856a3e7d44ab03d31ceca7bee86afda (patch) | |
tree | a88b0279c6283d17a831036b604a986b4d6f657d /lib/Auth/LDAP.php | |
parent | 52e47e63d2c46206dff28a3d1cec782f0d5b1f23 (diff) | |
download | webadmin-4a55f2c1d856a3e7d44ab03d31ceca7bee86afda.tar.gz |
Return ID (unique attribute) after adding an object (Request #2829)
Diffstat (limited to 'lib/Auth/LDAP.php')
-rw-r--r-- | lib/Auth/LDAP.php | 6 |
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; } /** |