diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 5bec585b..5cdbaaf1 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -1823,7 +1823,8 @@ class adherent(base_proprietaire): self._data['gidNumber']=[ str(config.gid) ] self._data['homeDirectory']=[ preattr(home)[1] ] - self._data['gecos'] = [ preattr(strip_accents(self.Nom()))[1] + ',,,' ] + gecos = '%s %s' % tuple(map(lambda x: strip_accents(x.capitalize()), (self.prenom(), self.nom()))) + self._data['gecos'] = [ preattr(gecos)[1] + ',,,' ] return decode(login)