[ previous ] [ next ] [ threads ]
 From:  Stephane Dugravot <stephane dot dugravot at esstin dot uhp dash nancy dot fr>
 To:  m0n0wall at lists dot m0n0 dot ch
 Cc:  Jean-Michel Antoine <jean dash michel dot antoine at uhp dash nancy dot fr>, Christophe Dugravot <christophe dot dugravot at uhp dash nancy dot fr>
 Subject:  Re: [m0n0wall] Log LDAP auth
 Date:  Wed, 17 Nov 2004 10:07:20 +0100
Hello list,

I know "now" how to log ldap auth in syslog with the login and the 
IP/MAC address, via the /usr/local/captiveportal/index.php script (see 
below), with a syslog php command ...
But now, i have to change the script into the mfsroot.gz file.
I have find a script (here : 
apparently from Matt Juszczak) which can decompress and generate the 
whole file (generic-pc-1.2b2.img). The decompress command (D) is ok, but 
when i generate (G), i have the error message :

 > disklabel -BR md0 label.proto
disklabel: fopen label.proto: No such file or directory

I don't know enough FreeBSD and i can't find by myself what is wrong. I 
have FreeBSD 5.3 and i use "mdconfig" instead of "vnconfig" (that is 
what i run this batch file which use mdconfig).

- Did you knwo what is this error message ?
- Does-i have to use FreeBSD in version 4.x (and so vnconfig) ?
- What is the easiest  way to pack/unpack the img (or iso) file ?

Thank you.

PHP ADD in captiveportal file :

if ($_POST['auth_user']) {
    openlog("ldap", LOG_PID | LOG_PERROR, LOG_LOCAL0);
    $syslogauth=sprintf("Auth ldap %s %s %s", 

Stephane Dugravot a écrit :

> Hello,
> We use m0n0wall for our students, and the captive portal with 
> Authentification on a ldap server.
> The problem is that the association login ldap and IP address (or MAC 
> address) does not appeared in the logs (for us a remote syslog). It is 
> thus impossible to trace the logins in the event of problem ... I have 
> thought of transporting the "login" variable in pages PHP, then to 
> generate a call to the PHP syslog() function,
> Is this solution (or another) was already installed ? if not, have you 
> idea how to resolv this problem ?
> Thank you.
> Stephane.