Created
October 10, 2015 18:08
-
-
Save krschmidt/c09756eed306cb4f170a to your computer and use it in GitHub Desktop.
LDAP to CAS Converstion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO cas_user (uid, cas_name) | |
SELECT u.uid AS uid, u.name as cas_name | |
FROM users u | |
WHERE uid <> 0 AND | |
NOT EXISTS (SELECT cas_name FROM cas_user c WHERE c.cas_name = u.name) AND | |
u.name NOT LIKE "L0%"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Duplicate of https://www.drupal.org/node/1261232