# Active directory authentication timeout if password contains a space

**URL:** <https://forum.opennebula.io/t/active-directory-authentication-timeout-if-password-contains-a-space/1387>\
**Category:** Product Support\
**Created:** [October 27, 2015, 1:32pm UTC](https://forum.opennebula.io/t/active-directory-authentication-timeout-if-password-contains-a-space/1387 "2015-10-27T13:32:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![logger](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/logger/32/4487_2.png) [@logger](https://forum.opennebula.io/u/logger)\
**Post date:** [October 27, 2015, 1:32pm UTC](https://forum.opennebula.io/t/active-directory-authentication-timeout-if-password-contains-a-space/1387/1 "2015-10-27T13:32:52Z")

</div>

Hi, I believe i have read the recommended posts related to this issue.  
I am running 4.14.0 on centos 7 and am able to authenticate via LDAP against Active Directory. As i understand the group feature is not supported so any user under the specified OU can authenticate. I auto assign them to some group with no permissions (presumably i can edit the auth script myself to search groups).

However i find that users with spaces in their passwords fail after a long timeout. the message returned by the gui is “No answer from server. Is it running?” if i type the password incorrectly i get an immediate invalid user or pass error. Other special chars appear ok. Sunstone.log:

```
Tue Oct 27 14:20:33 2015 [E]: User x could not be authenticated
Tue Oct 27 14:20:33 2015 [E]: Net::ReadTimeout
Tue Oct 27 14:20:33 2015 [I]: Unauthorized login attempt

```

Oned.log does not register appear to this event.

Encoding the users pass with %20 does not seem to help either.

Has anyone else experienced this issue? Im not sure where to see more detailed error details.

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![jfontan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jfontan/32/18_2.png) [@jfontan](https://forum.opennebula.io/u/jfontan)\
**Post date:** [October 29, 2015, 9:51am UTC](https://forum.opennebula.io/t/active-directory-authentication-timeout-if-password-contains-a-space/1387/2 "2015-10-29T09:51:16Z")

</div>

Does it happen using Sunstone web interface or also using the CLI? Is `encode_user_password` set to true in `sunstone-server.conf`?

[http://docs.opennebula.org/4.14/administration/authentication/ldap.html#enabling-ldap-auth-in-sunstone](http://docs.opennebula.org/4.14/administration/authentication/ldap.html#enabling-ldap-auth-in-sunstone)

---

<div class="post-metadata">

**Author:** ![logger](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/logger/32/4487_2.png) [@logger](https://forum.opennebula.io/u/logger)\
**Post date:** [October 29, 2015, 2:30pm UTC](https://forum.opennebula.io/t/active-directory-authentication-timeout-if-password-contains-a-space/1387/3 "2015-10-29T14:30:33Z")

</div>

That was it. Typical sorry for the inconvenience and thanks.
