Page 1 of 1

[RE-RELEASE] HostServ

PostPosted: 01 Feb 2005, 03:57
by FrostyCoolslug
This is a module re-release, which should (in theory) fix the LIST bug people have recently been talking about, seems a null pointer referance causing a buffer overflow (well, when i looked at the src, that was the only thing that could POSSIBLY be causing it). If this doesnt fix the bug, i recommend adding an item to the hostserv list, then it will work correctly.

I plan on releasing a new hostserv which uses a single database, rather than the filesystem.

Thanks :)


------------------------------------------------------------
Hostserv is designed to automatically assign users vhosts when they idfentify for their nickname. Hostserv features the following commands.

Code: Select all
ADD     - Add a Vhost (IRCOpers Only)
DEL     - Remove a Vhost (IRCOpers Only)
LIST    - Lists all the vhosts (IRCOpers Only)
HELP    - Module Help (IRCOpers Only)
VERSION - Version information (All Users)


Services will log HostServ activity to #services. I recommend you secure this channel.

To Install:
Download the module at place it in ircservices-5.0.x/modules/misc/
Edit the MakeFile ircservices-5.0.x/modules/misc/Makefile
Add hostserv.so to the end of the 'MODULES =' line.
go to your ircservices-5.0.x folder, type 'make' and 'make install'.

The Module is now installed. Before it will run though, we will need some config entries :p

Go to your Library folder (where all your configs are) and create a folder called 'vhosts' (mkdir vhosts).

This is where all the vhosts will be stored, make sure nothing else goes into this folder! - I may improve this and make a proper database in the future, but for now, this is fine.

Open ircservices.conf and add at the bottom, add:
Code: Select all
LoadModule misc/hostserv

Now open modules.conf, and at the bottom, add:

Code: Select all
Module misc/hostserv
   HostDir           "/path/to/vhost/dir"
   HostServName      "HostServ" "The vhost Service"
EndModule


Now, restart services (I'd recommend against a rehash, as i've had lots of problems with it) and your hostserv will be installed :)

Download: http://www.chatspike.net/modules/hostserv.c
Mirror: http://www.servicescommunity.za.net/fil ... hostserv.c

Module Install Help

PostPosted: 12 Jun 2005, 00:43
by Turk
[root@Da misc]$ MakeFile ircservices-5.0.x/modules/misc/Makefile
-bash: MakeFile: command not found
how do you makefile ?
ircservices-5.0.5x ?

PostPosted: 20 Jun 2005, 02:25
by w00t
Sorry about the late reply :p

From the old hostserv thread:

To Install:
Download the module at place it in ircservices-5.0.x/modules/misc/
Edit the MakeFile ircservices-5.0.x/modules/misc/Makefile
Add hostserv.so to the end of the 'MODULES =' line.
go to your ircservices-5.0.x folder, type 'make' and 'make install'.

error

PostPosted: 03 Feb 2006, 08:41
by ysar68
Thanks for the hostserv module , but i have one problem
when i try to get hostserv list i get this error
i am using this command : /msg hostserv list


-irc.ysarnetwork.com- *** Global -- from services.ysarnetwork.com: PANIC! buffer = :ysar ! mailto:hostserv@services.ysarnetwork.com :list

PostPosted: 11 Feb 2006, 07:32
by w00t
Hi,

This is a known issue that occurs if you have no vhosts.

I have updated [well, rewritten] this module - and will seek permission to release it publically.

HostServ: Win32 Release

PostPosted: 14 Feb 2006, 11:47
by Paradox
I just switched over from Anope to IRCServices and the usage of using unreals implemented VHost block on the .conf is pretty much a shlep without HostServ. My problem being that the server & services are running on a win32 box (i know, tell me about all the problems - UNIX remains the best!) and I've been having trouble installing vb compilers as such - would anyone be willing to compile a .dll library for me if it can be done at all?

PostPosted: 16 Feb 2006, 18:35
by Ron2K
IRCServices won't compile with a VB compiler. You have to use Cygwin.

(HostServ used to not compile under Cygwin, I don't know if it works now.)