Closed (fixed)
Project:
LDAP integration
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Jan 2010 at 22:14 UTC
Updated:
17 May 2012 at 23:00 UTC
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
Comment #1
verta commentedI 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
Comment #2
johnbarclay commentedComment #3
cgmonroe commentedUnless 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 :) ).