<div dir="ltr"><div style>Hi,</div><div style><br></div>Try to replicate the ldap authenticate script. To create new users, the driver needs to print to stdout 'drivername username password' when the authentication is successful<div>
<br></div><div style>Cheers</div></div><div class="gmail_extra"><br clear="all"><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
</div>
<br><br><div class="gmail_quote">On Fri, Apr 12, 2013 at 4:07 PM, Christoph Pleger <span dir="ltr"><<a href="mailto:Christoph.Pleger@cs.tu-dortmund.de" target="_blank">Christoph.Pleger@cs.tu-dortmund.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<div class="im HOEnZb"><br>
> That's how the LDAP driver works [1]. To create new users automatically on<br>
> their first login, copy or link this dir to your drivers:<br>
<br>
</div><div class="im HOEnZb">Authentication itself is successful now, but I get another error now:<br>
<br>
---snip---<br>
<br>
<br>
Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: LOG D 14<br>
authenticate: Radius-Authenticating christoph.pleger, with password ****<br>
<br>
Fri Apr 12 15:35:22 2013 [AuM][I]: authenticate: Radius-Authenticating<br>
christoph.pleger, with password ****<br>
Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: LOG I 14 ExitCode: 0<br>
<br>
Fri Apr 12 15:35:22 2013 [AuM][I]: ExitCode: 0<br>
Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: AUTHENTICATE SUCCESS<br>
14 -<br>
<br>
Fri Apr 12 15:35:22 2013 [AuM][E]: Can't create user: . Driver response:<br>
---snip---<br>
<br>
So far, I changed the following things:<br>
<br>
<br>
1. Set ':auth: opennebula' in /etc/one/sunstone-server.conf<br>
<br>
2. Set authn = "ssh,x509,ldap,server_cipher,server_x509,radius,default" in<br>
/etc/one/oned.conf<br>
<br>
3. Created /usr/lib/one/ruby/radius_auth.rb<br>
<br>
4. Created /var/lib/one/remotes/auth/radius/authenticate<br>
<br>
5. Created a link /var/lib/one/remotes/auth/default -><br>
/var/lib/one/remotes/auth/radius<br>
<br>
<br>
I have attached my files radius_auth.rb and authenticate. Sorry if my ruby<br>
is not good, I am a really new newbie to ruby.<br>
<br>
</div><div class="HOEnZb"><div class="h5">Regards<br>
Christoph<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</div></div></blockquote></div><br></div>