From: Rob McCool <robm@netscape.com> Newsgroups: netscape.devs-nsapi Subject: Re: access .nsconfig variables in NSAPI Date: Thu, 24 Oct 1996 18:15:21 -0700> I am trying to access variables from my .nsconfig file in an NSAPI .so > application called during authorization. I can't seem to figure out > how to do it. > > The .nsconfig file looks something like this: > <Files *> > RequireAuth var1="test" realm="per auth.c function" > </Files> > > Although not mentioned in my version of the documentation, I found in > the Request struct, a member, "*tmpos", of type httpd_objset, which > contains a member "name" of type pblock. The comments claim that this > struct contains the variables from the .nsconfig file. I tried using > the following code to get at the variable, but I had no luck: > test8 = pblock_find("var1", rq->tmpos->name); > > So, how do I access the variables from the .nsconfig. file while in an > authTrans module?
I'm not sure which comments would lead you to believe that, but the variables from the .nsconfig file are not available anywhere that you can get to them. Sorry.
-- Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/ Stunt Programmer, Netscape Communications Corporation It was working ten minutes ago, I swear...Reproduced by permission of the author.