diff options
author | Aleksander Machniak <machniak@kolabsys.com> | 2014-02-27 15:28:44 +0100 |
---|---|---|
committer | Aleksander Machniak <machniak@kolabsys.com> | 2014-02-27 15:28:44 +0100 |
commit | 8e09ba6962f63bfcb0dcd6eee92250b352bec895 (patch) | |
tree | 013b0de7f3387d7d944ce511b4a51d258b2eb69a /lib/Auth/LDAP.php | |
parent | 4a55f2c1d856a3e7d44ab03d31ceca7bee86afda (diff) | |
download | webadmin-8e09ba6962f63bfcb0dcd6eee92250b352bec895.tar.gz |
Return ID also in domain.add response
Diffstat (limited to 'lib/Auth/LDAP.php')
-rw-r--r-- | lib/Auth/LDAP.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php index 898a60d..25bef97 100644 --- a/lib/Auth/LDAP.php +++ b/lib/Auth/LDAP.php @@ -178,9 +178,9 @@ class LDAP extends Net_LDAP3 { array_unshift($attributes[$domain_name_attribute], $domain); } - $dn = $domain_name_attribute . '=' . $domain . ',' . $domain_base_dn; + $domain_dn = $domain_name_attribute . '=' . $domain . ',' . $domain_base_dn; - $result = $this->add_entry($dn, $attributes); + $result = $this->add_entry($domain_dn, $attributes); if (!$result) { return false; @@ -369,7 +369,7 @@ class LDAP extends Net_LDAP3 { $this->add_entry($dn, $attrs); } - return true; + return $domain_dn; } public function domain_edit($domain, $attributes, $typeid = null) |