Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with large datasets #41

Open
volfco opened this issue Jan 2, 2014 · 0 comments
Open

Issues with large datasets #41

volfco opened this issue Jan 2, 2014 · 0 comments

Comments

@volfco
Copy link

volfco commented Jan 2, 2014

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': ['uid0000@uni.edu'], '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': ['something@uni.edu'], '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@uni.edu"], :departmentnumber=>["undefined"], :homedirectory=>["/home/username"], :unieduaccounttype=>["studemp"], :ou=>["studemp"], :initials=>["cm"], :uidnumber=>["9104"], :gidnumber=>["5006"]}>> info=#<omniauth::authhash::infohash description=nil email="email@uni.edu" 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant