You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get GitLab to work with my school's LDAP server, but I am encountering an issue where one type of account works, while another does not. There are two types of accounts, Student and Service. Service accounts work fine, but Student accounts do not. I believe this issue stems from the amount of data returned for Student Accounts.
Here is a dump from both types of accounts (using a python script) to the actual returned data.
Student account: {'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': ['uid0000'], '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/uid0000'], 'mail': ['[email protected]'], 'ou': ['Student'], 'givenName': ['Colum'], 'cn': ['Colum Mcgaley']}
On the Service accounts, this gem returns an email address along with some other attributes, while on Student accounts, it returns nil. This is the issue I am encountering.
The text was updated successfully, but these errors were encountered:
I am trying to get GitLab to work with my school's LDAP server, but I am encountering an issue where one type of account works, while another does not. There are two types of accounts, Student and Service. Service accounts work fine, but Student accounts do not. I believe this issue stems from the amount of data returned for Student Accounts.
Here is a dump from both types of accounts (using a python script) to the actual returned data.
Student account:
{'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': ['uid0000'], '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/uid0000'], 'mail': ['[email protected]'], 'ou': ['Student'], 'givenName': ['Colum'], 'cn': ['Colum Mcgaley']}
Service Account
{'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']}
As you can see, there is a lot more data returned for the Student accounts, but they both have the same attributes.
Here is what omniauth-ldap returns:
Service Account:
<omniauth::authhash credentials=#<omniauth::authhash> extra=#<omniauth::authhash raw info=#<net::ldap::entry:0x007fede156a050 @myhash={:dn=>["uid=username,ou=people,dc=uni,dc=edu"], :objectclass=>["uniobject", "unieduidentity", "inetorgperson", "person", "organizationalperson", "unieduenrollment", "posixaccount", "unieduauth", "unieduorganization"], :uid=>["username"], :mobile=>["000-700-0000"], :givenname=>["colum"], :sn=>["mcgaley"], :cn=>["colum mcgaley"], :displayname=>["colum mcgaley"], :mail=>["[email protected]"], :departmentnumber=>["undefined"], :homedirectory=>["/home/username"], :unieduaccounttype=>["studemp"], :ou=>["studemp"], :initials=>["cm"], :uidnumber=>["9104"], :gidnumber=>["5006"]}>> info=#<omniauth::authhash::infohash description=nil email="[email protected]" first name="colum" image=nil last name="mcgaley" location=", , , " mobile="000-000-0000" name="colum mcgaley" nickname="username" phone=nil title=nil uid="uid=username,ou=people,dc=uni,dc=edu" url=nil> provider="ldap" uid="uid=username,ou=people,dc=uni,dc=edu">".
Student:
<omniauth::authhash credentials=#<omniauth::authhash> extra=#<omniauth::authhash raw info=#<net::ldap::entry:0x007fede16b7a48 @myhash={:dn=>["uid=uid0000,ou=people,dc=uni,dc=edu"], :objectclass=>["uniobject", "unieduidentity", "inetorgperson", "person", "organizationalperson", "unieduenrollment", "unieduorganization", "posixaccount", "unieduauth"], :uid=>["uid0000"], :uidnumber=>["33000"], :gidnumber=>["0000"], :cn=>["colum mcgaley"], :ou=>["student"], :loginshell=>["/bin/tcsh"], :homedirectory=>["/home/uid0000"], :unieduaccounttype=>["student"]}>> info=#<omniauth::authhash::infohash description=nil email=nil first name=nil image=nil last name=nil location=", , , " mobile=nil name="colum mcgaley" nickname="uid0000" phone=nil title=nil uid="uid=uid0000,ou=people,dc=uni,dc=edu" url=nil> provider="ldap" uid="uid=uid0000,ou=people,dc=uni,dc=edu">".
On the Service accounts, this gem returns an email address along with some other attributes, while on Student accounts, it returns nil. This is the issue I am encountering.
The text was updated successfully, but these errors were encountered: