Unable to set non-expiring login token to LDAP user

I have configured the opennebula with LDAP. User is successfully authenticate and login in opennebula.
But, I cannot set the non-expiring token to that user using XML-RPC API. When i set the token passing -1 as attribute, token lifetime is set to 1 day and not non-expiring.