SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
balasamOffline



Joined: Feb 27, 2008
Posts: 15

Status: Offline
Posted: Mar 03, 2008 - 04:50 PM Reply with quote Back to top
I had been trying for past one weeks to load the module res_config_ldap.so. I got some tar ball like res_config_ldap.tgz from the net ,after extracting i copied the file res_config_ldap.c into the directory /usr/src/asterisk-1.4.17/res/. Then i reinstalled the asterisk by giving the "make" and "make install" command. During make , it said some errors and i corrected that by commented out some lines in the res_config_ldap.c.

After i loaded the asterisk, the module res_config_ldap.so has not been loaded.I edited the modules.conf to load this. But then also no useful result.

Note : The file res_config_ldap.so is available in the /usr/lib/asterisk/modules/ directory.

Could you please point me to right direction?


regards,
bala
View user's profile Send private message
thelostpacketOffline



Joined: Aug 08, 2007
Posts: 12

Status: Offline
Posted: Mar 04, 2008 - 03:21 AM Reply with quote Back to top
Hello add debug to the end of your console => list in logger.conf.
cli>
logger reload
core set debug 9
module load res_config_ldap.so

Paste the errors here and we can go from there.

I looked at an earlier post of yours. I'm going to bet you are missing a shared library somewhere. Likely something that was commented out to get it to build. I've run into that error before when this was the case.

Thanks
TheLostPacket
View user's profile Send private message
balasamOffline



Joined: Feb 27, 2008
Posts: 15

Status: Offline
Posted: Mar 04, 2008 - 04:04 PM Reply with quote Back to top
Hi TheLostPacket,
Thanks for your reply.I have did as per your instruction given. In the console i was not getting any message after running the following(i edited the logger.conf),
CLI> core set debug 9
CLI> module load res_config_ldap.so
Then also res_config_ldap.so module is not loaded.The /var/log/asterisk/message file contains the following warning message,
[Mar 4 19:16:29] WARNING[18850] config.c: Realtime mapping for 'sippeers' found to engine 'ldap', but the engine is not ava
ilable
View user's profile Send private message
thelostpacketOffline



Joined: Aug 08, 2007
Posts: 12

Status: Offline
Posted: Mar 05, 2008 - 01:08 AM Reply with quote Back to top
Hello,
This is just a guess but I'd have to say you disabled something you shouldn't have when you built the module. Asterisk is telling you ldap is not available. You should be able to compile it without editing anything in res_config_ldap.c

Thanks
-TheLostPacket
View user's profile Send private message
balasamOffline



Joined: Feb 27, 2008
Posts: 15

Status: Offline
Posted: Mar 14, 2008 - 04:00 PM Reply with quote Back to top
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
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2006 VoIP User.

No part of this site may be reproduced without our prior consent.