Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
zorun
coin
Commits
a775f3eb
Commit
a775f3eb
authored
Feb 10, 2015
by
Baptiste Jonglez
Browse files
Add email address to LDAP (for Sympa login)
parent
d183023e
Changes
1
Hide whitespace changes
Inline
Side-by-side
coin/members/models.py
View file @
a775f3eb
...
...
@@ -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
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment