felixrupp / user_cas

This app provides CAS authentication support for ownCloud and Nextcloud, using the phpCAS library of jasig/apereo.
Other
21 stars 24 forks source link

Group not created / associed #63

Closed sparadrus closed 5 years ago

sparadrus commented 5 years ago

Hi, When a CAS User logon, this Name and Mail are correctly retrieved and updated from CAS Attributes, but the memberOf attribute not. CAS send this format of group (from AD) :

memberOf=CN=ADM-Informatique,OU=MyOU,DC=DOMAIN,DC=LAN

I don't understand.. have you any idea please? Thanks !

in cas.log : 2019-08-21 19:41:37,729 INFO [org.apereo.cas.authentication.AbstractAuthenticationManager] - <Authenticated principal [mylogin] with attributes [{cn=mylogin, displayName=NAME FAMNAME, givenName=NAME, mail=mail@domain.fr, memberOf=CN=ADM-Informatique,OU=MyOU,DC=DOMAIN,DC=LAN, sAMAccountName=mylogin, sn=FAMNAME}] via credentials [[mylogin]].>

felixrupp commented 5 years ago

Hi @sparadrus

user_cas is currently not able to use custom group attribute’s formats. Also see #51 as a duplicate. You have to change the format of the CAS-Server instance to follow the CAS protocol default.

Regards, Felix

sparadrus commented 5 years ago

Ok thanks and sorry for the duplicate. Excuse me but what format is excepted for the group? Thanks, Regards