squeak ldap attribute modification

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

squeak ldap attribute modification

Vladimir Plšek
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


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: squeak ldap attribute modification

Milan Zimmermann-2
Vlado,

I won't be able to help, justa a note, if you do not get any comments on this
list, it may be a good idea to ask on the squeak-dev mailing list, it is
quite specific question, so squeak-dev can be better,

Milan

On 2006 November 24 03:08, Vladimir Plšek wrote:

> 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
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: squeak ldap attribute modification

Vladimir Plšek
Thanks  Milan,
vp
Milan Zimmermann wrote:

> Vlado,
>
> I won't be able to help, justa a note, if you do not get any comments on
> this list, it may be a good idea to ask on the squeak-dev mailing list, it
> is quite specific question, so squeak-dev can be better,
>
> Milan
>
> On 2006 November 24 03:08, Vladimir Plšek wrote:
>> 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
>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [hidden email]
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners