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

> 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: