wildfly 25 quickstart ee-security - security

I can't make the quickstart ee-security work with Wildfly 25.0.1.
After sending the request :
curl -v http://localhost:8080/ee-security/secured -H 'X-Username:quickstartUser' -H 'X-Password:quickstartPwd1!'
I get this :
Caused by: java.io.IOException: ELY01177: Authorization failed.
at org.wildfly.security.jakarta.authentication#1.17.1.Final//org.wildfly.security.auth.jaspi.impl.JaspiAuthenticationContext$1.handleOne(JaspiAuthenticationContext.java:188)
at org.wildfly.security.jakarta.authentication#1.17.1.Final//org.wildfly.security.auth.jaspi.impl.JaspiAuthenticationContext$1.lambda$handle$0(JaspiAuthenticationContext.java:100)
at org.wildfly.security.jakarta.authentication#1.17.1.Final//org.wildfly.security.auth.jaspi.impl.SecurityActions.doPrivileged(SecurityActions.java:39)
at org.wildfly.security.jakarta.authentication#1.17.1.Final//org.wildfly.security.auth.jaspi.impl.JaspiAuthenticationContext$1.handle(JaspiAuthenticationContext.java:99)
What shall I do ?

Related

Getting "405: method not allowed" error while pinging to Jfrog Artifactory in Jfrog CLI

