kerberos

javax.naming.AuthenticationException

懵懂的女人 提交于 2019-12-10 20:06:36
问题 I'm trying to create a context for ActiveDirectory (client and server are both windows), using my Windows credentials with NTLM. This is my code: public void func() { try { URL configURL = getClass().getResource("jaas_ntlm_configuration.txt"); System.setProperty("java.security.auth.login.config", configURL.toString()); // If the application is run on NT rather than Unix, use this name String loginAppName = "MyConfig"; // Create login context LoginContext lc = new LoginContext(loginAppName,

hadoop编译过程中遇到的错误

一笑奈何 提交于 2019-12-10 19:50:40
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 我用的环境(错误跟环境没关系):centos6.4,hadoop2.6.4(或者hadoop2.7.6或者hadoop2.6.5) 【 错误1 】 : mvn clean install -DskipTests中遇到: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project hadoop-minikdc: Compilation failure: Compilation failure: [ERROR] error: error reading /root/.m2/repository/org/apache/directoryrver/apacheds-interceptor-kerberos/2.0.0-M15/apacheds-interceptor-kerberos-2.0.0-M15.jar; error in opening zip file [ERROR] error: error reading /root/.m2/repository/org/apache/directoryrver/apacheds

Error connecting to PostgreSQL 9.4 with MIT Kerberos via JDBC vs CLI

狂风中的少年 提交于 2019-12-10 19:32:27
问题 I have set up PostgreSQL 9.4 with MIT Kerberos 5 and CAN connect on the CLI using psql. After filing off the fingerprints my principal is bgiles/postgres@REALM, the pg_hba.conf has host all all 0.0.0.0/0 gss include_realm=1 map=gss krb_realm=REALM and the pg_ident.conf file has gss /^(.*)/postgres@REALM$ \1 I created that principal, saved it to a keytab, and if I $ kinit -k -t krb5.keytab bgiles/postgres I can successfully connect to my PostgreSQL server 'kpg'. This proves the Kerberos and

Docker Kerberos WebHDFS AuthenticationException: Unauthorized

南楼画角 提交于 2019-12-10 17:16:34
问题 I have a Spring application that reads a file from HDFS using WebHDFS. When I test it in IDEA, it works. But after I build the project and deploy the Docker image on a virtual machine locally or on a server connected to HDFS, I get: AuthenticationException: Unauthorized On my local machine I have to regularly initialize the token with kinit for autentication. If I don't, I get the same error. I tested the app without Docker on a server, it also works. I think the Docker image does not see the

Kerberos Cached Ticket

别等时光非礼了梦想. 提交于 2019-12-10 16:00:10
问题 I am on windows 7 (64-bit) and I have created a simple app to count files in the run method of a class that implements PrivilegedAction. following is my jaas.conf file: CountFiles { com.sun.security.auth.module.Krb5LoginModule required useTicketCache=true debug=true; }; I am getting the following message. Debug is true storeKey false useTicketCache true useKeyTab false doNotPrompt false ticketCache is null isInitiator true KeyTab is null refreshKrb5Config is false principal is null

Java process for authentication on Windows against AD (kerberos)

纵然是瞬间 提交于 2019-12-10 15:31:19
问题 I'm aware I can call out to Active Directory and do queries provided I have a cleartext username and password. (I don't want to do that) In VB, I can set authorisation levels by NT group - and the user doesn't have to enter their password nor, store it in a text file. (My understanding is that this has access to the Windows AD ticket). How can I get the kerberos ticket from the user's logged in session in windows? (without asking for a username and password). This appears to get there: Java

How to install gssapi python module on windows?

為{幸葍}努か 提交于 2019-12-10 13:23:52
问题 I am currently trying to get the gssapi module for python to run on windows. My goal is to authenticate with an Active Directory using python module ldap3. gssapi is an requirement for this to work. However, installation fails because it cannot find krb5-config. On Linux it is easy to install. I installed Kerberos for Windows but it does not have krb5-config and I could not find it anywhere else (other than for Linux). Does anyone know where to find the required tools or how to continue (if

Kerberos installation error, error: Setup script exited with error: command 'i686-linux-gnu-gcc' failed with exit status 1

末鹿安然 提交于 2019-12-10 12:56:22
问题 I am trying to install python kerbos library, setup.py fails with following. I have already done sudo apt-get update and sudo apt-get install python-dev(in that order). Here is the complete trackback of the process. vaibhav@vaibhav-UCVN:~/Downloads/requests-kerberos-master$ sudo ./setup.py install running install running bdist_egg running egg_info writing requirements to requests_kerberos.egg-info/requires.txt writing requests_kerberos.egg-info/PKG-INFO writing top-level names to requests

Setting username programatically,instead of prompt, with httpclient\kerberos

懵懂的女人 提交于 2019-12-10 12:07:48
问题 I have a linux\java6 client that will authenticate to sharepoint2010 with KERBEROS and then send HTTP REST web services using Apache Commons HttpClient 4.2 If I run from command line "kinit myuser@mydomain" before connecting my client runs smoothely. my problem is that I if i dont run kinit , I get prompted for a username . how do I authenticate programatically without being prompted for a username and without having to run command line programs? (I created and keytab and defined it in login

.NET Core SPNEGO Auth with HttpClient

你说的曾经没有我的故事 提交于 2019-12-10 10:04:12
问题 I'm currently writing up a simple .NET Core based client for interacting with Hadoop Clusters via WebHCat and I'm trying to figure out how to authenticate with the SPNEGO as you would in something like curl or Powershell Core. Using Curl I am able to query the status endpoint of WebHCat like so: curl "http://10.2.0.9:50111/templeton/v1/status" --negotiate -k -u : The same request can also executed in Powershell Core: $client = New-Object System.Net.WebClient; $client.UseDefaultCredentials =