When I try to assign an LDAP user to a role (e.g. user/17/edit ) I get the error

The e-mail address fake_address@somewhere is already registered. Have you forgotten your password?

is this a bug or a feature? I'd like to be able to assign users to roles even if they are LDAP authenticated.

Cheers,
Afan

Comments

js1’s picture

Is the fake_address@somewhere email address already being used by some other user, such as the admin user? I think that is more of a Drupal limitation than LDAP module limitation.

scafmac’s picture

Well? Any more info? Is this really a problem?

rar’s picture

Priority: Normal » Minor

Sorry about the delay between posts.

There are no Drupal users - only LDAP users ... except the administrative user which is why it perplexed me. I figured out the problem - the administrative user had the same e-mail address as the LDAP user I was trying to modify. So if you want to manage users with Drupal groups, then you can't have the administrative user (id=1) have an e-mail address that is the same as any one of your LDAP members. That's kind of a problem - but not so serious that I can't get around it - just annoying. If you want to postpone or close this bug - feel free to - but it is not fixed it is something that if it was noted in the README would have saved me some hunting time.

Cheers,

scafmac’s picture

Status: Active » Closed (fixed)

The problem is actually with core. Plain old drupal will not allow two users with the same email address.

gajillion’s picture

This has nothing to do with multiple users or identical e-mail addresses. I have the same issue and from what I can tell, it's caused by Drupal attempting to update the user and failing because the user information is provided by LDAP, not Drupal. You get the same error any time you try to modify anything about the user. Is there a fix for this?

gajillion’s picture

I immediately, and humbly retract that submission for having made the exact same mistake.

/brings out the wet noodle.