www.cnblogs.com/ruiyqinrui

开源、架构、Linux C/C++/python AI BI 运维开发自动化运维。 春风桃李花 秋雨梧桐叶。“力尽不知热 但惜夏日长”。夏不惜,秋不获。@ruiY--秦瑞

python爬虫,C编程,嵌入式开发.hadoop大数据,桉树,onenebula云计算架构.linux运维及驱动开发.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1,安装net-ldap  addon ruby library for openldap

ldap for ruby implements client access LDAP protocol

use ldap as openNebula default auth module

OpenNebula issues:
missing step to use LDAP as default driver
cp -r /var/lib/one/remotes/auth/ldap /var/lib/one/remotes/auth/default

To make it working, we must add default in AUTH_MAD like in the following:

oned.conf

 AUTH_MAD = [
     executable = "one_auth_mad",
   authn = "ssh,x509,ldap,server_cipher,server_x509" 
  authn = "default,ssh,x509,ldap,server_cipher,server_x509" 
 ]

 SESSION_EXPIRATION_TIME = 900
great regards

The problem is that oneuser create myuser --driver ldap requires a password or an authentication method:

oneadmin@one:~$ oneuser create myldapuser --driver ldap
You have to specify an Auth method or define a password

This could be made optional, or even disabled per driver.

In LDAP you can create a special group for OpenNebula and in "auth.conf" set the group field (filter) accordingly. We got something like this:

  1. group the users need to belong to. If not set any user will do
    :group: 'cn=opennebula,ou=roles,dc=domain,dc=tld'

Only users that are a member of group "opennebula" are able to authenticate

 

 
posted on 2014-11-14 09:43  秦瑞It行程实录  阅读(214)  评论(0编辑  收藏  举报
www.cnblogs.com/ruiyqinrui