From 4471ac37e226516665e977a10e1f6013c7c27910 Mon Sep 17 00:00:00 2001
From: Frederik Lindenaar <frederik@lindenaar.nl>
Date: Mon, 26 Aug 2019 21:45:48 +0200
Subject: [PATCH] added ipaNTHash attribute as it is needed for other services (e.g. radius) as per common tutorials (it's the same data, just another name though this makes things easier)

---
 freeipa-service-ntlm.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/freeipa-service-ntlm.sh b/freeipa-service-ntlm.sh
index df2e136..b721baa 100755
--- a/freeipa-service-ntlm.sh
+++ b/freeipa-service-ntlm.sh
@@ -51,7 +51,7 @@ if ipa role-add "$ROLE_NAME" --desc="$ROLE_DESCRIPTION" > /dev/null 2>&1; then
    echo created role $ROLE_NAME
     if ipa privilege-add "$PRIV_NAME" --desc="$PRIV_DESCRIPTION" > /dev/null 2>&1; then
         echo created privilege $PRIV_NAME
-        if ipa permission-add "$PERM_NAME" --attrs=sambaNTPassword --attrs=sambaPwdLastSet --attrs=sambaSID --attrs=sambaAcctFlags --attrs=sambaDomainName --type=user --right=read --right=compare > /dev/null 2>&1; then
+        if ipa permission-add "$PERM_NAME" --attrs=ipaNTHash --attrs=sambaNTPassword --attrs=sambaPwdLastSet --attrs=sambaSID --attrs=sambaAcctFlags --attrs=sambaDomainName --type=user --right=read --right=compare > /dev/null 2>&1; then
             echo created permission $PERM_NAME
         else
             echo permission $PERM_NAME exists
--
libgit2 0.22.2