|
 | |
 | "john reynolds" | | NewsGroup User |
| Re: NWDSCreateContextHandle | 6/13/2003 7:31:53 PM |
Reply
| 0 |   |
| Hi Dmitry, Yes this is a libc nlm, i am trying to authenticate as the server so that i can obtain the list of mounted volumes.
"Dmitry Mityugov, DevNet SysOp 8" <devforums@novell.com> wrote in message news:MBpGa.152$K41.67@prv-forum2.provo.novell.com... > John, > > Are you developing a LibC NLM? > > -- > Dmitry Mityugov, DevNet SysOp 8 > Member of the Novell SysOp Team > http://developer.novell.com/support/sysop/ > > Search these newsgroups for answers to similar questions: > http://developer-forums.novell.com/category/index.tpt > Search DevSup Samples and TIDs: > http://developer.novell.com/support/sample.htm > Search KnowledgeBase and manuals: > http://support.novell.com/search/kb_index.jsp > Search YES, Tested and Approved Products: > http://developer.novell.com/yessearch/Search.jsp > Leading edge: > http://developer.novell.com/ndk/leadedge.htm > > john reynolds wrote: > > Hi all, > > > > i am trying to get my nlm to authenticate but it is falling at the first > > hurdle ie > > NWDSCreateContextHandle(), which returns FFFFFED3, which is not enough > > memory, which is realy strange as the server has 1GB of ram and is running > > basic services. > > > > any pointers or suggestion appreciated. > > Thx. > > > > -- > > John Reynolds > > CNE 5 CDE CCNA > > > > > > > >
|
 | "Dmitry Mityugo | | NewsGroup User |
| Re: NWDSCreateContextHandle | 6/13/2003 7:36:26 PM |
Reply
| 0 |   |
| John,
You can't use any NDAP calls in LibC NLMs, only LDAP or create_identity() and friends.
-- Dmitry Mityugov, DevNet SysOp 8 Member of the Novell SysOp Team http://developer.novell.com/support/sysop/
Search these newsgroups for answers to similar questions: http://developer.novell.com/ndk/devforums.htm Search DevSup Samples and TIDs: http://developer.novell.com/support/sample.htm Search KnowledgeBase and manuals: http://support.novell.com/search/kb_index.jsp Search YES, Tested and Approved Products: http://developer.novell.com/yessearch/Search.jsp Leading edge: http://developer.novell.com/ndk/leadedge.htm
john reynolds wrote: > Hi Dmitry, > Yes this is a libc nlm, > i am trying to authenticate as the server so that i can obtain the list of > mounted volumes. > > > "Dmitry Mityugov, DevNet SysOp 8" <devforums@novell.com> wrote in message > news:MBpGa.152$K41.67@prv-forum2.provo.novell.com... > > John, > > > > Are you developing a LibC NLM? > > > > -- > > Dmitry Mityugov, DevNet SysOp 8 > > Member of the Novell SysOp Team > > http://developer.novell.com/support/sysop/ > > > > Search these newsgroups for answers to similar questions: > > http://developer-forums.novell.com/category/index.tpt > > Search DevSup Samples and TIDs: > > http://developer.novell.com/support/sample.htm > > Search KnowledgeBase and manuals: > > http://support.novell.com/search/kb_index.jsp > > Search YES, Tested and Approved Products: > > http://developer.novell.com/yessearch/Search.jsp > > Leading edge: > > http://developer.novell.com/ndk/leadedge.htm > > > > john reynolds wrote: > > > Hi all, > > > > > > i am trying to get my nlm to authenticate but it is falling at the first > > > hurdle ie > > > NWDSCreateContextHandle(), which returns FFFFFED3, which is not enough > > > memory, which is realy strange as the server has 1GB of ram and is > running > > > basic services. > > > > > > any pointers or suggestion appreciated. > > > Thx. > > > > > > -- > > > John Reynolds > > > CNE 5 CDE CCNA > > > > > > > > > > > > > > >
|
 | "john reynolds" | | NewsGroup User |
