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

Changing the Username xpath attribute #69

Open
jojospecial opened this issue Jan 29, 2020 · 0 comments
Open

Changing the Username xpath attribute #69

jojospecial opened this issue Jan 29, 2020 · 0 comments

Comments

@jojospecial
Copy link

Hello. I want to use as an username the item marked in bold (9999999991) in the CAS response I get from the server:

Array ( [edupersonorgunitdn:businesscategory:extended] => Array ( [0] => ou=test,ou=ach,ou=units,dc=sch,dc=gr;ΕΚΠΑΙΔΕΥΤΙΚΗ ΜΟΝΑΔΑ - ΕΜ [1] => ou=test,ou=ach,ou=units,dc=sch,dc=gr;ΔΟΚΙΜΑΣΤΙΚΗ ΜΟΝΑΔΑ [2] => ou=test,ou=ach,ou=units,dc=sch,dc=gr;ΔΗΜΟΣΙΑ [3] => ou=ach,ou=units,dc=sch,dc=gr;ΝΟΜΟΣ )

[edupersonorgunitdn:gsnunitcode:extended] => ou=test,ou=ach,ou=units,dc=sch,dc=gr;9999999991

[uid] => testgym
[mail] => gym@test.ach.sch.gr

[businesscategory] => Array ( [0] => ΔΕΥΤΕΡΟΒΑΘΜΙΑ [1] => ΔΟΚΙΜΑΣΤΙΚΗ ΜΟΝΑΔΑ [2] => ΕΚΠΑΙΔΕΥΤΙΚΗ ΜΟΝΑΔΑ - ΕΜ )

[ou] => ΔΟΚΙΜΑΣΤΙΚΟΣ ΛΟΓΑΡΙΑΣΜΟΣ ΑΧΑΙΑΣ
[cn] => ΔΟΚΙΜΑΣΤΙΚΟ ΓΥΜΝΑΣΙΟ
[sn] => ΔΟΚΙΜΑΣΤΙΚΟ ΓΥΜΝΑΣΙΟ
[l] => ou=test,ou=ach,ou=units,dc=sch,dc=gr
[title] => ΓΥΜΝΑΣΙΟ - ΓΥΜ

[umdobject] => Account [edupersonorgunitdn:description:extended] =>
Array ( [0] => ou=test,ou=ach,ou=units,dc=sch,dc=gr;ΔΟΚΙΜΑΣΤΙΚΟΣ ΛΟΓΑΡΙΑΣΜΟΣ ΑΧΑΙΑΣ
[1] => ou=ach,ou=units,dc=sch,dc=gr;Αχαϊα )
[samlAuthenticationStatementAuthMethod] => urn:oasis:names:tc:SAML:1.0:am:password
[authenticationMethod] => gr.uoa.devel.cas.adaptors.ldap.BindLdapAuthenticationHandler )

I cannot understand how I can set it instead of "string(cas:uid)" that is already set in the Username xpath * field of the CAS plugin.

Any help would be much appreciated as I am in a production run of a platform that has to be used by schools and they cannot login using the default username, a think I did not know when I asked them to login and take action.

Thank you.

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