Please help. Negotiate field in http header - Kerberos, SPNEGO, Base64... ?
Hello to you all.
I'm trying to implement a Kerberized SSO solution in Win2000
environment. The web servers are apaches, the clients are IE5.5+
But I had encountered the following problem:
I wrote a servlet in java on the web server that sends 401 http error
+ "Negotiate" in the www-authenticate field. Then the client sends me
back in the same field "Negotiate " and a long string that ends with
'==' and it's somehow encoded...
That's the problematic point. I saw it's encoded in base64, but
decoding it didn't brought me to anything. Furthermore, I read that
it's a spnego protocol. What am I doing with that? Does JDK1.4 gives
enough to work with that?
All I know that in that string is the TGS sent to me... and that's all
I need to authenticate my client, don't I?!
Do you know what should I do with that string? Can you tell me what am
I missing? Should I decode it with the '==' or without? What does it
mean anyway?
I'd really appriciate if you help me.
Thanks very much in advance,
Danik.
Close... SPNEGO is a GSSAPI mechanism for negotiating another mechanism. JDK 1.4 comes with a Kerberos mechanism provider out of the box, but not SPNEGO. Even though Microsoft's "Negotiate" auth method ends up negotiating Kerberos, you need to have a SPNEGO provider installed to effectively tell it to use Kerberos.
The '==' is Base64 padding (the Base64-encoded string will end in '=' or '==' if the input content length is not divisible by 3). You would include it when decoding. The byte array you get from decoding is fed to the acceptSecContext method in org.ietf.jgss.GSSContext -- but you will get an "unknown mechanism" error if you don't have a SPNEGO mechanism provider.
If you don't have the inclination to write a provider yourself (I know I wouldn't), and you have some cash to spend (I know I don't), you can get a SPNEGO provider from:
http://www.wedgetail.com/jcsi/sso/FAQ.html
They actually provide a complete solution for doing exactly what you are attempting.
If you are just looking to provide single sign-on to a web application for Windows clients, and you don't necessarily need to do it via Kerberos, jCIFS provides a solution for performing NTLM authentication (the precursor to Negotiate, which authenticates against NT/Samba domains). You can get jCIFS from
http://jcifs.samba.org
The site is temporarily transitioning to a new ISP, so the latest version (0.7.5) can actually be found at:
http://users.erols.com/mballen/jcifs
The client side of NTLM is also supported in JDK 1.4.2, which would allow single sign-on for applets or Java applications.
Similar Messages
-
How to deal with the "Set-Cookie" field in HTTP header??
I follow the RFC-2616 specification to write a socket program to fetch web pages.
I have to deal with all the fields included in the HTTP header.
But the RFC-2616 doesn't talk anything about the "Set-Cookie" field.
Does anyone know how to handle this field or provide me any useful documentation.
Any help is appreciated.A cookie is set with the "Set-Cookie: "-field in the http header, like this:
Set-Cookie: mycookie=someValue
This cookie should only be returned to the same host as it came from, like this in the http header of a request:
Cookie: mycookie=someValue
If the parameter looks like this:
Set-Cookie: mycookie=someValue; path=/cgi-bin
, the cookie should only be returned to the host if the request path starts with /cgi-bin
If the parameter looks liek this:
Set-Cookie: mycookie=someValue; domain=.mydomain.com
, the cooke should be returned to all hosts in the .mydomain.com-domain
There is also a "expires="-field, which works as expected and a "secure"-field, which I'm not sure how to handle. Maybe the cookie should only be sent to an SSL-enabled host?
Hope this helps you. Bye,
Dag W. -
I'm trying to create some job aid videos for a client.
Some of these are going to be how to do things on their iphones.
I've used the screencapture facility on my phone to snap a dozen or so screen caps.
I've moved them to my PC
I've buit a project (in C8) that is sized 640 x1136 but when I punblish them as video (to you tube) it comes out landscape.
So I created a version that was 1136 x 640 and rotated all my objects by 90 degrees.
This works, but if I try working like this my head will screw off.
There must be an easier way.....
Can anyone help please.
Thansk
AlanPooja
That will certainly help geting the screen into Captivate.
But the problem then happens when I try to publish to Video and send it to YouTube.
When I full screen it it looks like this.
To fix that I rotated all the objects to -90
The video looks OK but it means when working on it I have a screen that looks like this
And I don't want to end up looking like this! -
I signed into my apple account by iTunes and try to remove credit card information. However, I do not see None option in the payment type section. Please help.
iTunes Store Support
http://www.apple.com/emea/support/itunes/contact.html -
Game Center issues. Please help!
I recently changed my Apple ID email to my gmail one because my other one got hacked. After switching it over everything ran smoothly except for my Game Center profile which would work occasionally, but now every time I try to sign out and sign back in my old Apple ID account keeps reappearing and I don't know why. Have shut down my iPad numerous times, but nothing has been working. Please help!
Try this: https://discussions.apple.com/message/25136607#25136607
-
Cant Able to Create New partition after uninstall Ubuntu, Please help!
Hello Everyone,
i installed Ubuntu before but i don't like it, then what i did is, (i had windows 7 dual boot with ubuntu) while running windows 7, i deleted Swap area partition and home partition of Ubuntu, then i saw that partitions are combined which was fine, but when
i tried to create it, a error appeared that "there is not enough space available on the disk to complete this operation"
hence i cant able to create unused partition, how to fix that,
i even tried to create from windows 7 disk too, but same error,
Please help me.
PICTURE : http://social.technet.microsoft.com/Forums/getfile/455232Go to
http://download.cnet.com/EaseUS-Partition-Master-Free-Edition/3000-2248_4-10863346.html and download the Partition Magic utility.
This problem is caused by Windows not recognizing the Ubuntu partitions. Windows is not designed to work with foreign partitions so this problem is caused by Ubuntu.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” -
i am trying to use dual monitors when editing with FCPX. I have a macbook pro and an apple cinema display monitor. I have connected them and opened Fcpx but the option to use second monitor is not active! what do i do ? please help going bonkers!
<http://support.apple.com/kb/HT5891>
You can use USB for the Apple trackpad.
<http://www.mobeetechnology.com/the-power-bar.html> -
Ive lost my old apple tv and I bought a new one. When I try to mmove the arrows of the remote it dosent work. Can you please help me!!
http://support.apple.com/kb/HT1555
"Or, you can press and hold the Menu and Next/Fast-forward buttons on the white Apple Remote, or hold the Menu and right buttons on the aluminum Apple Remote, for 6 seconds to pair." -
I will cancel the membership of each month. Please cancel. I can not English. Settlement became seen wrong. Please help soon
Cancel the Cloud http://forums.adobe.com/thread/1439535?tstart=0 may help
or
Adobe contact information - http://helpx.adobe.com/contact.html may help -
Been experiencing the problem for a few days. I can't buy in app purchases. Tried signing out from my App Store so they would prompt me to sign in in the app but they told me my Apple ID or password is wrong. I thought my account was locked so I tried buying an app and it could work!! PLEASE HELP );
Contact Apple Support
https://getsupport.apple.com/GetproductgroupList.action
Ask for assistance. -
Problem in String.replaceAll please help
String ash = "XXX";
String ch = ash.replaceAll("X","$");
while executing the above code i am getting an exception
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(Unknown Source)
at java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.util.regex.Matcher.replaceAll(Unknown Source)
at java.lang.String.replaceAll(Unknown Source)
please help me
baijuCross-post
http://forum.java.sun.com/thread.jspa?threadID=607145 -
TS1424 Hey everyone I'm having trouble with iTunes please help ASAP thank you.
Hey I just bought an iPad and I can't connect to iTunes, seeing as I'm using my iPad right now I know the wifi works, I've tried a lot of different things and read the apple site for help but nothing worked, please help me thank you.
http://support.apple.com/kb/HT1923?viewlocale=en_US
this worked perfectly for me, with no loss of library! BUT was warned about uninstalling things in the order listed...FYI. -
I tried to update Iphone 3gs to ios 5 with Itunes. first try,It did sync,posted my name under devices(iphone). Tried to restore,keep recieving error message 14. I ran the diagnostic and it kept saying under Port, it does'nt not find Iphone. Tried EVERYTHING! From uninstalling, youtube, google, DFU and downloading some of the so called help links and files. It also keep saying my phone is in restored mode and on the phone it shows a usb plug pointing to itunes and a cd. Trying to fix problem from home and not be charge a fee just to talk to Apple representative. Please help !!!
http://support.apple.com/kb/TS3694#error3194
Apple does not support downgrading, so that is probably why you are getting error 3194. As you have to hack the phone to downgrade all bets are off now. As some of the help links and files direct you to jailbreak your phone if you followed any of those you now have bigger problems. -
he download was completed the laptop was extracting the software and at the end of the loading line it writes an unknown error occurred (3194) please help me thank you
3194 = https://discussions.apple.com/message/18851577#18851577
-
PLEASE HELP - I need an Apple Care phone number that works in Nepal.
I am at my wit's end. I just moved to Kathmandu, and of course my macbook pro decided to die on me! I have tried an SMC and PRAM reset to no avail, and now there is nothing when I try to turn it on - no whizzing fan or sounds at all. My battery power is at full strength.
I need my computer to do my work as well as to stay connected to Canada, and I am feeling really frustrated that I cannot find ANY number or information on the Apple site, despite Nepal being listed as a participating Apple Care country.
Please, please help!
JessicaGo here - https://locate.apple.com/asia/en/ - and serach for a Nepal service center.
Good luck,
Clinton
Maybe you are looking for
-
Hi, for some reason I can't add more music to my iPod and it doesn't give me the choice of choosing iTunes to show my iPod. I want to add more music but all it gives me the option to do it put pictures my computer. I really need help and I have no cl
-
Advanced row/grid level supression on multiple pages.
Hi, I have defined a report with one dimension in Page axis. The dimension in Page axis has 10 members. I have defined advanced supression at row level (also tried grid level) like "Supress row if data value in a particular column is > 5." This supre
-
KeyboardEvent.KEY_DOWN event problem
Hi, I have create a game and added keydown event on Stage but but problem is user need to click on stage then it start capturing keydown event. I want that when game window open after that user don't need to click on flash stage area for unable keydo
-
Adding Selection Criteria in Any Payroll Report(PTax)
Dear Experts, Can you please tell me the Payroll Report especially with the Professional Tax having the Column field of "Business Area". My Client want the report with Business Area Wise where it will helpful to identify the Region or Branch Offic
-
Memory Allocation under Different Operating Systems
Hello What is the exact behavior of java -Xmsn -Xmxn under different operating systems? I am running my application on windows and linux. In linux i specify java -Xms512M -Xmx512M and it seems to only initially allocate 22M (i have enough space on th