[Newbies] squeak ldap attribute modification

Vladimir Plšek vladimir.plsek at siemens.com
Fri Nov 24 08:08:28 UTC 2006


Hi,
I was playing with ldap litlle bit and I found some strange behavior.


When I am trying to do some attribute modification I got error "Improper
store into indexable object".
example:
(I uesed syntax from ldap test class)

ld modify:(ldr dn)  with: {LDAPAttrModifier addTo: 'employeeNumber2' values:
{'123' }}.

(where ld is ldap connection, ldr is first resultentry)

I debuged it and found that I should use:

ld modify:(ldr dn asString)  with: {LDAPAttrModifier
addTo: 'employeeNumber2' values: {'123' }}.

ldr dn is instance of ByteArray class, but ld modify: with: expect it as
string.

Am I doing anything wrong?
or it is correct to use it that way.
 

vlado plsek




More information about the Beginners mailing list