I have Installed Jfrog CLI (2.12.0) and configured it by using jf config addcommand.
After passing the platform URL, username and password I executed jf rt ping to check the connection.
But am getting the below error as a response
[root#osc-in-bldslave-1 opt]# jf rt ping
19:13:51 [Error] Server response: 405 Method Not Allowed
{
"errors": [
{
"status": 405,
"message": "Method Not Allowed"
}
]
}
Please let me know if you need any other details.
Below are the Steps I followed while Jfrog CLI configuration. Correct me if there is any issues with configuration.
[root#osc-in-bldslave-1 ~]# jf -version
jf version 2.12.0
[root#osc-in-bldslave-1 ~]#
[root#osc-in-bldslave-1 ~]# jf config add
Choose a server ID : <server id>
JFrog platform URL [http://xxx.xx.xxx.xx:8081/]: http://xxx.xx.xxx.xx:8081/
JFrog access token (Leave blank for username and password/API key):
JFrog username [username]: <username>
JFrog password or API key:<passing password here>
Is the Artifactory reverse proxy configured to accept a client certificate? (y/n) [n]? n
[root#osc-in-bldslave-1 ~]#
[root#osc-in-bldslave-1 ~]# jf rt ping
09:55:13 [Error] Server response: 405 Method Not Allowed
{
"errors": [
{
"status": 405,
"message": "Method Not Allowed"
}
]
}
[root#osc-in-bldslave-1 ~]#
But if it try pinging to my URL directly using below command it is working fine.
[root#osc-in-bldslave-1 ~]# jf rt ping --url=http://172.xx.xxx.xx:8081/artifactory/
OK
I deleted and installed Jfrog CLI freshly, still am facing the same 405: method not allowed issue.
Can anyone please let me know what am missing?
Looks like while configuring the JFrog CLI some of the parameters are incorrect, due to which the error is thrown. Same was tested in my env and its workings as expected.
➜ jf -version jf version 2.12.0
➜ jf rt ping OK
you can find using command which jf & whereis jf

Intallation Error During install apk In Personal Mobile in Android Studio

My app was working Properly , I Just Com back after a few days and its need of work, I Disconnect all Firebase Related Work for Some Reason and now I'm running my App and its Showing This Error
Pop-Up Message
Session 'app': Installation did not succeed. The application could not be installed
enter code here
Installation did not succeed.
The application could not be installed.
List of apks:
[0] 'E:\Uni\6thsemester\Ansari\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: ''cmd package install-create -r -t --user current --dont-kill -S 13064814'
returns error 'Unknown failure: Exception occurred while executing:
android.os.ParcelableException: java.io.IOException: Requested internal only, but not enough space
at android.util.ExceptionUtils.wrap(ExceptionUtils.java:34)
at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:506)
at com.android.server.pm.PackageManagerShellCommand.doCreateSession(PackageManagerShellCommand.java:1380)
at com.android.server.pm.PackageManagerShellCommand.runInstallCreate(PackageManagerShellCommand.java:276)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:116)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:29793)
at android.os.Binder.shellCommand(Binder.java:602)
at android.os.Binder.onTransact(Binder.java:500)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:3247)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:5412)
at android.os.Binder.execTransact(Binder.java:705)
Caused by: java.io.IOException: Requested internal only, but not enough space
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:515)
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:433)
at com.android.internal.content.PackageHelper.resolveInstallVolume(PackageHelper.java:448)
at com.android.server.pm.PackageInstallerService.createSessionInternal(PackageInstallerService.java:663)
at com.android.server.pm.PackageInstallerService.createSession(PackageInstallerService.java:504)
... 10 more''
Retry
Caused by: java.io.IOException: Requested internal only, but not enough space
Free up your phone memory. Your phone memory is full which cause your app is not install.

Connecting ODBC to AzureDatabricks using Simba Driver

I am simply trying to setup an ODBC driver to Databricks Cluster.
According to the MS documentation
https://learn.microsoft.com/en-us/azure/databricks/kb/bi/jdbc-odbc-troubleshooting
If you get an TTransport exception using the curl command, you successfully reached and authenticated.
When I run...
curl https://adb-77180857967XXXXX.6.azuredatabricks.net:443/sql/protocolv1/o/7718085796704186/0910-172424-pizza885 -H "Authorization: Bearer XXXXX"
It does produce the error which indicates success...
Error 500 Server Error
HTTP ERROR 500
<p>Problem accessing /cliservice. Reason:
<pre> Server Error</pre></p><h3>Caused by:</h3><pre>javax.servlet.ServletException: org.apache.thrift.transport.TTransportException
When I test the connection from the ODBC driver I get the following error:
FAILED!
[Simba][ThriftExtension] (14) Unexpected response from server during a HTTP connection: Could not resolve host for client socket..

livy curl request error for Kerberos Cloudera Hadoop

Configured livy server on kerberized CDH 5.10.x and its running fine on port 8998, but curl request giving below error,
curl --negotiate -u : http://xxxxxxx:8998/sessions
Error 403
HTTP ERROR: 403 Problem accessing
/sessions. Reason: GSSException: No valid credentials
provided (Mechanism level: Failed to find any Kerberos
credentails) Powered by Jetty://
unable to get why request is not going through kerberos security layer?
This error indicates that your kerberos ticket most likely doesn't exist or expired.
Have you run kinit to create your kerberos ticket?
For Testing purpose, Can you kinit as hdfs user using (you can find the keytab under HDFS roles machine - Namenode, Datanode /var/run/cloudera-scm-agent/process/hdfs/hdfs.keytab)
kinit -kt hdfs.keytab hdfs/hostname#REALM
or kinit as your user kinit user#REALM
And then try
curl --negotiate -u : -X GET -H "Content-Type: application/json" http://xxxx.xxxx:8998/sessions
In order to find pyspark sessions,
curl --negotiate -u : -X POST --data '{"kind": "pyspark"}' -H "Content-Type: application/json" http://xxxxx:8998/sessions

wildfly-10 java.security.AccessControlException: access denied ("java.util.PropertyPermission" "module.path" "write")

I have a wildFly-10 that I built with flag -Dsecurity.manager=yes
I have a WAR deployed to wfly.
From the command-line I am executing this cmd
/usr/java/jdk1.8.0_72/jre/bin/java \
-Dsecmgr=true -Djava.security.manager \
-Djavax.xml.ws.spi.Provider=org.jboss.wsf.stack.cxf.client.ProviderImpl \
-Dlog4j.output.dir=/home/rsearls/j1/jbws/jbossws-cxf/modules/testsuite/cxf-tests/target \
-Dorg.jboss.ws.cxf.jaxws-client.bus.strategy=NEW_BUS \
-jar /home/rsearls/j1/wfly10/wildfly/build/target/wildfly-10.0.0.Final/jboss-modules.jar \
-mp /home/rsearls/j1/wfly10/wildfly/build/target/wildfly-10.0.0.Final/modules \
-jar /home/rsearls/j1/jbws/jbossws-cxf/modules/testsuite/cxf-tests/target/test-libs/jaxws-cxf-jbws3713-client.jar \
http://127.0.0.1:8080/jaxws-cxf-jbws3713//HelloService?wsdl 4 5
I am getting this exception.
Exception in thread "main" java.security.AccessControlException: access denied ("java.util.PropertyPermission" "module.path" "write")
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
at java.security.AccessController.checkPermission(AccessController.java:884)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
at java.lang.System.setProperty(System.java:792)
at org.jboss.modules.Main.main(Main.java:152)
I've tried add a ref to a policy file like this,
-Djava.security.policy=/tmp/yy/server.policy \
The causes the run exception to be
An existing security manager was detected. You must use the -secmgr switch to start with a security manager.
I've tried various forms of secmgr
-secmgr
-Dsecmgr
-D-secmgr
but same exception
How can I resolve this?
Option "java.security.manager" is no longer supported use "-secmgr" instead. And must place -secmgr after the jboss-modules.jar reference.

Resources