mirror of
https://github.com/nmasur/dotfiles
synced 2025-01-30 22:12:02 +00:00
add ldapl script
This commit is contained in:
parent
07a0d5185b
commit
043cd8ce5c
@ -48,11 +48,19 @@
|
|||||||
fi
|
fi
|
||||||
${ldap_script}/bin/ldap "$@" | jq '[ .[].member] | add'
|
${ldap_script}/bin/ldap "$@" | jq '[ .[].member] | add'
|
||||||
'';
|
'';
|
||||||
|
ldapl_script = pkgs.writeShellScriptBin "ldapl" ''
|
||||||
|
if ! [ "$LDAP_HOST" ]; then
|
||||||
|
echo "No LDAP_HOST specified!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
${ldap_script}/bin/ldap "*$@*" | jq -r '.[].name'
|
||||||
|
'';
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
ldap_script
|
ldap_script
|
||||||
ldapm_script
|
ldapm_script
|
||||||
ldapg_script
|
ldapg_script
|
||||||
|
ldapl_script
|
||||||
jq_parse
|
jq_parse
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user