<div dir="ltr">Try <br><br>src/mod/directories/mod_ldap/mod_ldap.c<br><br>and<br><br>src/mod/xml_int/mod_xml_ldap/mod_xml_ldap.c<br><br>This is the code that makes it possible.<br><br>John Skopis <<a href="mailto:john%2Bfs@skopis.com">john+fs@skopis.com</a>><br>
<br>is the guy who was working on it.<br><br><br><br><div class="gmail_quote">On Thu, Sep 25, 2008 at 8:50 AM, Adrian Gschwend <span dir="ltr"><<a href="mailto:ktk@netlabs.org" target="_blank">ktk@netlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Hi group,<br>
<br>
I know this topic comes up every few months so sorry for bringing it up<br>
again ;)<br>
<br>
I use FreeSWITCH for our open source project for quite some time now and<br>
we are very happy with it. To manage users I just use LDAP and every<br>
application (Wiki, TRAC, Apache, XMPP...) is connecting to the directory<br>
for users & authentication. So I would like to do the same for FreeSWITCH.<br>
<br>
Googling a bit around I found some old postings on this mailinglist,<br>
namely the one from Anthony where he explains a bit about mod_ldap:<br>
<br>
<a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2008-May/003382.html" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2008-May/003382.html</a><br>
<br>
Quoting that mail:<br>
<br>
"Now also in mod_ldap, there is some code someone recently contributed<br>
to tie our XML interface to LDAP,<br>
This is more interesting because then when anything in FreeSWITCH tries<br>
to lookup a user, dialplan entry or anything else in our XML config, all<br>
the important details are passed to LDAP where it can make a query, pull<br>
the info out of LDAP and deliver it back to FreeSWITCH as the XML it was<br>
looking for. This allows you to make all of the registrations, dialplan<br>
etc real time driven by LDAP, you can also bind a perl or lua script to<br>
this operation as well as mod_xml_curl who will turn the request into an<br>
HTTP post to a web server to fetch the data."<br>
<br>
That's basically what I need. My idea is to not create an XML file for<br>
every user but to tell (in an XML file I guess) that the phone numbers,<br>
username & password can be found in a directory.<br>
<br>
I do have quite some experience in LDAP debugging and I can code a bit<br>
as long as I don't have to mess with pointers ;) So where should I study<br>
some code to figure out how that works exactly? I promise to document it<br>
once I got it to work as I think more people want to have that feature<br>
as well.<br>
<br>
thanks<br>
<br>
Adrian<br>
<br>
- --<br>
Adrian Gschwend<br>
@ <a href="http://netlabs.org" target="_blank">netlabs.org</a><br>
<br>
ktk [a t] <a href="http://netlabs.org" target="_blank">netlabs.org</a><br>
- -------<br>
Open Source Project<br>
<a href="http://www.netlabs.org" target="_blank">http://www.netlabs.org</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iD8DBQFI25cbqpMUYrZbQBERAuAgAJ0bFoa7HHCqDB/+ORStts/4GcGnngCeIt8o<br>
No7BU937l+OOkWiT/qzRhjE=<br>
=np/p<br>
-----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>