Commit a775f3eb authored by Baptiste Jonglez's avatar Baptiste Jonglez
Browse files

Add email address to LDAP (for Sympa login)

parent d183023e
......@@ -217,6 +217,7 @@ class Member(CoinLdapSyncMixin, AbstractUser):
# Make sure password is hashed
ldap_user.password = utils.ldap_hash(self._password_ldap)
ldap_user.mail = self.email
# Store SSH keys
ldap_user.sshPublicKey = self.get_ssh_keys()
......@@ -402,6 +403,9 @@ class LdapUser(ldapdb.models.Model):
password = CharField(db_column=b'userPassword', max_length=255)
uidNumber = IntegerField(db_column=b'uidNumber', unique=True)
gidNumber = IntegerField(db_column=b'gidNumber', default=2000)
# Used by Sympa for logging in.
mail = CharField(db_column=b'mail', max_length=255, blank=True,
unique=True)
homeDirectory = CharField(db_column=b'homeDirectory', max_length=255,
default='/tmp')
loginShell = CharField(db_column=b'loginShell', max_length=255,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment