Hi GitLab Google Community!
I am trying to get GitLab to work with my school's LDAP, but I am unable to
get some accounts to work. There are two kinds of LDAP accounts, student
and service accounts. Service Accounts work fine with GitLab, but when I
try a student account, GitLab gives this error: *Could not authorize you
from LDAP because "(ldap) account must provide an uid and email address". *I
am working with 6.3 here. I think the issues stems from the amount of data
returned for student accounts. But, both account types return an email,
username, and full name as you can see below.
Here is my configuration:
ldap:
enabled: true
host: 'ldap.theuni.edu'
base: 'ou=people,dc=theuni,dc=edu'
port: 636
uid: 'uid' #'sAMAccountName'
method: 'ssl' # "ssl" or "plain"
allow_username_or_email_login: true
Here is a dump from both types of accounts.
Student account* (does not work)*:
{'uniEduStudent': ['0000-XXXX-000-000', '0000-XXXX-000-00',
'0000-XXXX-000-00', '0000-XXXX-000-00', '0000-XXXX-000-00',
'0000-XXXX-000-00', '0000-XXXX-000-00', '0000-XXXX-000-00',
'0000-XXXX-000-00', '0000-XXXX-000-00', '0000-XXXX-000-00',
'registered:current'], 'uniEduVanityName': ['colum'], 'displayName':
['Colum Mcgaley (Student)'], 'uid': ['cxm0000'], 'uniEduAccountType':
['Student'], 'title': ['Student'], 'objectClass': ['uniObject',
'uniEduIdentity', 'inetOrgPerson', 'person', 'organizationalPerson',
'uniEduEnrollment', 'uniEduOrganization', 'posixAccount', 'uniEduAuth'],
'loginShell': ['/bin/tcsh'], 'uniEduAffiliation': ['XXXXXXXXX', XXXXXXXXX',
'XXXXX', 'XXXXXXXX', 'XXXXX', 'XXXXXXXXXXXXXXXXX', 'Student', 'XXXXXXXX',
'XXXXXXXX'], 'uniEduPrimaryAffiliation': ['Student'], 'uidNumber':
['00000'], 'initials': ['CM'], 'mobile': ['900-5555-0000'], 'gidNumber':
['0000'], 'sn': ['Mcgaley'], 'homeDirectory': ['/home/usr0000'], 'mail':
['[email protected]'], 'ou': ['Student'], 'givenName': ['Colum'], 'cn':
['Colum Mcgaley']}
Service Account *(works):*
{'departmentNumber': ['undefined'], 'displayName': ['Colum McGaley'], 'cn':
['Colum McGaley'], 'uniEduAccountType': ['Studemp'],
'uniEduPrimaryAffiliation': ['Student'], 'objectClass': ['uniObject',
'uniEduIdentity', 'inetOrgPerson', 'person', 'organizationalPerson',
'uniEduEnrollment', 'posixAccount', 'uniEduAuth', 'uniEduOrganization'],
'uniEduAffiliation': ['Admissions', XXXXXXXX', 'XXXXX', 'XXXXXXXX',
'XXXXXX', 'XXXXXXXXXXXXXXXXX', 'XXXXXXX', 'XXXXXXXX', 'XXXXXXXX'],
'uidNumber': ['0000'], 'initials': ['CM'], 'mobile': ['000-000-0000'],
'gidNumber': ['0000'], 'sn': ['McGaley'], 'homeDirectory':
['/home/xxxxxx'], 'mail': ['[email protected]'], 'ou': ['Studemp'],
'givenName': ['Colum'], 'uid': ['something']}
Any ideas what the fix to this problem could be? Making modifications is
out of the question.
--
You received this message because you are subscribed to the Google Groups
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.