coreyp
Dec 5th, 2001, 12:25 AM
Trying to integrate a VB app here with Novell NDS, I can get all the normal authentication done, but the second part of the trick is the problem...
Authenticating to NDS doesnt necessarily mean you have access to a particular application object. So therefore I am trying to read the ACL of the object to see if the user has permission to access it.
This appears to be done by a complex mix of API calls and buffers:
NWCallsIinit()
NWDSCreateContextHandle()
NWDSAllocBuf()
NWDSRead() <-- Where you actually read the object properties.
NWDSGetAttrCount()
NWGetAttrName()
and then a loop through the ACL's to use NWDSComputeAttrValSize() to allocate a memory buffer for each response and NWDSGetAttrVal to read the attribute values into that buffer.
This part is the problem. Once I try and read the values I just get either an Overflow in NWDSGetAttrVal() or an illegal operation or other weird stuff. What I never get is something that says "yes this user is allowed to run this application object".
Am I on the right track here?
Authenticating to NDS doesnt necessarily mean you have access to a particular application object. So therefore I am trying to read the ACL of the object to see if the user has permission to access it.
This appears to be done by a complex mix of API calls and buffers:
NWCallsIinit()
NWDSCreateContextHandle()
NWDSAllocBuf()
NWDSRead() <-- Where you actually read the object properties.
NWDSGetAttrCount()
NWGetAttrName()
and then a loop through the ACL's to use NWDSComputeAttrValSize() to allocate a memory buffer for each response and NWDSGetAttrVal to read the attribute values into that buffer.
This part is the problem. Once I try and read the values I just get either an Overflow in NWDSGetAttrVal() or an illegal operation or other weird stuff. What I never get is something that says "yes this user is allowed to run this application object".
Am I on the right track here?