Hi,<br><br>I've recently come across LDAPget (version 2.0rc1) and I've been trying to get it functional in my test environment (Asterisk 1.4.15 and MS Active Directory 2003) but I can't seem to get it working.<br>
<br>I put together a test extension to try to change the CALLERID(name) by way of a LDAP query to AD:<br><br>extensions.conf<br><br>exten => 100,1,Answer()<br>exten => 100,n,LDAPget(CALLERID(name)=cidname)<br>exten => 100,n,SayPhonetic(${CALLERID(name)})
<br>exten => 100,n,Hangup()<br><br>ldap.conf<br><br>[cidname]<br>host = dc1.test.domain.lan<br>version = 3<br>user = cn=asterisk,ou=services,dc=test,dc=domain,dc=lan<br>pass = xxxxxxx<br>base = ou=Addressbook,o=test.domain.lan
<br>filter = (&(objectClass=person)(|(telephoneNumber=${CALLERID(num)})))<br><br><br>Whenever this is tested, the following is output on the Asterisk console:<br><br>[Dec 16 02:24:04] WARNING[5258]: app_ldap.c:266 ldap_lookup: LDAPget: search failed: Operations error
<br><br>I'm the first to admit I'm not an LDAP or a MS guy, so if my query is wrong I'll happily slink away. It does run in AD at least, and I'm certain authentication is working correctly. I've checked to make sure both my CALLERID(num) and LDAP telephoneNumber match exactly as well.
<br><br>Is anyone doing something similar? Am I missing something?<br><br><br>