summaryrefslogtreecommitdiffstats
path: root/account.py
diff options
context:
space:
mode:
Diffstat (limited to 'account.py')
-rw-r--r--account.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/account.py b/account.py
index 8adc86a..763909a 100644
--- a/account.py
+++ b/account.py
@@ -154,9 +154,10 @@ class AccountService:
self._bind_as_admin()
dn = self._format_dn([('uid', account.uid),('ou','users')])
+ uid = self._escape(account.uid)
attr = [
('objectClass', ['top','inetOrgPerson']),
- ('uid', self._escape(account.uid)), ('sn', ' '), ('cn', ' '),
+ ('uid', uid), ('sn', 'n/a'), ('cn', uid),
('mail', account.mail)
]
self.connection.add_s(dn, attr)