[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Something wrong with colon in attributetype (fwd)



Hi,

the colon is no allowed character in an attribute name.
RFC 2251 states that attribute names must match the following
Perl regex: 
	/^[a-z][a-z0-9-]*$/i
(RFC 2251 uses other words ;-))))

Yours
Peter

On Sunday 31 March 2002 19:48, you wrote:
> Hi,
>
>
> if I have an attributetype including the colon-sign, like
> radattr_redback:police_rate something goes wrong in OpenLDAP. Look:
>
> I use an nearly empty server (openldap 1.2.13):
> who@voldemor:~/Sources/Collector$ ldapsearch -p 9000 -b "c=de" 
> "objectclass=*" c=de
> c=de
> objectclass=country
>
> o=test, c=de
> o=test
> c=de
> objectclass=organization
>
> I insert an entry using perl-ldap:
> [...]
> my $Entry = Net::LDAP::Entry->new();
> $Entry->dn("cn=test, $LDAP_Base");
> $Entry->add('cn', [ 'test' ]);
> $Entry->add('radattr_redback:police_rate', [ 256 ]);
> $Entry->add('red:back', [ 256 ]);
> $Entry->add('objectclass', [ 'testObject' ]);
> [...]
>
> I search the search:
> who@voldemor:~/Sources/Collector$ ldapsearch -p 9000 -b "c=de" 
> "objectclass=*" c=de
> c=de
> objectclass=country
>
> o=test, c=de
> o=test
> c=de
> objectclass=organization
>
> cn=test, o=test, c=de
> cn=test
> radattr_redback:police_rate=256
> red:back=256
> objectclass=testObject
>
> Everything is fine. The type is 'radattr_redback:police_rate', the value is
> 256.
>
> Now I stop the server an start it again. And I search another time:
> who@voldemor:~/Sources/Collector$ ldapsearch -p 9000 -b "c=de" 
> "objectclass=*" c=de
> c=de
> objectclass=country
>
> o=test, c=de
> o=test
> c=de
> objectclass=organization
>
> cn=test, o=test, c=de
> cn=test
> radattr_redback=police_rate: 256
> red=back: 256
> objectclass=testObject
>
> And, whow!, the attributetype is 'radattr_redback', the value is
> 'police_rate: 256'. Not what I expected.
>
> Does this sounds familiar to someone of you?
> Is this a bug or a feature? (I would call it a bug.)
>
>
>
> Thanks,
> Wolfgang
>
>
> Wolfgang Hottgenroth
> Senior Product Engineer
> EMEA Engineering Systems
>
> UUNET Deutschland GmbH
> Sebrathweg 20
> 44149 Dortmund
> Germany
>
> office +49 231 972 1231
> mobile +49 173 2578303
> fax    +49 231 972 2084
> email whottgen@eu.uu.net
> http://www.worldcom.com/de

-- 
Peter Marschall     |   eMail: peter.marschall@mayn.de
Scheffelstraße 15   |          peter.marschall@is-energy.de
97072 Würzburg      |   Tel:   0931/14721
PGP:  D7 FF 20 FE E6 6B 31 74  D1 10 88 E0 3C FE 28 35