15 lines
324 B
Plaintext
15 lines
324 B
Plaintext
|
#!/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"
|