Asterisk Realtime Lightweight Directory Access Protocol (LDAP) Driver
With this driver Asterisk can retrieve information from an LDAP directory service, including SIP/IAX2 users, extensions and configuration. This guide assumes you have a working knowledge of LDAP and have an LDAP server with authentication already setup.
From within your Asterisk source directory:
Let's edit the extconfig.conf file to specify LDAP as our realtime storage engine and where Asterisk will look for data.
Basic sip users record layout which will need to be saved to a file (we'll use 'createduser.ldif' here as an example). This example record is for sip user '1000'. This example record is for sip user '1000'.
Let's add the record to the LDAP server:
When creating your own record schema, you'll obviously want to incorporate authentication. Asterisk + LDAP requires that the user secrets be stored as an MD5 hash. MD5 hashes can be created using 'md5sum'.