I added some drush commands to ldap_integration, and in the process abstracted all the SQL out to a separate .inc file.

I'm attaching three files:

* ldapauth.db.txt - new include file containing all DB calls (rename to .inc)
* ldapauth.drush.txt - new include file for drush commands (rename to .inc)
* ldap.patch - a patch file for changes to existing code. This is patched against against 6.x-1.0-beta2, sorry about that. I'll try to patch the latest dev release at some point.

I've added drush commands for all ldapauth settings, but I haven't done any for groups or data yet.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lambic’s picture

FileSize
25.3 KB
7.67 KB
9.43 KB

grr my attachments disappeared, here they are again

lambic’s picture

FileSize
56.92 KB

Attached is my latest patch for this, with full db abstraction and ldapgroups.drush.inc, just need ldapdata.drush.inc now.

lambic’s picture

FileSize
76.26 KB

I've bought my changes in line with the 6.x-1.x-dev release, patch attached.

lambic’s picture

FileSize
78.53 KB

some bug fixes and moved ldapdata serialization into db.inc

John Franklin’s picture

Version: 6.x-1.0-beta2 » 6.x-1.x-dev
Issue summary: View changes
Status: Needs review » Needs work

I like the concepts presented in this patch, especially the extensive drush support, abstracted DB API. But it's four years out of date and needs to be re-rolled.