[one-users] New authentication type
Carlos Martín Sánchez
cmartin at opennebula.org
Fri Apr 12 07:49:11 PDT 2013
Hi,
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
Cheers
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
On Fri, Apr 12, 2013 at 4:07 PM, Christoph Pleger <
Christoph.Pleger at cs.tu-dortmund.de> wrote:
> Hello,
>
> > That's how the LDAP driver works [1]. To create new users automatically
> on
> > their first login, copy or link this dir to your drivers:
>
> Authentication itself is successful now, but I get another error now:
>
> ---snip---
>
>
> Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: LOG D 14
> authenticate: Radius-Authenticating christoph.pleger, with password ****
>
> Fri Apr 12 15:35:22 2013 [AuM][I]: authenticate: Radius-Authenticating
> christoph.pleger, with password ****
> Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: LOG I 14 ExitCode: 0
>
> Fri Apr 12 15:35:22 2013 [AuM][I]: ExitCode: 0
> Fri Apr 12 15:35:22 2013 [AuM][D]: Message received: AUTHENTICATE SUCCESS
> 14 -
>
> Fri Apr 12 15:35:22 2013 [AuM][E]: Can't create user: . Driver response:
> ---snip---
>
> So far, I changed the following things:
>
>
> 1. Set ':auth: opennebula' in /etc/one/sunstone-server.conf
>
> 2. Set authn = "ssh,x509,ldap,server_cipher,server_x509,radius,default" in
> /etc/one/oned.conf
>
> 3. Created /usr/lib/one/ruby/radius_auth.rb
>
> 4. Created /var/lib/one/remotes/auth/radius/authenticate
>
> 5. Created a link /var/lib/one/remotes/auth/default ->
> /var/lib/one/remotes/auth/radius
>
>
> I have attached my files radius_auth.rb and authenticate. Sorry if my ruby
> is not good, I am a really new newbie to ruby.
>
> Regards
> Christoph
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130412/60b3dd08/attachment-0001.htm>
More information about the Users
mailing list