-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
send lk and secret hash in /me (#306)
* Send lkhash = sha256sum(SUBSCRIPTION_SYSTEMID:SUBSCRIPTION_SECRET in /user/me (#305) nethesis/ns8-nethvoice#125
- Loading branch information
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
root/etc/e-smith/templates/etc/sysconfig/subscription/10subscription
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
# | ||
# 10subscription | ||
# | ||
my $systemId = $subscription{'SystemId'} || ''; | ||
my $secret = $subscription{'Secret'} || ''; | ||
$enabled = ($systemId eq '' || $secret eq '') ? 0 : 1; | ||
|
||
$OUT = "SUBSCRIPTION_SYSTEMID=$systemId\nSUBSCRIPTION_SECRET=$secret\n"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters