VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
faraz.khan at emergen.biz Guest
|
Posted: Thu Mar 06, 2008 3:06 am Post subject: [asterisk-users] LDAP |
|
|
Please check:
http://bugs.digium.com/view.php?id=12112
which we had to fix ourselves. There are still problems using:
1. patterns in extensions
2. queue members
3. sip.conf, iax.conf, voicemail,etc should all work fine. Note the
schema include with the distribution is invalid for the supplied
res_ldap.conf. You will have to fix the schema yourself or modify
res_ldap.conf to match your schema.
the multi_ldap function in res_config_ldap.c is flawed. Any call to
this function will result in no matches being returned.
Quoting Gonzalo Servat <gservat at gmail.com>:
Quote: | Hi again
I've downloaded, compiled & installed 1.6.0-beta4 --with-ldap. After a few
hours of messing with it, I've managed to get it to say that it has
connected successfully to the LDAP backend (by looking at the output of
"realtime ldap status").
I've modified extconfig.conf to what it should be (after reading many
different configs on the subject). The trouble I'm having now is actually
authenticating with a SIP user. I am running slapd in debug mode (slapd -d
4095) and I would have expected to see lots of activity on the console when
I attempt to authenticate as a SIP user, but I see none at all. Is this
normal?
Thanks!
Regards,
Gonzalo
On Thu, Mar 6, 2008 at 12:37 AM, Gonzalo Servat <gservat at gmail.com> wrote:
Quote: | Hi All,
I've just compiled Asterisk 1.4.18 and I'm planning on using an LDAP tree
where the users will each have their account, SIP username/password,
extension number, context, etc. My first question is: can this be done with
1.4.x? If so, where can I get the res_config_ldap from??
I googled quite a bit and found a res_config_ldap that looks to be coded
for 1.2. Is anyone running Asterisk with LDAP? Is it stable?
Thanks in advance.
Regards,
Gonzalo
|
|
--
Faraz R Khan
Chief Architect
Emergen Consulting Pvt Ltd
www.emergen.biz |
|
Back to top |
|
|
faraz.khan at emergen.biz Guest
|
Posted: Fri Mar 07, 2008 2:50 am Post subject: [asterisk-users] LDAP |
|
|
Gonzalo,
Please let us know what you mean by 'stops working' - it should spit
out errors or wrong queries to ldap.
Also please keep this list in your replies. I have no problems
answering personal emails but both of us might get more feedback if we
post our progress on the list!
Quoting Gonzalo Servat <gservat at gmail.com>:
Quote: | Hi again
I've downloaded, compiled & installed 1.6.0-beta4 --with-ldap. After a few
hours of messing with it, I've managed to get it to say that it has
connected successfully to the LDAP backend (by looking at the output of
"realtime ldap status").
I've modified extconfig.conf to what it should be (after reading many
different configs on the subject). The trouble I'm having now is actually
authenticating with a SIP user. I am running slapd in debug mode (slapd -d
4095) and I would have expected to see lots of activity on the console when
I attempt to authenticate as a SIP user, but I see none at all. Is this
normal?
Thanks!
Regards,
Gonzalo
On Thu, Mar 6, 2008 at 12:37 AM, Gonzalo Servat <gservat at gmail.com> wrote:
Quote: | Hi All,
I've just compiled Asterisk 1.4.18 and I'm planning on using an LDAP tree
where the users will each have their account, SIP username/password,
extension number, context, etc. My first question is: can this be done with
1.4.x? If so, where can I get the res_config_ldap from??
I googled quite a bit and found a res_config_ldap that looks to be coded
for 1.2. Is anyone running Asterisk with LDAP? Is it stable?
Thanks in advance.
Regards,
Gonzalo
|
|
--
Faraz R Khan
Chief Architect
Emergen Consulting Pvt Ltd
www.emergen.biz |
|
Back to top |
|
|
gservat at gmail.com Guest
|
Posted: Fri Mar 07, 2008 5:46 am Post subject: [asterisk-users] LDAP |
|
|
On Fri, Mar 7, 2008 at 5:50 AM, Faraz Khan <faraz.khan at emergen.biz> wrote:
Quote: | Gonzalo,
Please let us know what you mean by 'stops working' - it should spit
out errors or wrong queries to ldap.
|
Basically what I mean by that is that in the slapd debug, no activity was
going on when I tried to authenticate from a SIP client. After restaring
Asterisk a few times, it magically started working again.
It's not really concerning me as it hasn't done it since. I also filed a bug
in regards to the userPassword issue:
http://bugs.digium.com/view.php?id=12163
Quote: | Also please keep this list in your replies. I have no problems
answering personal emails but both of us might get more feedback if we
post our progress on the list!
|
Absolutely. Replying to you off-list was unintentional.
Best regards,
Gonzalo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080307/aeba3171/attachment.htm |
|
Back to top |
|
|
faraz.khan at emergen.biz Guest
|
Posted: Fri Mar 07, 2008 6:52 am Post subject: [asterisk-users] LDAP |
|
|
It does work. Did you do the switch statement in extensions.conf?
If not check voip-info for "Asterisk Realtime Extensions"
Quoting Gonzalo Servat <gservat at gmail.com>:
Quote: | On Fri, Mar 7, 2008 at 8:46 AM, Gonzalo Servat <gservat at gmail.com> wrote:
Quote: | On Fri, Mar 7, 2008 at 5:50 AM, Faraz Khan <faraz.khan at emergen.biz> wrote:
|
Quote: | Also please keep this list in your replies. I have no problems
Quote: | answering personal emails but both of us might get more feedback if we
post our progress on the list!
|
| Faraz,
I just noticed on the bounty you posted up that you mentioned that simple
extensions work fine. I can't even get this to work! I've added:
extensions => ldap,"dc=argentina,dc=hrsmart,dc=com",extensions
.. to extconfig.conf and:
; Extensions Table
[extensions]
context = AstContext
exten = AstExtension
priority = AstPriority
app = AstApplication
appdata = AstApplicationData
additionalFilter=(objectClass=AsteriskExtension)
... to res_ldap.conf and created a user of type AsteriskExtension, set the
context, etc. When I dial the extension defined in AstExtension, it doesn't
attempt a lookup on LDAP at all. Any ideas?
Best regards,
Gonzalo
|
--
Faraz R Khan
Chief Architect
Emergen Consulting Pvt Ltd
www.emergen.biz |
|
Back to top |
|
|
faraz.khan at emergen.biz Guest
|
Posted: Sun Mar 16, 2008 2:26 am Post subject: [asterisk-users] LDAP |
|
|
What about pattern matching / QueueMembers? Does that work for you? If
it does please let me know since I might be doing something wrong
Regarding password/email - that IS the part that goes into LDAP
(password, email,options). If that doesnt work there is no point to
using LDAP Voicemail
You need to define your own schema and mappings in res_ldap.conf. Its
just a parameter to parameter map.
Voicemail global options you cannot do (you can with Static realtime
ldap- but thats ugly)
Quoting Gonzalo Servat <gservat at gmail.com>:
Quote: | On Fri, Mar 7, 2008 at 9:52 AM, Faraz Khan <faraz.khan at emergen.biz> wrote:
Quote: | It does work. Did you do the switch statement in extensions.conf?
If not check voip-info for "Asterisk Realtime Extensions"
|
Hi Faraz,
I just realised I never replied to this message. Yes, you were right. I
simply had to add "switch" to the right context and it worked smoothly.
I've actually managed to get it setup the way I want it (I'm going to write
a HOWTO when I get a few minutes on how I did it, for the next person). I
just managed to get VoiceMailMain() and Voicemail() to work straight from
LDAP which is way-cool. I was wondering if you know (or if it's even
possible) to set the different voicemail settings that one can normally set
in voicemail.conf into LDAP (I'm talking about things like the user's
voicemail password, email address for sending voicemails and the last column
that specifies the different voicemail switches).
Thanks very much again for your help!!
Best regards
Gonzalo
|
--
Faraz R Khan
Chief Architect
Emergen Consulting Pvt Ltd
www.emergen.biz |
|
Back to top |
|
|
faraz.khan at emergen.biz Guest
|
Posted: Mon Mar 17, 2008 10:33 am Post subject: [asterisk-users] LDAP |
|
|
A Complete Howto (with sample files) has been uploaded and can be
accessed from Here:
http://www.voip-info.org/wiki/view/LDAP
Quoting Faraz Khan <faraz.khan at emergen.biz>:
Quote: | What about pattern matching / QueueMembers? Does that work for you? If
it does please let me know since I might be doing something wrong
Regarding password/email - that IS the part that goes into LDAP
(password, email,options). If that doesnt work there is no point to
using LDAP Voicemail
You need to define your own schema and mappings in res_ldap.conf. Its
just a parameter to parameter map.
Voicemail global options you cannot do (you can with Static realtime
ldap- but thats ugly)
Quoting Gonzalo Servat <gservat at gmail.com>:
Quote: | On Fri, Mar 7, 2008 at 9:52 AM, Faraz Khan <faraz.khan at emergen.biz> wrote:
Quote: | It does work. Did you do the switch statement in extensions.conf?
If not check voip-info for "Asterisk Realtime Extensions"
|
Hi Faraz,
I just realised I never replied to this message. Yes, you were right. I
simply had to add "switch" to the right context and it worked smoothly.
I've actually managed to get it setup the way I want it (I'm going to write
a HOWTO when I get a few minutes on how I did it, for the next person). I
just managed to get VoiceMailMain() and Voicemail() to work straight from
LDAP which is way-cool. I was wondering if you know (or if it's even
possible) to set the different voicemail settings that one can normally set
in voicemail.conf into LDAP (I'm talking about things like the user's
voicemail password, email address for sending voicemails and the last column
that specifies the different voicemail switches).
Thanks very much again for your help!!
Best regards
Gonzalo
|
--
Faraz R Khan
Chief Architect
Emergen Consulting Pvt Ltd
www.emergen.biz
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
--
Faraz R Khan
Chief Architect
Emergen Consulting Pvt Ltd
www.emergen.biz |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|