spnego

Kerberos authentication not running when client and server on same machine

强颜欢笑 提交于 2019-12-06 02:20:50
I am getting the following error when trying to trying to access the application from the same machine where jboss server is running org.springframework.security.authentication.BadCredentialsException: Kerberos validation not succesfull at org.springframework.security.extensions.kerberos.SunJaasKerberosTicketValidator.validateTicket(SunJaasKerberosTicketValidator.java:69) at org.springframework.security.extensions.kerberos.KerberosServiceAuthenticationProvider.authenticate(KerberosServiceAuthenticationProvider.java:86) at org.springframework.security.authentication.ProviderManager

Accessing a SPNEGO authenticated webservice from C#

好久不见. 提交于 2019-12-05 16:27:21
We have a web service that serves data over HTTP and authenticates users via SPNEGO (and single sign-on). We want to write a C# client for this web service. Is there any standard/provided way in .NET of generating the necessary token? Extensive Googling suggests that there is no native support for SPNEGO. In Windows the following should do the trick: BasicHttpBinding binding = new BasicHttpBinding(); binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Windows; //SSL (https): binding.Security.Mode = BasicHttpSecurityMode.Transport; 来源: https://stackoverflow.com/questions

Kerberos authorization doesn't work on Chrome and FireFox, but works on IE

ぐ巨炮叔叔 提交于 2019-12-05 13:26:31
I follow this guide to integrate cas with Windows AD. It works fine on every browser few days ago. But not it only works on IE, when I use firefox browser only send "Negotiate TlRMTVNTUAABAAAAl4II4gAAAAAAAAAAAAAAAAAAAAAGAbEdAAAADw==" to server, then browser return to cas login page. This problem only have been found on production environment recently. I have a test environment with same configuration, but it works fine until now. I know when kerberos ticket is not cached on local, browser will send "Negotiate TlRMT...". But I can see ticket with klist command, and it works on IE means the

Spring Boot with Spnego/Kerberos - Config Issues - A ServletContext is required to configure default servlet handling

╄→尐↘猪︶ㄣ 提交于 2019-12-05 09:10:34
I appear to have hit a bit of a dead-end with getting spring-security-kerberos-web to work with a Spring Boot application. I have a single @Configuration class in my project as below package com.co.dept.bsc.configuration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.io.FileSystemResource; import org.springframework.security.authentication.AuthenticationManager; import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder; import org.springframework

Optional SPNEGO Kerberos authentication

依然范特西╮ 提交于 2019-12-05 02:55:44
问题 Is it possible to do optional kerberos authentication? What I want is: if the client (browser) is not on the domain it is redirected to a username/password web login. Otherwise it will do SPNEGO do Kerberos authentication. If I just send the WWW-Authenticate: Negotiate header to a non domain browser it just does nothing further. Is there some option to tell the browser to try something different if it doesn't know how to authenticate? Or do I have to determine if user is part of the domain

How to force Git (2.5+) HTTP transport prefer SPNEGO over Basic authentication?

眉间皱痕 提交于 2019-12-04 14:08:17
问题 Summary: I am using Git for Windows 2.5.1 to authenticate with a Kerbesized Git server. When I am using the URL in the form https://el2-gitlab.sa.c/kkm/GrammarTools.git , Git does not even attempt the Negotiate authentication, and asks for the user name and password. A workarouond to force Git to use SPNEGO is to provide empty username and password in the URL itself, as in https://:@el2-gitlab.sa.c/kkm/GrammarTools.git . In this case, Git happily authenticates with the existing Kerberos

How to enable features for php-curl

帅比萌擦擦* 提交于 2019-12-03 22:40:58
问题 I need my CLI PHP script to post some value to a SPNEGO authenticated site. $ch = curl_init(USERSPACE_MYSQL_SERVICES); curl_setopt_array($ch, [ CURLOPT_HTTPAUTH => ??, //Set to SPNEGO CURLOPT_POSTFIELDS => [...] ]); However SPNEGO is disabled for some reason: Extract from my phpinfo: curl cURL support => enabled cURL Information => 7.21.6 Age => 3 Features AsynchDNS => No Debug => No GSS-Negotiate => Yes IDN => Yes IPv6 => Yes Largefile => Yes NTLM => Yes SPNEGO => No <--------------- SSL =>

Java Kerberos authentication seems to work, still gets rejected

一个人想着一个人 提交于 2019-12-03 12:32:46
I've got a Java client app and a Java server app, and I'm trying to authenticate to the server via Kerberos. The client basically uses http-components and SPNEGO to make a HTTP GET call, but I always get 401 Unauthorized as a result. I can not spot the error in the Kerberos login sequence below, maybe you guys can: Debug is true storeKey false useTicketCache false useKeyTab false doNotPrompt f alse ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is fa lse principal is null tryFirstPass is false useFirstPass is false storePass is f alse clearPass is false Kerberos

Kerberos broken after upgrading from Java6 to Java7

本小妞迷上赌 提交于 2019-12-03 12:10:50
问题 I have a working application using the spring-security kerberos extension, running on jboss, running java 6. I'm in the process of upgrading my jvm from java 6 to java 7. When I do that, using the same codebase and the same keytab that worked on java 6, I now receive an error when using java 7. I consistently receive: java.security.PrivilegedActionException: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to

Kerberos broken after upgrading from Java6 to Java7

試著忘記壹切 提交于 2019-12-03 02:41:37
I have a working application using the spring-security kerberos extension, running on jboss, running java 6. I'm in the process of upgrading my jvm from java 6 to java 7. When I do that, using the same codebase and the same keytab that worked on java 6, I now receive an error when using java 7. I consistently receive: java.security.PrivilegedActionException: GSSException: Failure unspecified at GSS-API level (Mechanism level: Invalid argument (400) - Cannot find key of appropriate type to decrypt AP REP - RC4 with HMAC) I've tried to regenerate the keytab with the different /crypto options