forked from eXist-db/existdb-saml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bugfix] Create 'exsaml' user during package install
- Loading branch information
1 parent
7a06c68
commit cb78fef
Showing
2 changed files
with
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
xquery version "3.1"; | ||
|
||
import module namespace sm = "http://exist-db.org/xquery/securitymanager"; | ||
|
||
declare variable $saml-user-name := "exsaml"; | ||
|
||
(: Create the default 'exsaml' user account :) | ||
if (fn:not(sm:user-exists($saml-user-name))) | ||
then | ||
sm:create-account($saml-user-name, $saml-user-name, (), "existdb-saml", "existdb-saml-xquery SAML Authentication Account") | ||
else() |
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