Hi,
Would it be possible to specify a column as an ldap login string when importing users, and also an alternate login name?
Compatibility with these 2 modules:
http://drupal.org/project/ldap_integration
http://drupal.org/project/alt_login

So for example our site will have hundreds of users, all of who authenticate against an ldap database. I'd like to import their accounts from a spreadsheet, but specify the ldap authentication string, too, which can look something like this for example:

"uid=myusername,cn=users,dc=myserver,dc=ed,dc=mydomain,dc=edu"

And the alternate login module is so they can have their real (first and last) names displayed on Drupal, which still using a traditional lowercase username to login to LDAP.

CommentFileSizeAuthor
#1 alt_login.inc_.txt738 bytesdugh
#1 ldapauth.inc_.txt856 bytesdugh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dugh’s picture

FileSize
856 bytes
738 bytes

Here are extensions that do this.
The alt_login one lets you pick a column to user for the alternative login name.
And the ldapauth one lets you set whether the 'use ldap authentication' checkbox is checked for each user. The ldap_dn string I found didn't need to be set, since it is filled in automatically when the user first logs in.

dugh’s picture

Status: Active » Needs review
Robert Castelo’s picture

Would appreciate any feedback that these two support files work as advertised.

I'm not set up to test them, but I can review them for code quality and security.

aaroninaustin’s picture

Could you explain how to use this LDAP patch? It doesn't seem to be a standard patch file, unless I'm confused. I have a test environment and would be happy to give some feed back on it. We've been using the LDAP module for a while and have run into this problem a couple times and this would be really helpful for us.

sylvaticus’s picture

Any news on the status of this feature on the 6.x branch? We are authenticating against our Faculty LDAP server but users are not created until their first login (if any!) while we would like to mass-import all users at the beginning of every year!

paranormals’s picture

Hello, I would like to help test the LDAP portion of this fix. I am unclear where I should be putting this txt file or its contents for it to work? I have a site up and running using LDAP and would love this functionality. Any advice on where I should be putting this code to test it out? It does not look like other patches I have tried.

Thanks
Mark

paranormals’s picture

After working with this some more Im not sure the LDAP patch is even necessary. I set up an import of users and imported them into Drupal using the user_import module and set their passwords to "Password". I set the username to their LDAP username for each user. I imported the users. After import I could log into each account using their LDAP username and "Password" as a password as expected. I then attempted to log in as the LDAP username with their LDAP password and it worked. After logging in with the users LDAP password, "Password" no longer works as a password as expected. Each user after authenticating with their LDAP password now lists correctly that they are LDAP Authentication under user. So what was this LDAP module patch supposed to do differently?

Thanks
Mark

Anonymous’s picture

When importing users, their ldap accounts should be created, just as they are outside this module when a user requests an account. To be clear, ldap integration support writing to the ldap repository, allowing one to update some of their ldap account information (user, password). I just imported 80 users from a csv file, and they do not have ldap accounts, which they should now have.

Daniel Wentsch’s picture

Could someone please help me getting the patch alt_login.inc to work on Drupal 6?
I placed alt_login.inc inside user_import/supported/ and I do get the select option "Alternate Login" in the select box of the import dialog.
No data is being imported though.

Update:
Found a working user_import.inc here: #578136: alt_login integration

Pomliane’s picture

Status: Needs review » Closed (won't fix)

This version of User Import is not supported anymore. The issue is closed for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.

This issue has been automagically closed by a script.