Provisioning Ldap

Status
Not open for further replies.

glennbtn

Member
Aug 7, 2018
72
3
8
53
Hi All

Need to provision LDAP on a polycom vvx400. Does anyone have an example of what needs to be put where for this to provision. The LDAP server is an existing one we use on Snom and Yealink so know that side works fine
 

JamesBorne

Active Member
Jan 24, 2019
294
57
28
Australia
I have successfully provisioned a VVX400 with LDAP via TFTP (many many years ago) and not via Fusion.

Only way I can help is by saying I had the line:
Code:
 <APPLICATION APP_FILE_PATH= "Firmware/sip.ld" CONFIG_FILES= "...,Config/LDAP.cfg,..."

And my LDAP.cfg file looked like this:
Code:
<dir>
     <dir.corp
         dir.corp.address="ipa.ddr.ess" 
         dir.corp.port="389" 
         dir.corp.transport="TCP" 
         dir.corp.baseDN="ou=Users,ou=xxx,dc=xxx,dc=internal" 
         dir.corp.scope="sub" 
         dir.corp.filterPrefix="(sn=*)" 
         dir.corp.user="xxx@xxx"
         dir.corp.pageSize="32" 
         dir.corp.password="xxxx"
         dir.corp.cacheSize="128" 
         dir.corp.leg.pageSize="8"
         dir.corp.leg.cacheSize="32"
         dir.corp.autoQuerySubmitTimeout="1" 
         dir.corp.viewPersistence="0">
         dir.corp.leg.viewPersistence="0">
         dir.corp.sortControl="0" 
         <dir.corp.attribute
            dir.corp.attribute.1.filter="(sn=%)"
            dir.corp.attribute.1.label="Last Name"
            dir.corp.attribute.1.name="sn"
            dir.corp.attribute.1.sticky="0"
            dir.corp.attribute.1.searchable="1"
            dir.corp.attribute.1.type="last_name"
            dir.corp.attribute.2.filter=""
            dir.corp.attribute.2.label="Telefono"
            dir.corp.attribute.2.name="telephoneNumber"
            dir.corp.attribute.2.sticky="0"
            dir.corp.attribute.2.type="phone_number"
            dir.corp.attribute.2.searchable="1"
         </dir.corp.attribute>
         <dir.corp.backGroundSync
             dir.corp.backGroundSync.period="3600">
         </dir.corp.backGroundSync>
        <dir.corp.vlv
             dir.corp.vlv.allow="0" 
             dir.corp.vlv.sortOrder="sn givenName telephoneNumber">
         </dir.corp.vlv>
    </dir.corp>
 </dir>

Hopefully that helps.
Good luck!
 

ad5ou

Active Member
Jun 12, 2018
892
204
43
I haven’t messed with ldap, but all of the stuff James posted should be compatible with the existing templates.
Copy the template directory for version you are using, change name to something different such as 5.x-custom then add your changes to the copied template.

This way you can test things without complications for upgrades
 
  • Like
Reactions: JamesBorne

glennbtn

Member
Aug 7, 2018
72
3
8
53
Thanks Guys

Still can't seem to get it working. Had no problem on Snom and Yealink but finding information and documentation for Polycom limited and quite unhelpful. Also the fact you can't do anything like this via the gui does not help with quick changes and testing. This is what I see with ref the ldap search in the logs that I have put in to debug

0123162230|ldap |1|00|ldapQueryNoSort::setQLimits:1::<UP> m_curSubset=<0/1>
0123162230|ldap |1|00|ldapEntry::show:setQLimits 1::top <0>
0123162230|ldap |1|00|ldapEntry::show:setQLimits 1::bot <zz>
0123162245|ldap |1|00|ldapQueryNoSort::setQLimits:1::<UP> m_curSubset=<0/1>
0123162245|ldap |1|00|ldapEntry::show:setQLimits 1::top <0>
0123162245|ldap |1|00|ldapEntry::show:setQLimits 1::bot <zz>
0123162245|ldap |1|00|ldapQueryNoSort::assmCondition:...1
0123162245|ldap |1|00|ldapQueryNoSort::fillQuery:qDepth=<1> same=<0> incl=<Yes>
0123162245|ldap |1|00|ldapEntry::show:fillQuery::prevTop <0>
0123162245|ldap |1|00|ldapEntry::show:fillQuery::prevBot <zz>
0123162245|ldap |1|00|ldapEntry::show:fillQuery::top <>
0123162245|ldap |1|00|ldapEntry::show:fillQuery::bot <>
0123162245|ldap |1|00|ldapQueryNoSort::isQueryValid:status=<1> top=<0> bot=<zz> sel=<>
0123162245|ldap |1|00|cDynamicData::getData:get enabled - filter OK <(&(sn=*)(sn%3E=0)(sn%3C=zz)(|(sn=Glen*)(telephoneNumber=Glen*)))>
0123162245|ldap |0|00|ldapData::newFilter:baseRequest=ldap://xxx.xxx.xxx.xxx/o=mycompany,dc=directory,dc=mydomain,dc=co,dc=uk?sn,telephoneNumber?sub
0123162245|ldap |3|00|ldapData::runSearch:dir=<DOWN> reverse=<No> index=<OFF> filter=<(&(sn=*)(sn>=0)(sn<=zz)(|(sn=Glen*)(telephoneNumber=Glen*)))>
0123162245|ldap |0|00|ldapData::runSearch:ldap_search_ext_s: rc=0, state=3, m_last=0, bDone=1
0123162245|ldap |1|00|cDynamicData::dataReady:total=0-restart
0123162245|ldap |1|00|ldapQueryNoSort::getNewLimits:status=<0>
0123162245|ldap |1|00|ldapQueryNoSort::assmCondition:cannot create query=<(&(sn=*)> <DOWN>
0123162245|ldap |0|00|ldapQuery::assmQuery:assmCondition error numC=<-1>
0123162245|ldap |0|00|ldapQuery::assmQuery:query cleared & released
0123162245|ldap |1|00|cDynamicData::getData:get enabled - filter NOK <>
0123162246|ldap |1|00|ldapQueryNoSort::setQLimits:1::<UP> m_curSubset=<0/1>
0123162246|ldap |1|00|ldapEntry::show:setQLimits 1::top <0>
0123162246|ldap |1|00|ldapEntry::show:setQLimits 1::bot <zz>
0123162246|ldap |1|00|ldapQueryNoSort::assmCondition:...1
0123162246|ldap |1|00|ldapQueryNoSort::fillQuery:qDepth=<1> same=<0> incl=<Yes>
0123162246|ldap |1|00|ldapEntry::show:fillQuery::prevTop <0>
0123162246|ldap |1|00|ldapEntry::show:fillQuery::prevBot <zz>
0123162246|ldap |1|00|ldapEntry::show:fillQuery::top <>
0123162246|ldap |1|00|ldapEntry::show:fillQuery::bot <>
0123162246|ldap |1|00|ldapQueryNoSort::isQueryValid:status=<1> top=<0> bot=<zz> sel=<>
0123162246|ldap |1|00|cDynamicData::getData:get enabled - filter OK <(&(sn=*)(sn%3E=0)(sn%3C=zz)(|(sn=Glen*)(telephoneNumber=Glen*)))>
0123162246|ldap |0|00|ldapData::newFilter:baseRequest=ldap://xxx.xxx.xxx.xxx/o=mycompany,dc=directory,dc=mydomain,dc=co,dc=uk?sn,telephoneNumber?sub
0123162246|ldap |3|00|ldapData::runSearch:dir=<DOWN> reverse=<No> index=<OFF> filter=<(&(sn=*)(sn>=0)(sn<=zz)(|(sn=Glen*)(telephoneNumber=Glen*)))>
0123162246|ldap |0|00|ldapData::runSearch:ldap_search_ext_s: rc=0, state=3, m_last=0, bDone=1
0123162246|ldap |1|00|cDynamicData::dataReady:total=0-restart
0123162246|ldap |1|00|ldapQueryNoSort::getNewLimits:status=<0>
0123162246|ldap |1|00|ldapQueryNoSort::assmCondition:cannot create query=<(&(sn=*)> <DOWN>
0123162246|ldap |0|00|ldapQuery::assmQuery:assmCondition error numC=<-1>
0123162246|ldap |0|00|ldapQuery::assmQuery:query cleared & released
0123162246|ldap |1|00|cDynamicData::getData:get enabled - filter NOK <>
 

JamesBorne

Active Member
Jan 24, 2019
294
57
28
Australia
Still can't seem to get it working. Had no problem on Snom and Yealink but finding information and documentation for Polycom limited and quite unhelpful.
That's why I shared all I had with you and why I don't use Polycom.


you can't do anything like this via the gui does not help with quick changes and testing
Tell me about it. Change. Test. Change. Test. All you can do with Polycom.

Use code blocks when posting logs. Not going to read through that.
 
Status
Not open for further replies.