Homepage Johann Hanne 
Valid XHTML 1.0 Strict
About | Projects | Gadgets | Photos | Links
Projects - php-msrpc 
Download:
php-msrpc-0.0.4.tar.gz
php-msrpc-headers-20010724.tar.gz

Page hits since 2001-07-14: 1 (0 hits per day)


README file:
php-msrpc 0.0.4 (2001-09-25)

------------------------------------------------------------------------------
Please note:
Due to licensing troubles there are TWO tarballs:
- php-msrpc-0.0.4.tar.gz
- php-msrpc-headers-20010724.tar.gz
This is because I have put the wrapper code under the PHP license
(otherwise it will probably never be included in the PHP distribution).
However, the whole samba-tng stuff is GPL, which is incompatible with
the PHP license :-(. Until there's a samba-tng-devel package with all
the header files required for developing software depending on the
samba-tng libraries I'll have to maintain my own version of the samba-tng
header files.
------------------------------------------------------------------------------

This is a very early release of a msrpc binding for php. This is
absolutely alpha software and it is based on samba-tng which itself
is alpha software, too. So chances are that it will not work for
you.

This release is intended for developers only in the hope that somebody
will find the time for helping to further develop it. My time is
currently very limited, so bindings to new commands are likely to
appear very slowly.

If you wonder about the purpose: It's intended for web-based
administration of Windows NT/2000 servers. You won't need
stupid things like the user manager or server manager any more.
You'll be able to administer your servers from any OS from
any location, just by using your favourite web browser. Well,
on condition that somebody completes this work and writes the
required php scripts. So let's hurry up, or there won't be
any Windows servers anymore. It won't be long until we have
the WORLD DOMINATION ;-)

What you will need to use it:
- samba-tng
  I'm using samba-tng-alpha-2.6.1, other versions may or may not work.
  You'll need at least libmsrpc, libsmb, libnmb and libsamba, so i
  suggest you compile the package and copy these libraries to
  /usr/local/lib (don't forget to run ldconfig). Of course you
  may use LD_LIBRARY_PATH, just make sure that the dymnamic linker
  can find the libraries.
  You don't need any other stuff out of the samba-tng package,
  not even the header files. I took the header files and hacked
  them up to fit my purposes. Yes, it's a mess, but as long as
  there aren't header files suitable to write samba-tng-based
  applications there's probably no other way to do it. And hey,
  it's alpha software, so what...?
- php
  I'm using php 4.0.6, other versions may or may not work.
  There's currently no way to compile the msrpc-binding statically
  into the php-module/-executable, it will only work as a php module.
  The suggested way is:
  Compile the php package as usual, i.e. without doing anything
  special for the msrpc-binding; I strongly recommend you to use
  the cgi-version of php for your testing purposes, as it will
  probably dramatically destabalize your web server if you're
  using a php-module with alpha-code in it!
  # cd /path/to/php-4.0.6-test/ext
  # tar xzvf /path/to/php-msrpc-{VERSION}.tar.gz
  # tar xzvf /path/to/php-msrpc-headers-{RELEASE-DATE}.tar.gz
  # cd msrpc
  # ./compile
  The compile shell script is just a dirty hack. If you don't like
  it, feel free to contribute a Makefile.
  Now copy the php binary and the msrpc.so module to your test location
  (how about /usr/local/phptest?) and modify your php.ini file to
  include the msrpc.so module. It's a good idea to put the php.ini file
  in the same directory as the other testing stuff, so you might
  want to use the --with-config-file-path=/usr/local/phptest when
  configuring php. Now it's time to test the mess. If you wonder what
  php-commands are now available, have a look at the file named COMMANDS
  included in the tar ball. If you want more information about the
  supported parameters, have a look at msrpc.c. If you want more commands,
  feel free to contribute :-)

Please don't send me comments like "it doesn't work for me". I don't
have time to write detailed instructions about compiling the whole stuff.

The project page currently is http://www.baycom.org/~hannej/php-msrpc

Cheers, Jonny, jonny@1409.org