Last active
April 12, 2019 16:14
-
-
Save jrbalsas/2866b290296ccec63a929c63dd7a7315 to your computer and use it in GitHub Desktop.
JDBC realm creation with asadmin util
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
REM Windows version: escape : with \: and linefeed with ^ | |
c:\payara5\glassfish\bin\asadmin create-auth-realm ^ | |
--classname com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm ^ | |
--property jaas-context=jdbcRealm^ | |
:datasource-jndi=java\:global/jdbc/auth^ | |
:user-table=USUARIOS^ | |
:user-name-column=USUARIO^ | |
:password-column=CLAVE^ | |
:group-table=ROLES^ | |
:group-name-column=ROL^ | |
:group-table-user-name-column=USUARIO^ | |
:digest-algorithm=none ^ | |
realm-name |
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
#!/bin/sh | |
#Unix version: escape \ , : and newline with \ | |
asadmin create-auth-realm \ | |
--classname com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm \ | |
--property jaas-context=jdbcRealm\ | |
:datasource-jndi=java\\:global/jdbc/auth\ | |
:user-table=USUARIOS\ | |
:user-name-column=USUARIO\ | |
:password-column=CLAVE\ | |
:group-table=ROLES\ | |
:group-name-column=ROL\ | |
:group-table-user-name-column=USUARIO\ | |
:digest-algorithm=none \ | |
realm-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment