[Samba] Re: swatlib?

Buchan Milne bgmilne at cae.co.za
Wed Oct 22 10:34:14 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Message: 3
> Date: Tue, 21 Oct 2003 11:39:35 +0800
> From: Alex <itzaberhad at yahoo.com>
> Subject: [Samba] Re: swatlib?
> To:
> Message-ID: <bn2a3k$vl$1 at sea.gmane.org>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Hi John,
>
>    Well... that's a tough one.   I'm under the gun to do some php
> thing with samba's config.  Either template based, or something off of
> loadparm.c.   It just strikes me that the guts of the config file
> loading, saving and parsing are already implemented in C, yet are only
> used in cgi.c by swat.
>    My C is VERY rusty (haven't coded a good solid app in about 8+
> years)...  On the other hand, getting a php module out of that code
> would be pretty sweet and make a lot of people's life easier.
> 	So what I'm gonna do is 2 things.  First, make a little parser bridge
> for testparm's output (php-ize the output and use that for constraints
> checking), and try to make a loadparm lib.. it won't be a try swat
> replacement, just something to deal with samba's config file.. I'll give
> a stab at it.. nothing official.   Unless it a success.

Before you go totally down this road, you may want to at least look at
libconf:

http://savannah.nongnu.org/projects/libconf

The smb.conf parsing is working well enough that there is a perl-GTK2
gui available (work in progress).

A php or html frontend should also be possible.

Regards,
Buchan

- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/ll0lrJK6UGDSBKcRAsIgAJ9+eTAcUODD3v9B0JalyY4S3Ap2sACgsnFF
woqhDy/t26fG809ELjAaD7g=
=5mql
-----END PGP SIGNATURE-----




More information about the samba mailing list