Asterisk config ldap.conf

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

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

Created by: szunny, Last modification: Sun 05 of Jun, 2005 (21:30 UTC) by JustRumours
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+