Jump to:
| Project: | LDAP integration |
| Version: | 6.x-1.0-alpha2 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
In Drupal 5, I would add a new user and give them specific roles at the same time. Then I would click save, then edit the user and add the LDAP User DN information so that they could login using their LDAP username/password.
I recently upgraded to Drupal 6 and with the newest version of LDAP Integration, I don't see a field to add their LDAP User DN.
As a result, if I add the new user and their roles before they login, it creates a drupal account. They then get an error message if they try to login with their LDAP account. I now have to instruct them to login first and then I can go edit the user to add them to specific roles.
Is there a way where I can setup an LDAP account in specific roles before the user logins in?
Comments
#1
Have you tried using "Associate local account with the LDAP entry" settings option?
#2
That seems to have fixed it. Thanks.
#3
#4
Automatically closed -- issue fixed for 2 weeks with no activity.
#5
I added users with user_import module. The problem is that a user already imported is not synchronised with ldap user when he logs in, and drupal try to add this user although he is already referenced in the users table of drupal database.
Here are the logs for this problem :
Dec 8 17:08:12 v-dhf-1 drupal: http://dhf.toto.fr|1260288492|php|172.20.1.43|http://dhf.toto.fr/cas?ticket=ST-359968-aGEVPJVZPj1||1||Duplicate entry 'tata_m' for key 'name' query: INSERT INTO drupal_users (name, pass, init, status, created, access) VALUES ('tata_m', 'ed367', 'tata_m', 1, 1260288492, 1260288492) in /drupal/modules/user/user.module on line 327.I tried using "Associate local account with the LDAP entry" settings option, but when I checked it and save this configuration, it is always lost when drupal shows again the ldap configuration page and the option "Disallow login and log the conflict" is checked once again.
So how can I associate the imported users with ldap users ?
#6
This problem was resolved by checking, in cas module, the option "If Drupal is not the user repository, should cas highjack users with the same name?".
When the option is checked, a user logged in via cas/ldap is associate why his account already created with user_import.