Skip to content

Commit

Permalink
feat: update migration scripts to use FQDN instead of hardcoded DN
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Nov 14, 2024
1 parent 873ae59 commit 1c7aec1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Host=$(/sbin/e-smith/config get DomainName)
# Search for Samba or LDAP domain
domain=$(/sbin/e-smith/config getprop sssd Realm | tr '[:upper:]' '[:lower:]')
if [ -z "$domain" ]; then
domain="directory.nh"
domain=$(hostname -f)
fi

# we find admin users from jabberadmins group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ ns8-action --attach wait "${IMPORT_TASK_ID}"
# Search for Samba or LDAP domain
domain=$(/sbin/e-smith/config getprop sssd Realm | tr '[:upper:]' '[:lower:]')
if [ -z "$domain" ]; then
domain="directory.nh"
domain=$(hostname -f)
fi

if [ -z "${host}" ]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ ns8-action --attach wait "${IMPORT_TASK_ID}"
# Search for Samba or LDAP domain
domain=$(/sbin/e-smith/config getprop sssd Realm | tr '[:upper:]' '[:lower:]')
if [ -z "$domain" ]; then
domain="directory.nh"
domain=$(hostname -f)
fi

# we find admin users
Expand Down

0 comments on commit 1c7aec1

Please sign in to comment.