Upgrade 3CX to v18 and get it hosted free!

Asterisk config ldap.conf

Author image

ldap.conf – config file for LDAPget

[section-name]
host = <hostname> ; default: localhost
port = <port> ; default: 389
user = <user dn> ; default: anonymous bind
pass = <password>
base = <base dn>
scope = <sub | base | one> ; default: sub
filter = <ldap filter pattern> ; default: (&(objectClass=person)(telephoneNumber=%s))
attribute = <ldap attribute> ; default: commonName
convert = <source charset>,<destination charset>

Example

[cidname]
host = samplehost
user = cn=root,ou=People,o=sampledomain
pass = secret
base = ou=Addressbooks,o=sampledomain
filter = (&(objectClass=person)(|(telephoneNumber=%s)(mobile=%s)(fax=%s)))
attribute = displayName
convert = UTF-8, ISO-8859-1

corresponding part in extensions.conf:

exten => 1234,1,LDAPget(CIDNAME=cidname/${CALLERIDNUM},${CALLERIDNUM},${CALLERIDNUM}) ; for telefon, mobile and fax
exten => 1234,2,SetCIDName(${CIDNAME})
exten => 1234,3,Dial(Zap/11/${EXTEN},15)

See also


Go back to Asterisk

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.