Read and import all users
mtndan - February 14, 2008 - 19:11
| Project: | LDAP integration |
| Version: | HEAD |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | duplicate |
Jump to:
Description
Hello,
I have ldapauth and ldapdata working with Profile module on my site. I would like to know the best way to create a "address book" type view of all users in the directory.
It appears that a user has to actually login before they are added as a Drupal user. Is there a way to:
a) bulk import all users from active directory
or
b) create a view/page that reads data from active directory to get this info
Thanks in advance,

#1
I also need help with this, please let me know if you found a solution. I will post whatever I come up with in the next couple of days. Thanks!
#2
My too, because profile module is causing warnings the fisrt time users from ldap login...
Thanks
#3
Hi folks,
I ended first using the user import module (http://drupal.org/project/user_import) to import all the users from LDAP (just the user ids and email addresses were necessary).
Next, I used the dev version of ldap integration to reset all the users to authenticate via ldap. That effectively talked to active directory and imported all the info automatically.
#4
I wonder if there is a cleaner way to do this?
#5
I wrote an extra function for the LDAP module to import all users from LDAP into Drupal,
and added the feature as a link in the admin section. Our admin needed to be able to do
configuration and role assigments, etc on users without having to wait for each one to
log in, to muck about with CSV files
The import can be run at any time and it will add any users not found. At the moment it doesn't
delete old users as that might play havoc with authors, etc.
This was done for v5 but could also do it for v6 if there is interest. I haven't checked if
this feature is already there in v6, but sounds like I should make this as plug-in to user import.
(Not sure mtndan from #3 had to create a CSV file first or could import directly. The admin in our case
was not a technical person who could do this.)
#6
Hmmm - should have looked at LDAPSync before posting here! Unfortunately the module was not available at the time.
#7
#396574: LDAPsync component