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
- Asterisk cmd LDAPget
- LDAP
- Asterisk LDAP – a totally different, unrelated approach
- Authenticate_LDAP
Go back to Asterisk