Hi,
can anyone help me integrate LDAP and asterisk, im using asterisk 1.4.2.
ive read that i need app_ldap module in asterisk, for me to use ldapget() application. problem is i cant compile th app_ldap.
i downloaded the app_ldap here :: mezzo.net/asterisk/app_ldap.html
igot app_ldap version 2.0
and when i compile it::
[quote]gcc -g -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC -DCHANNEL_HAS_CID -DNEW_CONFIG -c -o app_ldap.o app_ldap.c
app_ldap.c:33:18: error: ldap.h: No such file or directory
app_ldap.c: In function ‘ldap_exec’:
app_ldap.c:65: error: ‘LDAP_PORT’ undeclared (first use in this function)
app_ldap.c:65: error: (Each undeclared identifier is reported only once
app_ldap.c:65: error: for each function it appears in.)
app_ldap.c:65: error: ‘LDAP_VERSION2’ undeclared (first use in this function)
app_ldap.c: In function ‘ldap_lookup’:
app_ldap.c:228: error: ‘LDAP’ undeclared (first use in this function)
app_ldap.c:228: error: ‘ld’ undeclared (first use in this function)
app_ldap.c:229: error: ‘LDAPMessage’ undeclared (first use in this function)
app_ldap.c:229: error: ‘res’ undeclared (first use in this function)
app_ldap.c:229: error: ‘entry’ undeclared (first use in this function)
app_ldap.c:229: warning: left-hand operand of comma expression has no effect
app_ldap.c:230: error: ‘LDAP_SCOPE_SUBTREE’ undeclared (first use in this function)
app_ldap.c:232: warning: implicit declaration of function 'ldap_init’
app_ldap.c:238: warning: implicit declaration of function 'ldap_set_option’
app_ldap.c:238: error: ‘LDAP_OPT_TIMELIMIT’ undeclared (first use in this function)
app_ldap.c:239: error: ‘LDAP_OPT_PROTOCOL_VERSION’ undeclared (first use in this function)
app_ldap.c:244: warning: implicit declaration of function 'ldap_simple_bind_s’
app_ldap.c:251: warning: implicit declaration of function 'ldap_err2string’
app_ldap.c:251: warning: format ‘%s’ expects type ‘char *’, but argument 6 has type 'int’
app_ldap.c:252: warning: implicit declaration of function 'ldap_unbind’
app_ldap.c:259: error: ‘LDAP_SCOPE_BASE’ undeclared (first use in this function)
app_ldap.c:261: error: ‘LDAP_SCOPE_ONELEVEL’ undeclared (first use in this function)
app_ldap.c:264: warning: implicit declaration of function 'ldap_search_s’
app_ldap.c:266: warning: format ‘%s’ expects type ‘char *’, but argument 6 has type 'int’
app_ldap.c:269: warning: implicit declaration of function 'ldap_msgfree’
app_ldap.c:274: warning: implicit declaration of function 'ldap_first_entry’
app_ldap.c:283: warning: implicit declaration of function 'ldap_get_values’
app_ldap.c:283: warning: assignment makes pointer from integer without a cast
app_ldap.c:297: warning: implicit declaration of function 'ldap_value_free’
app_ldap.c:300: warning: implicit declaration of function 'ldap_unbind_s’
make: *** [app_ldap.o] Error 1
[/quote]
thanks in advance