This is the data that I get back from the rubycas server.
{
"cn"=>"--- - Toby Joiner",
"sn"=>"--- - Joiner",
"mail"=>"--- - tobyjoiner@xxxxxx.xxx",
"memberof"=>"---
- CN=All Users,OU=AllUsers,DC=bnw,DC=local
- CN=Administrators,CN=Builtin,DC=bnw,DC=local
- CN=Remote Desktop Users,CN=Builtin,DC=bnw,DC=local",
"givenname"=>"--- - Toby"
}
I am wondering if there is a way I am supposed pull this data out, right now I am doing:
first_name = session[:cas_extra_attributes][:sn].gsub('-','')
to remove the dashes. I am hoping I am just missing the built in way to get the extra data out from the rubycas server.