logo       

squeak ldap attribute modification: msg#00167

lang.smalltalk.squeak.beginners

Subject: squeak ldap attribute modification

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise