Article View: fj.net.ldap
Article #53Re: strange problem
From: Spider
Date: Mon, 28 May 2001 13:53
Date: Mon, 28 May 2001 13:53
36 lines
2069 bytes
2069 bytes
... ok, the problem is solved...
the 'secret' is this one:
myContext.modifyAttributes("cn=foo\\/foo2, ou=Cybercom", ...);
the fist \ serves is used so that the second one is not treated as a
composite name component separator.
Finally, this 'literal' \ serves to the / for the same reason.
"Spider" <a@p.com> ha scritto nel messaggio
news:ZesQ6.21122$WT5.806462@news.infostrada.it...
> Hi,
> I want to modify an entry attribute for a name in a OiD ldap context with
> modifyAttributes() method.
> Now, if the method invocation is like
>
> myContext.modifyAttributes("cn=foo, ou=Cybercom", ...);
>
> the entry value changes, but when the parameter changes like this
>
> myContext.modifyAttributes("cn=foo/foo2, ou=Cybercom", ...);
>
> I receive an error:
>
> javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such
> Object]; remaining name 'cn=foo/foo2, ou=Cybercom'
>
> Naturally foo and foo/foo2 are present at the same level and with
identical
> properties;
> more, the "/" character is not a special one!
>
> Thanks in advance.
>
>
Technical Details
Message-ID:
<WLsQ6.21331$WT5.812523@news.infostrada.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!news.infostrada.it!not-for-mailReferences:
<ZesQ6.21122$WT5.806462@news.infostrada.it>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103627,5554925afac72034 X-Google-Attributes: gid103627,public X-Google-ArrivalTime: 2001-05-28 06:53:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!news.infostrada.it!not-for-mail From: "Spider" <a@p.com> Newsgroups: fj.net.ldap References: <ZesQ6.21122$WT5.806462@news.infostrada.it> Subject: Re: strange problem Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <WLsQ6.21331$WT5.812523@news.infostrada.it> Date: Mon, 28 May 2001 13:53:58 GMT NNTP-Posting-Host: 151.4.92.2 X-Complaints-To: abuse@iunet.it X-Trace: news.infostrada.it 991058038 151.4.92.2 (Mon, 28 May 2001 15:53:58 MET DST) NNTP-Posting-Date: Mon, 28 May 2001 15:53:58 MET DST Organization: [Infostrada]