I have added the CAS module for drupal and I have been able to get drupal to authenticate with the CAS server at BYU. All works well, except when it goes to create the user account. The account is created just fine, but it can’t seem to pull the email address over. (I understand that the CAS server doesn’t have this information, but that you have to access the LDAP server to retrieve the email based upon the user ID, which I guess makes this more of an LDAP issue that a CAS one.)
I’m not getting any error messages anywhere, and I have configured the LDAP settings according to what I have seen.
Here are my ldap settings:
Name: BYU LDAP Server
LDAP Server: ldap.byu.edu
LDAP Port: 389
Base DN’s: ou=People;o=byu.edu
username attribute: uid
email attribute: mail
under the LDAP-Data part of module:
Mapped to LDAP Attributes: Same, but read-only mode.
then I have for the drupal ‘mail’ attribute the corresponding ldap attribute of ‘mail’
I was told that the LDAP server allows anonymous searches. Is this true? Can I pull an email from the LDAP server with only having their netID?
Has anyone done this before or have any input that could help?