[Tickets #8986] Re: Creation of contact list from LDAP search output

bugs at horde.org bugs at horde.org
Thu Apr 29 05:24:15 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/8986
------------------------------------------------------------------------------
  Ticket             | 8986
  Updated By         | asa at isac.gov.in
  Summary            | Creation of contact list from LDAP search output
  Queue              | Horde Groupware Webmail Edition
  Version            | 1.2.5
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


asa at isac.gov.in (2010-04-29 01:23) wrote:

> Please put the following line at the start of the method addMember()  
> in turba/lib/Object/Group.php and post the output:
> var_dump($contactId, $sourceId);
> Then put the following line at the end of the method above the  
> "return true" line:
> var_dump($this->attributes);

Output of var_dumps when __key=mailacceptinggeneralid and search is  
for names having 'rajiv'.

string(6) "brajiv" string(9) "localldap" string(5) "rajiv" string(9)  
"localldap" string(6) "rajivk" string(9) "localldap"

and output of var_dumps when __key = 'dn' (default)

string(141) "cn=RAJIV BHATIA,ou=CONTROL SYSTEMS GROUP,ou=CONTROL  
SYSTEMS GROUP,ou=CONTROL SYSTEMS GROUP,ou=CONTROL AND MISSION  
AREA,ou=isac,dc=isro,dc=dos" string(9) "localldap" array(40) {  
["__key"]=> string(32) "a0f948d65e13bf236e4adf8f466d4355"  
["__owner"]=> string(17) "anant at isac.gov.in" ["__type"]=> string(5)  
"Group" ["__members"]=> string(170)  
"a:1:{i:0;s:151:"localldap:cn=RAJIV BHATIA,ou=CONTROL SYSTEMS  
GROUP,ou=CONTROL SYSTEMS GROUP,ou=CONTROL SYSTEMS GROUP,ou=CONTROL AND  
MISSION AREA,ou=isac,dc=isro,dc=dos";}" ["__uid"]=> string(52)  
"20100429105246.102150uymj473v6u at ldap.isac.dos.gov.in" ["firstname"]=>  
NULL ["lastname"]=> string(6) "RAJIVS" ["middlenames"]=> NULL  
["namePrefix"]=> NULL ["nameSuffix"]=> NULL ["alias"]=> NULL  
["birthday"]=> NULL ["homeStreet"]=> NULL ["homePOBox"]=> NULL  
["homeCity"]=> NULL ["homeProvince"]=> NULL ["homePostalCode"]=> NULL  
["homeCountry"]=> NULL ["workStreet"]=> NULL ["workPOBox"]=> NULL  
["workCity"]=> NULL ["workProvince"]=> NULL ["workPostalCode"]=> NULL  
["workCountry"]=> NULL ["timezone"]=> NULL ["email"]=> NULL  
["homePhone"]=> NULL ["workPhone"]=> NULL ["cellPhone"]=> NULL  
["fax"]=> NULL ["pager"]=> NULL ["title"]=> NULL ["role"]=> NULL  
["company"]=> NULL ["category"]=> NULL ["notes"]=> NULL ["website"]=>  
NULL ["freebusyUrl"]=> NULL ["pgpPublicKey"]=> NULL  
["smimePublicKey"]=> NULL } string(190) "cn=RAJIV RATAN  
CHETWANI,ou=sheads,ou=Central Computer Systems Division,ou=Central  
Computer Systems Division,ou=COMPUTERS AND INFORMATION  
GROUP,ou=DIRECTORS OFFICE AREA,ou=isac,dc=isro,dc=dos" string(9)  
"localldap" array(40) { ["__key"]=> string(32)  
"a0f948d65e13bf236e4adf8f466d4355" ["__owner"]=> string(17)  
"anant at isac.gov.in" ["__type"]=> string(5) "Group" ["__members"]=>  
string(383) "a:2:{i:0;s:151:"localldap:cn=RAJIV BHATIA,ou=CONTROL  
SYSTEMS GROUP,ou=CONTROL SYSTEMS GROUP,ou=CONTROL SYSTEMS  
GROUP,ou=CONTROL AND MISSION  
AREA,ou=isac,dc=isro,dc=dos";i:1;s:200:"localldap:cn=RAJIV RATAN  
CHETWANI,ou=sheads,ou=Central Computer Systems Division,ou=Central  
Computer Systems Division,ou=COMPUTERS AND INFORMATION  
GROUP,ou=DIRECTORS OFFICE AREA,ou=isac,dc=isro,dc=dos";}" ["__uid"]=>  
string(52) "20100429105246.102150uymj473v6u at ldap.isac.dos.gov.in"  
["firstname"]=> NULL ["lastname"]=> string(6) "RAJIVS"  
["middlenames"]=> NULL ["namePrefix"]=> NULL ["nameSuffix"]=> NULL  
["alias"]=> NULL ["birthday"]=> NULL ["homeStreet"]=> NULL  
["homePOBox"]=> NULL ["homeCity"]=> NULL ["homeProvince"]=> NULL  
["homePostalCode"]=> NULL ["homeCountry"]=> NULL ["workStreet"]=> NULL  
["workPOBox"]=> NULL ["workCity"]=> NULL ["workProvince"]=> NULL  
["workPostalCode"]=> NULL ["workCountry"]=> NULL ["timezone"]=> NULL  
["email"]=> NULL ["homePhone"]=> NULL ["workPhone"]=> NULL  
["cellPhone"]=> NULL ["fax"]=> NULL ["pager"]=> NULL ["title"]=> NULL  
["role"]=> NULL ["company"]=> NULL ["category"]=> NULL ["notes"]=>  
NULL ["website"]=> NULL ["freebusyUrl"]=> NULL ["pgpPublicKey"]=> NULL  
["smimePublicKey"]=> NULL } string(157) "cn=RAJIV KUMAR,ou=Structural  
Design Section,ou=Structural Design & Fabrication  
Division,ou=STRUCTURES GROUP,ou=MECHANICAL SYSTEMS  
AREA,ou=isac,dc=isro,dc=dos" string(9) "localldap" array(40) {  
["__key"]=> string(32) "a0f948d65e13bf236e4adf8f466d4355"  
["__owner"]=> string(17) "anant at isac.gov.in" ["__type"]=> string(5)  
"Group" ["__members"]=> string(563)  
"a:3:{i:0;s:151:"localldap:cn=RAJIV BHATIA,ou=CONTROL SYSTEMS  
GROUP,ou=CONTROL SYSTEMS GROUP,ou=CONTROL SYSTEMS GROUP,ou=CONTROL AND  
MISSION AREA,ou=isac,dc=isro,dc=dos";i:1;s:200:"localldap:cn=RAJIV  
RATAN CHETWANI,ou=sheads,ou=Central Computer Systems  
Division,ou=Central Computer Systems Division,ou=COMPUTERS AND  
INFORMATION GROUP,ou=DIRECTORS OFFICE  
AREA,ou=isac,dc=isro,dc=dos";i:2;s:167:"localldap:cn=RAJIV  
KUMAR,ou=Structural Design Section,ou=Structural Design & Fabrication  
Division,ou=STRUCTURES GROUP,ou=MECHANICAL SYSTEMS  
AREA,ou=isac,dc=isro,dc=dos";}" ["__uid"]=> string(52)  
"20100429105246.102150uymj473v6u at ldap.isac.dos.gov.in" ["firstname"]=>  
NULL ["lastname"]=> string(6) "RAJIVS" ["middlenames"]=> NULL  
["namePrefix"]=> NULL ["nameSuffix"]=> NULL ["alias"]=> NULL  
["birthday"]=> NULL ["homeStreet"]=> NULL ["homePOBox"]=> NULL  
["homeCity"]=> NULL ["homeProvince"]=> NULL ["homePostalCode"]=> NULL  
["homeCountry"]=> NULL ["workStreet"]=> NULL ["workPOBox"]=> NULL  
["workCity"]=> NULL ["workProvince"]=> NULL ["workPostalCode"]=> NULL  
["workCountry"]=> NULL ["timezone"]=> NULL ["email"]=> NULL  
["homePhone"]=> NULL ["workPhone"]=> NULL ["cellPhone"]=> NULL  
["fax"]=> NULL ["pager"]=> NULL ["title"]=> NULL ["role"]=> NULL  
["company"]=> NULL ["category"]=> NULL ["notes"]=> NULL ["website"]=>  
NULL ["freebusyUrl"]=> NULL ["pgpPublicKey"]=> NULL  
["smimePublicKey"]=> NULL }

I think, attribute name is not getting added when __key is set to  
anything other than dn.







More information about the bugs mailing list