[asterisk-users] Asterisk and OpenLDAP

Danny Nicholas danny at debsinc.com
Wed Oct 31 08:53:24 CDT 2012


-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Giuseppe Longo
Sent: Wednesday, October 31, 2012 8:47 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Asterisk and OpenLDAP

2012/10/31 Danny Nicholas <danny at debsinc.com>:
> You just need a program(C, PHP, Perl) to query LDAP and update SIP.   The
> example you list requires realtime, but if you "roll your own", you 
> could update /etc/asterisk/sip.conf and issue an 'asterisk -rx "sip 
> reload' to update when needed.
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Giuseppe 
> Longo
> Sent: Wednesday, October 31, 2012 8:33 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [asterisk-users] Asterisk and OpenLDAP
>
> Hello guys,
> i would like to implement authentication for my sip extension with an 
> openldap server.
> Following this guide
> http://www.asteriskdocs.org/en/3rd_Edition/asterisk-book-html-chunk/Ex
> ternal
> Services_id291590.html
> i see a template named [sip] to map the information of sip peers into
ldap.
>
> But i'm not interested to create a template, i would only authenticate 
> sip extensions using username and password stored in ldap database.
>
> How can i configure this mechanism?
>
> Thanks in advice,
> Regards.
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com -- 
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users

Thanks for your help, i've only a question.
How do i configure extensions?

Just create a "peer" for each extension like this:
[sipuser]
type=friend
context=default
host=dynamic
secret=xxxxxx
canreinvite=yes
directrtpsetup=no
call-limit=3
nat=yes
qualify=yes
register=no
session-timers=accept
session-expires=60
session-minse=120
session-refresher=uac
register => sipuser:xxx at xxx/sipuser
defaultip=192.168.23.107
disallow=all
allow=gsm





More information about the asterisk-users mailing list