Mercurial > kallithea
changeset 1516:582686d76cb6 beta
fixes #256 fixes non ascii chars problems in base_dn on LDAP user creation
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 07 Oct 2011 13:47:55 +0200 |
parents | 87ec80c280bb |
children | 142a05597cba |
files | rhodecode/model/user.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/user.py Fri Oct 07 02:51:18 2011 +0200 +++ b/rhodecode/model/user.py Fri Oct 07 13:47:55 2011 +0200 @@ -28,6 +28,7 @@ from pylons.i18n.translation import _ +from rhodecode.lib import safe_unicode from rhodecode.model import BaseModel from rhodecode.model.caching_query import FromCache from rhodecode.model.db import User, RepoToPerm, Repository, Permission, \ @@ -111,7 +112,7 @@ new_user.api_key = generate_api_key(username) new_user.email = attrs['email'] new_user.active = True - new_user.ldap_dn = user_dn + new_user.ldap_dn = safe_unicode(user_dn) new_user.name = attrs['name'] new_user.lastname = attrs['lastname']