Hi everybody, I would like to use realtime authentification with my LDAP. My Asterisk is v. 1.6.1.12. I'm using OpenLDAP The command realtime ldap status is OK. I have configure these files : /etc/asterisk/extconfig /etc/asterisk/res_ldap.conf /etc/asterisk/extensions.ael I do nothing and I have that in my console : [Jan 21 10:41:48] WARNING[30020]: res_config_ldap.c:809 realtime_ldap_base_ap: Failed to query database. Check debug for more info. [Jan 21 10:41:48] WARNING[30020]: res_config_ldap.c:810 realtime_ldap_base_ap: Query: (&(uid=)(ldapauth.toto.com=dynamic)) [Jan 21 10:41:48] WARNING[30020]: res_config_ldap.c:811 realtime_ldap_base_ap: Query Failed because: Bad search filter Did I have to configure LDAP schema ? For example when I did a ldapsearch from my server my response is like that : dn: uid=toto,ou=PersonToto,o=toto,c=com objectClass: inetOrgPerson objectClass: top objectClass: person objectClass: organizationalPerson objectClass: posixAccount objectClass: totoPerson objectClass: rolodapUser objectClass: sambaSamAccount uid: toto sn: toto givenName: tati personidsite: 26 cn: tati toto gidNumber: 1000 uidNumber: 8019 alias: tati.toto at toto.com mail: ttoto at toto.com userPassword:: e2NyeXB0fSQxJGl2TmhQTFdiJG9uWE9tcRTGDGDGtttdgGViLz A Did I miss something ? Thanks for your help. Best Regards -- John -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100121/5f6ac079/attachment.htm
>Hi everybody, > >I would like to use realtime authentification with my LDAP..... It depends on what you are doing with LDAP. There is an LDAP realtime engine for SIP/IAX peers, voicemail users, asterisk configurations and extensions with a sample ldif included with the distro, although I recommend using the one from the trunk at this point. The included ldif is for OpenLDAP. These links can help you get started, but DO NOT use the schema listed within as is, as they are not up to date. http://www.flyn.org/astldap/ http://magazine.redhat.com/2008/07/24/open-source-telephony-a-fedora-based-voip-server-with-asterisk/ I would pull the schema from here: http://svnview.digium.com/svn/asterisk/branches/1.6.1/contrib/scripts/ I hope that this helps get you started. Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100121/db0451cb/attachment.htm