| | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2006-2012, The Roundcube Dev Team | |
| | | | Copyright (C) 2011, Kolab Systems AG | |
| | | | Copyright (C) 2011-2012, Kolab Systems AG | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | |
| | | /** |
| | | * Model class to access an LDAP address directory |
| | | * |
| | | * @package Addressbook |
| | | * @package Framework |
| | | * @subpackage Addressbook |
| | | */ |
| | | class rcube_ldap extends rcube_addressbook |
| | | { |
| | |
| | | } |
| | | |
| | | // make sure LDAP_rdn field is required |
| | | if (!empty($this->prop['LDAP_rdn']) && !in_array($this->prop['LDAP_rdn'], $this->prop['required_fields']) && !in_array($this->prop['LDAP_rdn'], array_keys($this->prop['autovalues']))) { |
| | | if (!empty($this->prop['LDAP_rdn']) && !in_array($this->prop['LDAP_rdn'], $this->prop['required_fields']) |
| | | && !in_array($this->prop['LDAP_rdn'], array_keys((array)$this->prop['autovalues']))) { |
| | | $this->prop['required_fields'][] = $this->prop['LDAP_rdn']; |
| | | } |
| | | |