[racktables-users] Re: Adding new params in secret.php

  • From: Denis Ovsienko <pilot@xxxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Sun, 15 Jun 2008 21:46:54 +0400

> I'm trying to modify the LDAP procedure hacking a bit
> authenticated_via_ldap at inc/auth.php.  For this I need to add some
> new vars at secret.php (i.e.: some $ldap_basedn).  They seem to be
> declared global somewhere else (maybe at init.php) but I don't see
> how they are processed.  Can someone help me about the proper way to
> manage these kind of config params?

Hello.

There is no magic here: you declare a variable on the "top" level in one
file and access it from a function (declared in another) by issuing
"global" directive. grep "ldap_server" to see it yourself.

It's probably better to start moving these variables into the standard
configuration storage, they don't contain any sensitive data.

-- 
    DO4-UANIC

Other related posts: