From: "Thibault Le Meur" Date: Fri, 1 Jun 2007 09:37:54 +0200 Message-ID: <047b01c7a41f$c7f59390$161ce4a0@...1015...> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_047C_01C7A430.8B7E6390" In-Reply-To: Subject: [Openvpn-devel] RE : OPENVPN with OPENLDAP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Hisham Aziz' , openvpn-devel@lists.sourceforge.net This is a multi-part message in MIME format. ------=_NextPart_000_047C_01C7A430.8B7E6390 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable There is 2 approaches for this. =20 One is tu use Brane F. Gracnar's addon :=20 http://frost.ath.cx/software/openvpn_auth/ =20 Another is to use Ralf L=FCbben's Radius plugin and delegate every backend search to the radius server. =20 I, personnally, prefer solution 2, however it might not cope with all your needs yet: for instance more work has to be done on the=20 radius dictionary so that all client configuration push options are supported (I need a little more time for this). For more info see: http://www.nongnu.org/radiusplugin/ =20 HTH, Thibault =20 =20 -----Message d'origine----- De : openvpn-devel-bounces@lists.sourceforge.net [mailto:openvpn-devel-bounces@lists.sourceforge.net] De la part de Hisham Aziz Envoy=E9 : jeudi 31 mai 2007 22:20 =C0 : openvpn-devel@lists.sourceforge.net Objet : *****SPAM***** [Openvpn-devel] OPENVPN with OPENLDAP Hi... Im just starting out with Openvpn, recently figured out how to create a tunnel connection between two machines. Now im wondering if i can use openvpn to connect and authenticate with an LDAP and query it to find certain objects with certain attribute using some sort of script. Basically Im asking here is in a typical client.conf file for a OpenVpn client where would I need to execute such a script to query the LDAP database and also what kind of script is best suited ( Perl, Python , SH, .bat ). SO the questions are how do i do this and where in the file do i do this? Here is my client.ovpn file. Obv it has to be changed, i was using this for making a simple server/client tunnel with another machine using certs and keys on my etoken smartcards. ************************************************** pull client dev tun proto udp remote 128.100.103.211 port 1194 resolv-retry infinite nobind persist-key persist-tun verb 3 ca "C:\\temp\\ca.crt" pkcs11-providers "C:\\PKI\\WC\\NSIS\\eTpkcs11.dll" pkcs11-slot-type label pkcs11-slot "eToken" pkcs11-id-type id pkcs11-id 06 ************************************************* Thanks _____=20=20 Discover the new Windows Vista Learn more! =20=20 ------=_NextPart_000_047C_01C7A430.8B7E6390 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message
Th= ere is 2=20 approaches for this.
 
One is=20 tu use Brane F. Gracnar's addon :

http://frost.ath.cx/software/openvpn_auth/

 

Another=20 is to use Ralf L=FCbben's Radius plugin and delegate every backend search t= o the=20 radius server.

 

I,=20 personnally, prefer solution 2, however it might not cope with all you= r=20 needs yet: for instance more work has to be done on the=20

radius=20 dictionary so that all client configuration push options are=20 supported  (I need a little mo= re time=20 for this).

For more=20 info see: http://www.nongnu.org/radiuspl= ugin/

 

HTH,

Thibault

 

 

-----Message d'origine-----
De :=20 openvpn-devel-bounces@lists.sourceforge.net=20 [mailto:openvpn-devel-bounces@lists.sourceforge.net] De la part de= =20 Hisham Aziz
Envoy=E9 : jeudi 31 mai 2007 22:20
=C0&n= bsp;:=20 openvpn-devel@lists.sourceforge.net
Objet : *****SPAM*****= =20 [Openvpn-devel] OPENVPN with OPENLDAP

Hi...

Im= just=20 starting out with Openvpn, recently figured out how to create a tunnel=20 connection between two machines. Now im wondering if i can use openvpn to= =20 connect and authenticate with an LDAP and query it to find certain object= s=20 with certain attribute using some sort of script. Basically Im asking her= e is=20 in a typical client.conf file for a OpenVpn client where would I need to= =20 execute such a script to query the LDAP database and also what kind of sc= ript=20 is best suited ( Perl, Python , SH, .bat ).

SO the questions are h= ow do=20 i do this and where in the file do i do this?
Here is my client.ovpn f= ile.=20 Obv it has to be changed, i was using this for making a simple server/cli= ent=20 tunnel with another machine using certs and keys on my etoken=20 smartcards.

**************************************************
= pull
client

dev=20 tun
proto udp
remote 128.100.103.211

port 1194
resolv-ret= ry=20 infinite
nobind

persist-key
persist-tun
verb 3

ca= =20 "C:\\temp\\ca.crt"

pkcs11-providers=20 "C:\\PKI\\WC\\NSIS\\eTpkcs11.dll"
pkcs11-slot-type label
pkcs11-slo= t=20 "eToken"

pkcs11-id-type id
pkcs11-id=20 06
*************************************************


Thanks=




Discover the new Windows Vista Learn more! ------=_NextPart_000_047C_01C7A430.8B7E6390--