CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums



Zone: > NEWSGROUP > Novell Forums > novell.devsup.libc Tags:
Item Type: Date Entered: 6/13/2003 7:06:16 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 8 Views: 67 Favorited: 0 Favorite
Can Reply:  Yes Members Can Edit: No Online: Yes
9 Items, 1 Pages |< << Go >> >|
"john reynolds"
NewsGroup User
NWDSCreateContextHandle6/13/2003 7:06:16 PM
Reply

0

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: NWDSCreateContextHandle6/13/2003 7:28:44 PM
Reply

0

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: NWDSCreateContextHandle6/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: NWDSCreateContextHandle6/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: NWDSCreateContextHandle6/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: NWDSCreateContextHandle6/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: NWDSCreateContextHandle6/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.
> >
> >
> >
>
>


"Dmitry Mityugo
NewsGroup User
Re: NWDSCreateContextHandle6/13/2003 8:23:29 PM
Reply

0

john reynolds wrote:
> Thx Dmitry,
>
> now to go and read the docs properly !!

Good luck. By the way, I think you don't need to call create_identity() and
friends for netware_vol_info() at all.

--
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"
NewsGroup User
Re: NWDSCreateContextHandle6/13/2003 9:08:02 PM
Reply

0

Thx for all the help Dmitry,

now works well, and yes you were right didnt need to create an identy to get
the volume info.

Thx.
"Dmitry Mityugov, DevNet SysOp 8" <devforums@novell.com> wrote in message
news:5pqGa.35$pi1.12@prv-forum2.provo.novell.com...
> john reynolds wrote:
> > Thx Dmitry,
> >
> > now to go and read the docs properly !!
>
> Good luck. By the way, I think you don't need to call create_identity()
and
> friends for netware_vol_info() at all.
>
> --
> 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
>
>


9 Items, 1 Pages |< << Go >> >|



Free Download:






   
  Privacy | Contact Us
All Times Are GMT