Opened 17 years ago

Closed 16 years ago

#34 closed task (worksforme)

Set up Drupal to create new user accounts in LDAP

Reported by: tmitchell Owned by: tmitchell
Priority: normal Milestone:
Component: WebSite Keywords: ldap drupal
Cc: warmerdam@…

Description

Change History (7)

comment:1 by tmitchell, 17 years ago

Status: newassigned
  • It appears that this may be available via the Drupal LDAP Module right out-of-the-box as long as advanced module settings include certain rights as Manager in LDAP (which ours do) # To test, Kanhaiya and I had to switch the LDAP Module to only allow authentication through LDAP and not through Drupal's internal user table. This was only done for a minute as it has the potential to lock out many Drupal users. # Then new user registration was enabled and a dummy user registered. This worked as normal. # Remaining question was whether this creates the user account in LDAP or not. Initial tests show it did not, though the user was able to log in when only LDAP authentication was enabled.

comment:2 by warmerdam, 17 years ago

Cc: warmerdam@… added

comment:3 by tmitchell, 17 years ago

(Fixing formatting...)

  • It appears that this may be available via the Drupal LDAP Module right out-of-the-box as long as advanced module settings include certain rights as Manager in LDAP (which ours do)
  1. To test, Kanhaiya and I had to switch the LDAP Module to only allow authentication through LDAP and not through Drupal's internal user table. This was only done for a minute as it has the potential to lock out many Drupal users.
  2. Then new user registration was enabled and a dummy user registered. This worked as normal.
  3. Remaining question was whether this creates the user account in LDAP or not. Initial tests show it did not, though the user was able to log in when only LDAP authentication was enabled.

comment:4 by warmerdam, 17 years ago

I have written a simple forms driven python script to create new ldap users:

https://www.osgeo.org/cgi-bin/ldap_create_user.py

Hopefully this will take some of the pressure off...

comment:5 by warmerdam, 17 years ago

Priority: criticalnormal

Tyler,

Should we close this ticket, and just use ldap_create_user.py?

I'd note for posterity that there are various ldap related resources at:

http://www.osgeo.org/osgeo_userid

comment:6 by tmitchell, 16 years ago

LDAP authentication is working fine for Drupal now. I would also like to make it possible for users to modify their attributes, but it seems our LDAP set up does not allow this (i.e. writing only can be done by the LDAP Manager user). Can anyone confirm this?

comment:7 by tmitchell, 16 years ago

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.