| Re: NWDSCreateContextHandle | 6/13/2003 7:43:55 PM |
Reply
| 0 |   |
| Dmitry,
Thx for that any idea why the following code would cause an abend at NWScanMountedVolumeList.
int lp,ccode,idt; LONG vols,enumer = 0,conn,volnum; NWVolMountNumWithName * vollist;
vols = GetNumberOfVolumes(); vollist = (NWVolMountNumWithName*)calloc(vols,sizeof(NWVolMountNumWithName));
if (create_server_identity(&idt)) printf("Error creating server identity.\n"); conn = GetConnectionNumber(); printf("Connection number %i\n",conn);
NWScanMountedVolumeList(conn,NW_VOLUME_NUMBER_AND_NAME,NW_NS_LONG,&enumer,vo ls,&volnum,vollist);
Thx again.
|
 | "Dmitry Mityugo | | NewsGroup User |
| Re: NWDSCreateContextHandle | 6/13/2003 7:56:21 PM |
Reply
| 0 |   |
| John,
That's because XPLAT and CLIB calls (NWScanMountedVolumeList and GetConnectionNumber, respectively) are not supported by LibC either. I believe you need to use something like netware_vol_info() to scan NetWare volumes.
-- Dmitry Mityugov, DevNet SysOp 8 Member of the Novell SysOp Team http://developer.novell.com/support/sysop/
Search these newsgroups for answers to similar questions: http://developer.novell.com/ndk/devforums.htm Search DevSup Samples and TIDs: http://developer.novell.com/support/sample.htm Search KnowledgeBase and manuals: http://support.novell.com/search/kb_index.jsp Search YES, Tested and Approved Products: http://developer.novell.com/yessearch/Search.jsp Leading edge: http://developer.novell.com/ndk/leadedge.htm
john reynolds wrote: > Dmitry, > > Thx for that any idea why the following code would cause an abend at > NWScanMountedVolumeList. > > int lp,ccode,idt; > LONG vols,enumer = 0,conn,volnum; > NWVolMountNumWithName * vollist; > > vols = GetNumberOfVolumes(); > vollist = > (NWVolMountNumWithName*)calloc(vols,sizeof(NWVolMountNumWithName)); > > if (create_server_identity(&idt)) > printf("Error creating server identity.\n"); > conn = GetConnectionNumber(); > printf("Connection number %i\n",conn); > > NWScanMountedVolumeList(conn,NW_VOLUME_NUMBER_AND_NAME,NW_NS_LONG,&enumer,vo > ls,&volnum,vollist); > > Thx again. > > >
|
 | "john reynolds" | | NewsGroup User |
| Re: NWDSCreateContextHandle | 6/13/2003 8:02:20 PM |
Reply
| 0 |   |
| Thx Dmitry,
now to go and read the docs properly !!
Thx. "Dmitry Mityugov, DevNet SysOp 8" <devforums@novell.com> wrote in message news:F%pGa.22$Xg1.5@prv-forum2.provo.novell.com... > John, > > That's because XPLAT and CLIB calls (NWScanMountedVolumeList and > GetConnectionNumber, respectively) are not supported by LibC either. I > believe you need to use something like netware_vol_info() to scan NetWare > volumes. > > -- > Dmitry Mityugov, DevNet SysOp 8 > Member of the Novell SysOp Team > http://developer.novell.com/support/sysop/ > > Search these newsgroups for answers to similar questions: > http://developer.novell.com/ndk/devforums.htm > Search DevSup Samples and TIDs: > http://developer.novell.com/support/sample.htm > Search KnowledgeBase and manuals: > http://support.novell.com/search/kb_index.jsp > Search YES, Tested and Approved Products: > http://developer.novell.com/yessearch/Search.jsp > Leading edge: > http://developer.novell.com/ndk/leadedge.htm > > john reynolds wrote: > > Dmitry, > > > > Thx for that any idea why the following code would cause an abend at > > NWScanMountedVolumeList. > > > > int lp,ccode,idt; > > LONG vols,enumer = 0,conn,volnum; > > NWVolMountNumWithName * vollist; > > > > vols = GetNumberOfVolumes(); > > vollist = > > (NWVolMountNumWithName*)calloc(vols,sizeof(NWVolMountNumWithName)); > > > > if (create_server_identity(&idt)) > > printf("Error creating server identity.\n"); > > conn = GetConnectionNumber(); > > printf("Connection number %i\n",conn); > > > > > NWScanMountedVolumeList(conn,NW_VOLUME_NUMBER_AND_NAME,NW_NS_LONG,&enumer,vo > > ls,&volnum,vollist); > > > > Thx again. > > > > > > > >
|
|
| |
Free Download:
|
|