I’m trying to authenticate users using Google LDAP and it’s not working. Login process stay in a delay of 30 secs aprox that on the logs appears:
[Z0][ReM][D]: Req:2626 UID:-1 IP:127.0.0.1 one.user.info invoked -1, 0
[Z0][ReM][E]: Req:2626 UID:- one.user.info result FAILURE [one.user.info] User couldn’t be authenticated, aborting call.
I’ve installed and configured stunnel. Querys directly using openldapsearch are working against localhost:1636 port. The problem is when I’m doing the login using web and cli.
My /etc/one/auth/ldap_auth.conf is:
server 1:
Ldap user able to query, if not set connects as anonymous. For
Active Directory append the domain name. Example:
Administrator@my.domain.com
#:user: ‘admin’
#:password: ‘password’
# Ldap authentication method
:auth_method: :simple
# Ldap server
:host: localhost
:port: 1636
# Connection and authentication timeout
#:timeout: 15
# Uncomment this line for tls connections, use :simple_tls or :start_tls
#:encryption: :plain
#:tls_options:
# :verify_mode: 0
:bind_dn: 'cn=user'
:bind_pw: 'password'
# base hierarchy where to search for users and groups
:base: 'dc=xxx,dc=cat'
# group the users need to belong to. If not set any user will do
#:group: 'cn=cloud,ou=groups,dc=domain'
# field that holds the user name, if not set 'cn' will be used
:user_field: 'mail'
#:filter: '(mail=%s)'
#:user: 'user'
#:password: 'password'
:timeout: 5
#:disable_referrals: true
# for Active Directory use this user_field instead
#:user_field: 'sAMAccountName'
# field name for group membership, by default it is 'member'
#:group_field: 'member'
# user field that is in the group group_field, if not set 'dn' will be used
#:user_group_field: 'dn'
# Generate mapping file from group template info
:mapping_generate: false
# Seconds a mapping file remain untouched until the next regeneration
:mapping_timeout: 300
# Name of the mapping file in OpenNebula var directory
:mapping_filename: server1.yaml
# Key from the OpenNebula template to map to an AD group
## commented:mapping_key: GROUP_DN
# Default group ID used for users in an AD group not mapped
## commented:mapping_default: 1
# use RFC2307bis for groups
# if false, depending on your LDAP server configuration,
# set user_field and user_group_field 'uid' and group_field 'memberUid'
:rfc2307bis: true
# DN of a group, if user is member of that group in LDAP, this user
# will be group admin of all mapped LDAP groups in OpenNebula.
#:group_admin_group_dn: 'cn=admins,ou=groups,dc=domain'
I’ve installed on the server the ruby-net-ldap
Also the file /etc/one/oned.conf:
AUTH_MAD = [
EXECUTABLE = “one_auth_mad”,
AUTHN = “ssh,x509,ldap,server_cipher,server_x509,saml”
]
I have the user created with authentication driver as ldap and the username is the full email user.
Can anyone help me about this topic or give me some clue?
Thanks,
Jordi.
Can anyone help me about this issue?
Versions of the related components and OS (frontend, hypervisors, VMs):
Steps to reproduce:
Current results:
Expected results: