Novell is now a part of Micro Focus

Using Novell Beans, I'm trying to get/set some...

Articles and Tips: qna

01 Sep 2001


Q.

Using Novell Beans, I'm trying to get/set some NDS attributes, from some users, with a servlet. Do I need to authenticate using NWDir( )? Or is the following the correct way to use NWDir Bean?

NWDir dirBean = new NWDir();
NWEntry entry = null;
dirBean.set 
FullName("NDS:\\\\MYTREE\\MYCON
TEXT\\someuser");
entry = dirBean.getEntry();

I am running the servlet on a NetWare v5.1 server, but the servlet is unable to get the desired attributes. I am not given any errors/exceptions, it appears that the attribute just doesn't exist, but I know it exists!.

So, I'm thinking that the servlet must authenticate to the server/tree or I need to give rights to my Server object. Please, can anybody clarify this?

A.

If the object/attribute has no pubic read rights, it will return null even though attribute exists.

You have to authenticate with appropriate rights to read values of all attributes of an NDS object. By default, all you can get without authentication is public objects and attributes.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates