According to
http://www.novell.com/documentation//nwec/nwec/data/al39ngz.html#al39ngz
'The program is trying to pass a bad context parameter to an eDirectory or
NDS call. This is an internal program error.'
So the context must be bad however all input parameters (context, connHandle
and 'objectID') are -- in this example scenario -- constant. The NDS
connection does not get damaged since I am still able to access the remote
file system through it without any problem.
As an explanation, please find below the debug log of the input parameters
and the return code of NWDSMapIDToName.
Thanks in advance for your help!
Sequence 1 (I am lucky -- this time everything is O.K.)
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=00000000
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=00000000
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=00000000
...
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=00000000
...
Sequence 2 (I am unlucky -- this time something goes mad!)
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=00000000
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=00000000
...
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=00000000
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=00000000
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=FFFFFED1 // <--- something went mad!
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=FFFFFED1
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=FFFFFED1
...
context=00000000, connHandle=43B73040, objectID=9F820000,
return_code=FFFFFED1
...
Roger Thomas, DevNet SysOp 22
"Robert Hochenburger" <NO.ho...@cnw.SPAM.hu> wrote in message news:tckKf.2478$yg2...@prv-forum2.provo.novell.com...
NWCONN_HANDLE connHandle;
NWDSContextHandle context;
unsigned long contextFlags;
char dn [MAX_DN_CHARS + 1];
NWDSCreateContextHandle (&context);
NWDSSetContext (context, DCK_TREE_NAME, "MYTREE");
NWDSSetContext (context, DCK_NAME_CONTEXT, "[Root]");
NWDSGetContext (context, DCK_FLAGS, &contextFlags))) {
contextFlags |= DCV_TYPELESS_NAMES;
NWDSSetContext (context, DCK_FLAGS, &contextFlags);
NWDSLogin (context, 0, "Admin.Company", "password", 0);
NWCCOpenConnByName (0, "FS1", NWCC_NAME_FORMAT_BIND, NWCC_OPEN_LICENSED,
NWCC_TRAN_TYPE_WILD, &connHandle);
NWDSAuthenticateConn (context, connHandle);
NWCCSetCurrentConnection (connHandle);
for ( ; ; ) {
NWDSMapIDToName (context, connHandle, 0x9F820000, dn);
getch ();
}
"Roger Thomas, DevNet SysOp 22" <dev...@novell.com> wrote in message
news:hKoKf.2751$yg2....@prv-forum2.provo.novell.com...
NWDSGetContext (context, DCK_FLAGS, &contextFlags))) {
The only time I've see a report of this type of area the TID stated
that a dsrepair of the file system was needed, but that involved an
ID being returned from the file system that eDir could not resolve in
its database.
What version of NW is the remote server?
Roger Thomas, DevNet SysOp 22
"Robert Hochenburger" <NO.ho...@cnw.SPAM.hu> wrote in message news:qiCKf.3278$yg2...@prv-forum2.provo.novell.com...
John
"Roger Thomas, DevNet SysOp 22" <dev...@novell.com> wrote in message
news:fVLKf.3967$yg2...@prv-forum2.provo.novell.com...
The version of the remote servers is NetWare 6.5 SP4/SP5.
Robert
"Roger Thomas, DevNet SysOp 22" <dev...@novell.com> wrote in message
news:fVLKf.3967$yg2...@prv-forum2.provo.novell.com...
Robert
"John Baird" <jo...@jrbsoftware.com> wrote in message
news:HPfLf.5576$yg2...@prv-forum2.provo.novell.com...
you are right: both DSTRACE (running on the target server) and a Sniffer
trace shows that the current NWDSMapIDToName call does not generate any
network traffic.
Robert
"John Baird" <jo...@jrbsoftware.com> wrote in message
news:HPfLf.5576$yg2...@prv-forum2.provo.novell.com...