Our LDAP setup does not have email attributes. However, a user's email address can be generated from its username by simply suffixing it with our domain. An option to set such a suffix would be very convenient in many setups.

Comments

verta’s picture

I experienced an error condition regarding this part of the code. Some of our LDAP user accounts do not have email addresses. When they authenticate, they of course have no email address in their Drupal user account, which makes the core treat them as "Unverified" and the core user module puts that string on the block.

I installed the Real Names module which has an option to suppress this, but if this issue could be handled at account creation time, it would be a nice feature.

http://drupal.org/project/realname

johnbarclay’s picture

Assigned: Unassigned » johnbarclay
cgmonroe’s picture

Status: Active » Fixed

Unless someone supplies a patch or re-opens this, I'm going to mark this as fixed for the following reason:

There is a hook_ldapauth_create( $account ) available. The latest dev has an ldapauth.api.php documentation file with details and an example of how to use this in a site specific module to solve this issue.

IMHO trying to make LDAP Integration's Admin UI be all things to all people will result in too many options and possible coding conflict issues. It's much better to supply generic hooks that people can use to tailor things to their own site needs... and only add stuff that a fair number of folks are asking for... (or come with well written patches :) ).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.