|
Hi TheLastPacket,
I downloaded the asterisk from svn trunk and installed.
my ldap details :
-----------------
dn: uid=mbalakrishnan,ou=People,dc=bksys,dc=co,dc=in
uid: mbalakrishnan
cn: mbalakrishnan
sn: mbalakrishnan
mail: mbalakrishnan [!at] bksys.co.in (replace the [!at] with a @)
objectClass: posixAccount
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: top
objectClass: shadowAccount
loginShell: /bin/bash
gidNumber: 100
homeDirectory: /home/mbalakrishnan
uidNumber: 602
userPassword:: e2NyeXB0fS93QkxDRUg3TjdMV2s=
shadowLastChange: 13866
telephoneNumber: 43902740
The res_ldap.conf as follows,
-----------------------------
[_general]
host=192.168.1.36;
protocol=3 ; Version of the LDAP protocol to use default is 3.
basedn="ou=People,dc=bksys,dc=co,dc=in"
pass=guest
user="uid=guest,ou=People,dc=bksys,dc=co,dc=in"
; Configuration Table
[config]
; addtional filter
additionalFilter=(objectClass=inetOrgPerson) ; oxyPBXConfig)
; Extensions Table
[extensions]
additionalFilter=(objectClass=inetOrgPerson) ; oxyPBXExtension)
; Sip Users Table
[sip1]
attribute = name => uid
attribute = username => telephoneNumber
attribute = md5secret => userPassword
attribute = context => internal
additionalFilter=(objectClass=inetOrgPerson)
extconfig.conf as follows,
--------------------------
sipusers => ldap,"dc=bksys,dc=co,dc=in",sip1
sippeers => ldap,"dc=bksys,dc=co,dc=in",sip1
extensions => ldap,"dc=bksys,dc=co,dc=in",extensions
sip.conf => ldap,"dc=bksys,dc=co,dc=in",config
I restarted the asterisk process, the module got loaded successfully(CLI>module show like ldap). But in the log file(/var/log/asterisk/full) it says the error following error,
[Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: No directory port found, using 389 as default.
[Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: bind failed: Invalid DN syntax
[Mar 13 19:48:38] WARNING[4823] res_config_ldap.c: Couldn't establish connection. Check debug.
---
What should i correct in the res_ldap.conf file?
regards,
bala |