[phpldapadmin] [ phpldapadmin-Bugs-2781451 ] Problem with attribute "c" (country) treated as part of RDN
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.ldap.davedap |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2781451, was opened at 2009-04-25 22:46
Message generated for change (Tracker Item Submitted) made by mizaring
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2781451&group_id=61828
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: 1.1.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Marc-André Gosselin (mizaring)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with attribute "c" (country) treated as part of RDN
Initial Comment:
When I try to add a new object via templates (mozillaAbPersonAlpha) or when I look at a previously added object with a template that had a "c" attribute that attribute is considered part of the RDN when in fact "cn" is the attribute that is part of the RDN. Looks like there's a comparison somewhere that match attributes that start with the same letters and are shorter than the real RDN.
Step to reproduce :
Download mozillaOrgPerson schema version 0.6.3 :
http://prdownloads.sourceforge.net/jabook/mozillaOrgPerson.schema?download
Install it in your openldap server
Go in PHPLdapAdmin installation directory on the web server and create a template for mozillaOrgPerson like this one (templates/creation/custom_mozillaOrgPerson.xml) :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE template SYSTEM "template.dtd">
<template>
<title>Address Book Entry (Thunderbird)</title>
<!--<regexp>^ou=People,o=.*,</regexp>-->
<icon>images/user.png</icon>
<description>New Thunderbird Address Book Entry</description>
<askcontainer>1</askcontainer>
<rdn>cn</rdn>
<visible>1</visible>
<objectClasses>
<objectClass id="inetOrgPerson"></objectClass>
<objectClass id="mozillaOrgPerson"></objectClass>
</objectClasses>
<attributes>
<attribute id="givenName">
<display>First Name</display>
<onchange>autoFill:cn,%sn% %givenName%</onchange>
<order>1</order>
</attribute>
<attribute id="sn">
<display>Last Name</display>
<onchange>autoFill:cn,%sn% %givenName%</onchange>
<order>2</order>
</attribute>
<attribute id="cn">
<display>Display Name</display>
<order>3</order>
</attribute>
<attribute id="mozillaNickName">
<display>NickName</display>
<order>4</order>
<spacer>1</spacer>
</attribute>
<attribute id="mail">
<display>Email</display>
<order>5</order>
</attribute>
<attribute id="mozillaSecondEmail">
<display>Alternative Email</display>
<order>6</order>
</attribute>
<attribute id="nsAIMid">
<display>AIM Nick</display>
<order>7</order>
</attribute>
<attribute id="mozillaUseHtmlMail">
<display>HTML Email Format</display>
<order>8</order>
<spacer>1</spacer>
</attribute>
<attribute id="telephoneNumber">
<display>Work Phone Number</display>
<order>9</order>
</attribute>
<attribute id="homePhone">
<display>Home Phone Number</display>
<order>10</order>
</attribute>
<attribute id="facsimileTelephoneNumber">
<display>Fax Number</display>
<order>11</order>
</attribute>
<attribute id="pager">
<display>Pager</display>
<order>12</order>
</attribute>
<attribute id="mobile">
<display>Mobile</display>
<order>13</order>
<spacer>1</spacer>
</attribute>
<attribute id="mozillaHomeStreet">
<display>Address (personal)</display>
<order>14</order>
</attribute>
<attribute id="mozillaHomeLocalityName">
<display>City (personal)</display>
<order>15</order>
</attribute>
<attribute id="mozillaHomeState">
<display>State (personal)</display>
<order>16</order>
</attribute>
<attribute id="mozillaHomePostalCode">
<display>Zip (personal)</display>
<order>17</order>
</attribute>
<attribute id="mozillaHomeCountryName">
<display>Country (personal)</display>
<order>18</order>
</attribute>
<attribute id="mozillaHomeUrl">
<display>Web page (personal)</display>
<order>19</order>
<spacer>1</spacer>
</attribute>
<attribute id="title">
<display>Title (professional)</display>
<order>20</order>
</attribute>
<attribute id="ou">
<display>Department (professional)</display>
<order>21</order>
</attribute>
<attribute id="o">
<display>Organization (professional)</display>
<order>22</order>
</attribute>
<attribute id="street">
<display>Address (professional)</display>
<order>23</order>
</attribute>
<attribute id="l">
<display>City (professional)</display>
<order>24</order>
</attribute>
<attribute id="st">
<display>State (professional)</display>
<order>25</order>
</attribute>
<attribute id="postalCode">
<display>Zip (professional)</display>
<order>26</order>
</attribute>
<attribute id="c">
<display>Country (professional)</display>
<order>27</order>
</attribute>
<attribute id="mozillaWorkUrl">
<display>Web Page (professional)</display>
<order>28</order>
<spacer>1</spacer>
</attribute>
<attribute id="mozillaCustom1">
<display>Custom 1</display>
<order>29</order>
</attribute>
<attribute id="mozillaCustom2">
<display>Custom 2</display>
<order>30</order>
</attribute>
<attribute id="mozillaCustom3">
<display>Custom 3</display>
<order>31</order>
</attribute>
<attribute id="mozillaCustom4">
<display>Custom 4</display>
<order>32</order>
</attribute>
<attribute id="description">
<display>Description</display>
<order>33</order>
</attribute>
</attributes>
</template>
Purge your cache and try to add a new object with this template, you'll see that "c" (Country (professional)) is supposedly part of the RDN when in fact is an optional attribute. I had PHPLdapAdmin version 1.1.0.4 before and didn't have this problem.
Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498546&aid=2781451&group_id=61828
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/