Asterisk Realtime Lightweight Directory Access Protocol (LDAP) Driver
With this driver Asterisk can access and update information in an LDAP directory. Asterisk can configure SIP/IAX2 users, extensions, queues, queue members, and entire configuration files. This guide assumes you have a working knowledge of LDAP and have an LDAP server with authentication already setup. Asterisk requires read and write permissions to update the directory.
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'.
For AstAccountRealmedPassword authentication use this.
For AstMD5secret authentication use this.