List Info

Thread: SOLUTION: Re: Update() method fails inexplicably




SOLUTION: Re: Update() method fails inexplicably
user name
2006-04-25 08:20:16
I have that too with using attribs over javas ldap apis...
I simply send a space " " in my cases...


"Dave Bank" <david.bankNOSPAMdornc.com> schrieb
im Newsbeitrag 
news:lkhSf.3347$_K3.805prv-forum2.provo.novell.com...
> The problem was solved primarily with the help of Susan
Perrin, who
> contacted the UCX developer to identify the syntax
problem. I don't know
> if this issue is perculiar to the Perl interface or
exists no matter how
> the APIs are accessed.
>
> When calling the setFieldValue method for a Value of
type DS_STRING_ATTR,
> the second parameter (the new Value) cannot be a
0-length string. The
> string must contain at least one byte (beyond the
implicit NULL in a Perl
> string) of data. If it doesn't, then while
setFieldValue won't fail, the
> subsequent Update call will - DSTRACE +abuf +areq +auth
will show
> "DSAModifyEntry failed, Syntax Violation
(-613)". The Perl methods only
> return a Boolean ( FALSE = method failed; TRUE = method
succeeded ) and
> there is no way to obtain the DS error code without
using DSTRACE.
>
> There is no explicit removeFieldValue method in the
NWDir object. Instead,
> for a Multi-Valued Attribute like Description, the
second parameter of the
> setFielfValue call should be the Perl constant
"undef". This will remove
> the Value from the Attribute. Note that the third
parameter, the original
> Value, should still be passed.
>
> None of this is really documented - the AppNotes from
circa 2000/2001 are
> outdated and example Perl code from those articles does
not run in the
> present-day Perl/NetWare/UCS/UCX environment.
> 


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )