diff options
author | Lukas Oertel | 2023-01-22 18:12:17 +0100 |
---|---|---|
committer | Lukas Oertel | 2023-01-22 18:12:17 +0100 |
commit | e23a1db405b5181f66d2fad6636f89ec2c30948f (patch) | |
tree | 7953f44f081dbb133e01163f0c7a2278bdbb2df7 /scripts/hedgedoc-ldap_to_oauth2/ldap_users.sh | |
parent | edf1ec190d2125ac5dbdd38635bc0b09f6c71033 (diff) |
scripts/hedgedoc-ldap_to_oauth2: Init
Diffstat (limited to 'scripts/hedgedoc-ldap_to_oauth2/ldap_users.sh')
-rw-r--r-- | scripts/hedgedoc-ldap_to_oauth2/ldap_users.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/hedgedoc-ldap_to_oauth2/ldap_users.sh b/scripts/hedgedoc-ldap_to_oauth2/ldap_users.sh new file mode 100644 index 0000000..8d05fa5 --- /dev/null +++ b/scripts/hedgedoc-ldap_to_oauth2/ldap_users.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +while read p; do + USER=`echo $p | sed 's/\s.*$//'` + ID=`echo $p | sed 's/.* //'` + echo $USER $ID + sed 's/$UID/'$USER'/g' replacements.txt | sed 's/$LDAPID/'$ID'/g' - >> replacements.sql +done <ldap_users.txt |