OpenWRT mit Wifidog + LDAP

L

LinusX

Jungspund
System:
Suse 10.2 X386 PDC (Samba)
installierte Dienste auf Server: LDAP, Wifidog Auth, Radius, Postgresql,

AP
WRT54gl
Openwrt Kamikaze 7.06
Dienste: Wifidog Gateway



Hallo! Habe ein kleines Problem bei der Authentifizierung von Wlan Clienten am Linksys AP. (WRT54GL)
Also bis jetzt funktioniert es wie folgt.
Die Clienten authentifizieren sich am Radius Server über EAP-MSCHAPv2. Die Clienten befinden sich in einer Userliste auf dem Server. Wifidog übernimmt dann die Authentifizierung der User per PostgreSQL. Das funktioniert auch ohne Probleme.

Ich möchte aber die Authentifizeierung über LDAP machen. Im Wifidog Modul gibt es auch die Möglichkeit dieses einzustellen.
Allerdings bin ich nicht so bewandert mit Quellcode und weiß nicht genau wo ich die Parameter für meine DB eintragen soll.

Kann mir jemand vieleicht sagen wo ich sie eintragen soll?
Poste die Datei im Anhang!

Vielen Dank
.
.
.
EDIT (autom. Beitragszusammenführung) :
.

***********************************************
Auschnitt aus AuthenticatorLDAP.php **
***********************************************

Ich habe schon an mehreren Stellen versucht die Parameter für LDAP einzurichten, aber immer Syntax Fehler erhalten. Wie trage ich sie hier ein??

Vielen Dank!!




class AuthenticatorLDAP extends Authenticator
{
/**
* Hostname of the LDAP server
*
* @var string

*/
private $mldap_hostname;

/**
* The Relative Distinguished Name of the LDAP server
*
* @var string

*/
private $mldap_rdn;

/**
* The password of the LDAP server
*
* @var string

*/
private $mldap_pass;

/**
* The base dn of the server
*
* @var string

*/
private $mldap_o;

/**
* It's the field that will be used in the LDAP search, i.e.: uid, mail,
* name server
*
* @var string

*/
private $mldap_filter;

/**
* AuthenticatorLDAP constructor
*
* Example: new AuthenticatorLDAP(IDRC_ACCOUNT_ORIGIN, '192.168.0.11',
* 'company.com', 'password', 'mail');
*
* @param string $account_orgin The network ID
* @param string $host Hostname of the LDAP server
* @param string $rdn The Relative Distinguished Name of the LDAP
* server
* @param string $rdn The Relative Distinguished Name of the LDAP
* server
* @param string $pass The password of the LDAP server
* @param string $o The base dn of the LDAP server
* @param string $filter It's the field that will be used in the
* LDAP search, i.e.: uid, mail, name server
*
* @return void
*/
public function __construct($account_orgin, $host, $rdn, $pass, $o, $filter)
{
// Call parent constructor
parent::__construct($account_orgin);

$this->mldap_hostname = $host;
$this->mldap_filter = $filter;
$this->mldap_o = $o;
$this->mldap_rdn = trim($rdn);
$this->mldap_pass = trim($pass);
}

/**
* Callback function used to LDAP accounts
*
* @param string $username Username of user
* @param string $password Clear text password of user
* @param string $ldap_server Hostname of LDAP server
* @param strong $o The base dn string of the LDAP server (possibly including o=)
* @param string $f It's the field that will be used in the
* LDAP search, i.e.: uid, mail, name server
* @param string $errmsg Reference of error message
*
* @return bool True if the parameter refers to a Local User account origin

*/
 
Zuletzt bearbeitet:

Ähnliche Themen

Samba-Server mit Univention Corporate Server

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

Verschlüsselung mit LDAP-Authentifizierung funktioniert nicht

Samba 4 Gast Zugang unter Ubuntu funktioniert nicht

JBidWatcher: Problem bei loading Auctions in Verbindung mit mySQL

Zurück
Oben