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

Something wrong with colon in attributetype



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?



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