RE: Trying to find correct format for PerlSetVar's -- or get Apache::AuthNetLDAP working.

2001-06-01 Thread Steve Haslam

Hi,

(btw threading broken because I'm replying from a digest)

I do multiple "PerlSetVar"s from inside a Location (itself inside a
VirtualHost) like this:

  PerlSetVar => [['User', $user],
 ['Locale', $locale],
 ...
]

I've also had some wierdness happen with mod_perl not reporting syntax
errors and other problems in  sections that I'm now unable to
reproduce :|

SRH
-- 
+ Steve Haslam |W: +44-20-7447-1839+
+   /excite/intl/uk/softeng|M: +44-7775-645618 +
.Spare a thought for me because I see the things that you don't see.



RE: Trying to find correct format for PerlSetVar's -- or get Apache::AuthNetLDAP working.

2001-05-31 Thread Geoffrey Young



> -Original Message-
> From: Steven Lembark [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 31, 2001 1:27 PM
> To: Geoffrey Young
> Subject: Re: Trying to find correct format for PerlSetVar's -- or get
> Apache::AuthNetLDAP working.
> 
> 
> 
> > [snip]
> > >168  PerlSetVar  =>
> > >169  {
> > >170  BindDN  => 'employeenumber=123456
> > > ou=people
> > > o=foo.bar',
> > >171  BindPWD => 'password',
> > >172  BaseDN  => 'ou=people o=foo.bar',
> > >173  LDAPServer  => 'ldap.alltel.com',
> > >174  LDAPPort=> '389',
> > >175  UIDAttr => 'sn',
> > >176  },
> > [snip]
> > >
> > > is there any better doc for this than the eagle book?
> > 
> > ah, but the answer you seek can be found within... p417
>
> I don't see an example on p 417 with an entry for PerlSetVar.
> The array-of-arrays format was my initial guess, and it
> didn't seem to work, after which I tried the array of hashes.

oh, I see - setting multiple values within a %Location.  there's no example
of that.  sorry :)

Tie::DxHash out to help.  If you can't get that to work, if your config
allows for it, you could always move the PerlSetVar stuff outside of the
%Location section...

--Geoff



RE: Trying to find correct format for PerlSetVar's -- or get Apache::AuthNetLDAP working.

2001-05-31 Thread Geoffrey Young



> -Original Message-
> From: Steven Lembark [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 30, 2001 11:31 PM
> To: [EMAIL PROTECTED]
> Subject: Trying to find correct format for PerlSetVar's -- or get
> Apache::AuthNetLDAP working.
> 
[snip]
>168  PerlSetVar  =>
>169  {
>170  BindDN  => 'employeenumber=123456 
> ou=people
> o=foo.bar',
>171  BindPWD => 'password',
>172  BaseDN  => 'ou=people o=foo.bar',
>173  LDAPServer  => 'ldap.alltel.com',
>174  LDAPPort=> '389',
>175  UIDAttr => 'sn',
>176  },
[snip]
> 
> is there any better doc for this than the eagle book?

ah, but the answer you seek can be found within... p417

--Geoff



Re: Trying to find correct format for PerlSetVar's -- or get Apache::AuthNetLDAP working.

2001-05-30 Thread Thomas Eibner

On Wed, May 30, 2001 at 10:30:50PM -0500, Steven Lembark wrote:
> problem seems to be that i'm not getting the PerlSetVar's 
> across to it via perly config:
[Snip]
> is there any better doc for this than the eagle book?

You have to use $r->dir_config('Var') to get the values from the configuration file.
Example:
my $BindDN = $r->dir_config('BindDN'); 

See:


-- 
  Thomas Eibner  - DnsZone 
  mod_pointer