chdemko / joomla-external-login

The External Login project allows Joomla! to manage external Authentication Servers
GNU General Public License v2.0
30 stars 19 forks source link

Groups xpath #19

Closed aronceroe closed 9 years ago

aronceroe commented 10 years ago

When using the attribute groupof as groups field, i receive a value in ldap dn format:

cas:memberofcn=group1,ou=division,dc=domain,dc=com/cas:memberof

I've tried to parse the string to use only the cn value with xpath using substring-after and substring-before funtions, but only works when there are only one group. With several groups i havent found a way to do it with xpath (at least with xpath 1.0):

cas:memberofcn=group1,ou=division,dc=domain,dc=com/cas:memberof cas:memberofcn=group2,ou=division,dc=domain,dc=com/cas:memberof

Do you know a way to do it, or its possible to add a function to do it in the module?

thanks

chdemko commented 10 years ago

I will have a look in some days.

chdemko commented 9 years ago

Unfortunately, it's not possible using xpath 1.0. You have to change your cas server in order to return groups in xml format.