Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: fpausp on October 16, 2008, 07:32:47 PM
-
Hi,
Since the last Firmwareupdate (6.1.3) for the SPA942 it should be possible to use the phone with an ldap corporate directory.
Is anyone using a spa9xx and like to work out an ldap corporate directory on sme ?
regards
fpausp
-
Hi,
Got the LDAP Corporate Directory working, if anyone like to know ?
Best
fpausp
-
please share , I'm interested..
jon
-
OK,
I am not an Linux or LDAP expert but it is working good for me. First you should take a look on that:
https://www.myciscocommunity.com/servlet/JiveServlet/downloadBody/1251-102-2-4033/SPA900_LDAP_CORP_DIR_V11.pdf
I have installed phpldapadmin from http://wiki.contribs.org/Phpldapadmin to be able to make an ldap phonebook.
If you like you can use auto provisioning, go into sail to IP Devices > SPA942 > under provisioning put in the code you need. Tftp-server should be enabled. I show you only the ldap part:
["spa$MAC.cfg"
<flat-profile>
other settings you like
<LDAP_Dir_Enable ua="na"> Yes
</LDAP_Dir_Enable>
<LDAP_Corp_Dir_Name ua="na"> Telefonbuch
</LDAP_Corp_Dir_Name>
<LDAP_Server ua="na"> 192.168.1.246
</LDAP_Server>
<LDAP_Auth_Method ua="na"> None
</LDAP_Auth_Method>
<LDAP_Client_DN ua="na"> dc=yourdomain,dc=lan
</LDAP_Client_DN>
<LDAP_Username ua="na"> user
</LDAP_Username>
<LDAP_Password ua="na"> 1234567
</LDAP_Password>
<LDAP_Search_Base ua="na"> ou=telefonbuch,dc=yourdomain,dc=lan
</LDAP_Search_Base>
<LDAP_Last_Name_Filter ua="na"> sn:(sn=*$VALUE*)
</LDAP_Last_Name_Filter>
<LDAP_First_Name_Filter ua="na"> cn:(cn=*$VALUE*)
</LDAP_First_Name_Filter>
<Search_item_3_Name ua="na">
</Search_item_3_Name>
<Search_item_3_Filter ua="na">
</Search_item_3_Filter>
<Search_Item_4_Name ua="na">
</Search_Item_4_Name>
<Search_Item_4_Filter ua="na">
</Search_Item_4_Filter>
<Display_Name_Attributes ua="na">
</Display_Name_Attributes>
<LDAP_Display_Attrs ua="na"> a=cn;a=sn;a=telephoneNumber,n=Phone,t=p;
</LDAP_Display_Attrs>
<Number_mapping ua="na">
</Number_mapping>
</flat-profile>
]
you can get an overview of the possible provisioning settings when you take a look on your phone:
http://ip-of-you-phone/admin/spacfg.xml
Best
fpausp
-
Hi fpausp,
Is it possible to send me a sample of your .ldif file and slapd.conf ?
I want to compare what I made wrong.
Its look like it connects but I don't have anything on the Phone display.
Because I have tried it with my parameter,but it seems to be no so good :~(
BTW, I used LDAP Browser/Editor 2.8.1 for Win and Unix
http://www.novell.com/coolsolutions/tools/13765.html
If its work, my next step will be to connect LDAP with "Asterisk Phonebook" from
http://www.a-enterprise.ch/content/view/220/111/
Then it will be perfect.
This tool trace all calls with CallerID and name and store it in MySQL.
With LDAP the SPA9x2 will be connected to the Asterisk Phonebook.
Bye and thanks for your help in advance.
-
Hi fp
This is excellent work you have done. Could we have a write-up for the wiki please?
send it to admin@aelintra.com and we'll put it up as a reference page.
Best
S
-
Hi all,
I am very busy at the moment but i will do my best.
My /etc/openldap/slapd.conf:
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/rfc2739.schema
schemacheck off
allow bind_v2
database ldbm
suffix "dc=domain,dc=lan"
directory /var/lib/ldap
rootdn "cn=root,dc=domain,dc=lan"
rootpw password
# Indices to maintain
#index objectClass eq
index objectClass,uid,uidNumber,gidNumber eq
index cn,mail,surname,givenname eq,subinitial
I also have installed the openldap-clients package but i think you do not need it when you use the Phpldapadmin.
More in a few days.
Regards
fpausp