Specifications
Aastra July 2014 PA-001011-03-04
316
The message flow is given by the diagram below:
Figure 103: LDAP directory message flow
The directory application allows the user to perform a lookup based on
The first letters of the first name AND last name
(at least 3) Letters anywhere in the complete name
The source code is provided in the XML SDK as a zip file called ldap_directory_3.3.1.zip
Note: the source code is not supported by Aastra, it is provided only as an example.
18.2 Installation
The provided scripts must be extracted under the ROOT directory of the HTTP server in a
‘xml’directory, a cache directory (default /var/cache/aastra) must also be created with read/write
access for the HTTP server user.
The cache directory can be configured in config/server.conf, see chapter 18.5.1 for more details.
The Web server must support PHP 5.x or higher and the PHP LDAP extension must be available in
PHP. Typically, Apache Web server is used. Apache runs on most operating systems.
Windows platforms
To enable the PHP LDAP extension, this line must be inserted into php.ini:
extension=php_ldap.dll
Linux platforms
Just install the php-ldap package (via yum or via rpm)
To check whether PHP 5.x (or higher) and the PHP LDAP extensions are properly installed, create
a PHP script with the following content and save it under the Web server's root directory:
<?php phpinfo(); ?>
Then point your Web browser to this script. Check the PHP version and make sure there is a
section "ldap" with a table containing the key "LDAP Support" and corresponding value "enabled"