15 lines
324 B
Bash
Executable File
15 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
#% set-mifare-hash <uid> <hash>
|
|
|
|
. $LIB_DIR/common.sh
|
|
login="$1"
|
|
hash="$2"
|
|
|
|
echo "$login: Adding mifare hash key '$hash'"
|
|
|
|
tag-begin "Settings mifare hash for user '$login'"
|
|
basic-attr-op add "uid=$login,ou=People,dc=hackerspace,dc=pl" mifareIDHash "$hash"
|
|
tag-end
|
|
|
|
msg "Don't forget to commit the LDAP changes"
|