New param "source environment"?
Nicolas Williams
Nicolas.Williams at wdr.com
Wed Jul 21 03:06:45 GMT 1999
On Wed, Jul 21, 1999 at 03:30:26AM +0200, Rune Henssel wrote:
> Hello!
>
> I have actually had thoughts along the same lines, a parameter that causes samba to read and process the output (to stdout) from a program, along the same lines as a webserver that reeds data from a CGI script. I just not through considering how to implement it in to samba. My initial thoughts are to use a special version of the handle_include include parameter handler function, phew... ;-) but I don't know how easy it is to do.
>
> Thats my 10 cents.
>
> Rune!
> rune at lyngbyes.dk
> ---
> If among many truth you choose one and follow it blindly, it will become a falsehood and you a fanatic.
>
>
> ----- Original Message -----
> From: Nicolas Williams
> To: Multiple recipients of list SAMBA-TECHNICAL
> Sent: Tuesday, July 20, 1999 8:31 PM
> Subject: New param "source environment"?
>
[...]
Should be easy, since each line read can be passed directly to putenv()
(well, there's probably to trailing backslash processing to implement to
allow multi-line values).
If the value of the 'source environment' parameter ends with a '|' then
instead of opening the given path the value should be popen()'ed with
Samba reading from the output pipe.
I'll investigate more tomorrow. If it's easy enough to implement I may
be able to submit a patch.
Nico
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
More information about the samba-technical
mailing list