I have an NWDir bean authenticated as an...
Articles and Tips: qna
01 Apr 2003
Q.
I have an NWDir bean authenticated as an Admin user, which is then used to modify/set the ACL on an ordinary user object. I am able to perform things like theUser.setPassword(newPassword) and getValue, setValue, addValue, and so on, without an issue. However, I need to add an ACL entry for the user to specific properties on his own object:
anACLEntry = new NWValueObjectACL( getAdminBean(),"bobsTestAttribute", theUser.getFullName() );
anACLEntry.setFieldRead( true ); anACLEntry.setFieldWrite( true ); // Errors out with a 601 or a 610... theUser.addFieldValue( "ACL", anACLEntry );
What exactly is the NWValueObjectACL(...) wanting in terms of the trustee name? Are we talking cn.ou.o or NDS://Tree/O/OU/CN?
A.
To set the object ACL, the trustee name should be passed in the format cn.ou.o.
* 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.